Skip to content

Commit c1d47e6

Browse files
authored
[VNET]Fixing nexthop group delete during route change (sonic-net#2198)
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
1 parent 8941cc0 commit c1d47e6

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
@@ -949,7 +949,7 @@ bool VNetRouteOrch::doRouteTask<VNetVrfObject>(const string& vnet, IpPrefix& ipP
949949
NextHopGroupKey nhg = it_route->second;
950950
if(--syncd_nexthop_groups_[vnet][nhg].ref_count == 0)
951951
{
952-
if (nexthops.getSize() > 1)
952+
if (nhg.getSize() > 1)
953953
{
954954
removeNextHopGroup(vnet, nhg, vrf_obj);
955955
}

0 commit comments

Comments
 (0)