Skip to content

Commit

Permalink
[VNET]Fixing nexthop group delete during route change (sonic-net#2198)
Browse files Browse the repository at this point in the history
*[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop
  • Loading branch information
dgsudharsan committed Mar 29, 2022
1 parent 8941cc0 commit c1d47e6
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 @@ -949,7 +949,7 @@ bool VNetRouteOrch::doRouteTask<VNetVrfObject>(const string& vnet, IpPrefix& ipP
NextHopGroupKey nhg = it_route->second;
if(--syncd_nexthop_groups_[vnet][nhg].ref_count == 0)
{
if (nexthops.getSize() > 1)
if (nhg.getSize() > 1)
{
removeNextHopGroup(vnet, nhg, vrf_obj);
}
Expand Down

0 comments on commit c1d47e6

Please sign in to comment.