From c1d47e6f9710407d9d675cf568281d7d7af61a1a Mon Sep 17 00:00:00 2001 From: Sudharsan Dhamal Gopalarathnam Date: Tue, 29 Mar 2022 13:03:37 -0700 Subject: [PATCH] [VNET]Fixing nexthop group delete during route change (#2198) *[Overlay ECMP] Fix for VNET with nexthop group is replaced with a single nexthop --- orchagent/vnetorch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/vnetorch.cpp b/orchagent/vnetorch.cpp index 9640e0ee3ab7..e3f2cbac6eb6 100644 --- a/orchagent/vnetorch.cpp +++ b/orchagent/vnetorch.cpp @@ -949,7 +949,7 @@ bool VNetRouteOrch::doRouteTask(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); }