Skip to content

Commit

Permalink
Orchagent code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
msupuran committed Mar 18, 2021
1 parent 630a0d7 commit 7b611bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2383,7 +2383,16 @@ bool RouteOrch::removeRoutePost(const RouteBulkContext& ctx)
*/
else if (ol_nextHops.getSize() == 1)
{
NextHopKey nexthop(ol_nextHops.to_string());
NextHopKey nexthop;
bool overlay_nh = ol_nextHops.is_overlay_nexthop();
if (overlay_nh)
{
nexthop = NextHopKey(ol_nextHops.to_string(), overlay_nh);
}
else
{
nexthop = NextHopKey(ol_nextHops.to_string());
}

if (nexthop.label_stack.getSize() &&
(m_neighOrch->getNextHopRefCount(nexthop) == 0))
Expand Down

0 comments on commit 7b611bb

Please sign in to comment.