Skip to content

Commit b8745f8

Browse files
Volodymyr Samotiylguohan
Volodymyr Samotiy
authored andcommitted
[bitmap_vnet]: Fix removal flow for tunnel route (sonic-net#1139)
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]>
1 parent 03be983 commit b8745f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/vnetorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,7 @@ bool VNetBitmapObject::removeTunnelRoute(IpPrefix& ipPrefix)
11021102
throw std::runtime_error("VNET tunnel route removal failed");
11031103
}
11041104

1105-
auto endpointInfo = endpointMap_.at(endpoint);
1105+
auto& endpointInfo = endpointMap_.at(endpoint);
11061106

11071107
sai_status_t status;
11081108

0 commit comments

Comments
 (0)