Skip to content

Commit fca407a

Browse files
dgsudharsanqiluo-msft
authored andcommitted
[VNET]Fixing nexthop group delete during route change (#2198)
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
1 parent a9b6b47 commit fca407a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

orchagent/vnetorch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ bool VNetRouteOrch::doRouteTask<VNetVrfObject>(const string& vnet, IpPrefix& ipP
939939
NextHopGroupKey nhg = it_route->second;
940940
if(--syncd_nexthop_groups_[vnet][nhg].ref_count == 0)
941941
{
942-
if (nexthops.getSize() > 1)
942+
if (nhg.getSize() > 1)
943943
{
944944
removeNextHopGroup(vnet, nhg, vrf_obj);
945945
}

0 commit comments

Comments
 (0)