Skip to content

Commit

Permalink
[bitmap_vnet]: Fix removal flow for tunnel route (sonic-net#1139)
Browse files Browse the repository at this point in the history
There was a mistake in BITMAP VNET code that caused used_count for endpoints not to be decremented during removing tunnel route. As a result some SDK resources were not fully removed in case one endpoint is shared between two or more tunnel routes.

Signed-off-by: Volodymyr Samotiy <[email protected]>
  • Loading branch information
Volodymyr Samotiy authored and lguohan committed Dec 12, 2019
1 parent 03be983 commit b8745f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/vnetorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ bool VNetBitmapObject::removeTunnelRoute(IpPrefix& ipPrefix)
throw std::runtime_error("VNET tunnel route removal failed");
}

auto endpointInfo = endpointMap_.at(endpoint);
auto& endpointInfo = endpointMap_.at(endpoint);

sai_status_t status;

Expand Down

0 comments on commit b8745f8

Please sign in to comment.