Skip to content

Commit

Permalink
fixing merge issues
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Dancejic <[email protected]>
  • Loading branch information
Ndancejic committed Mar 7, 2023
1 parent 02f452f commit f7a6dfa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ bool RouteOrch::addRoutePost(const RouteBulkContext& ctx, const NextHopGroupKey
ipPrefix.to_string().c_str(), nextHops.to_string().c_str());
}

m_syncdRoutes[vrf_id][ipPrefix] = nextHops;
m_syncdRoutes[vrf_id][ipPrefix] = RouteNhg(nextHops, ctx.nhg_index);

MuxOrch* mux_orch = gDirectory.get<MuxOrch*>();
if (ctx.nhg_index.empty() && nextHops.getSize() == 1 && !nextHops.is_overlay_nexthop() && !nextHops.is_srv6_nexthop())
Expand All @@ -2295,7 +2295,8 @@ bool RouteOrch::addRoutePost(const RouteBulkContext& ctx, const NextHopGroupKey
{
addNextHopRoute(nexthop, r_key);
}
} else if (mux_orch->isMuxNexthops(nextHops))
}
else if (mux_orch->isMuxNexthops(nextHops))
{
RouteKey routekey = { vrf_id, ipPrefix };
auto nexthop_list = nextHops.getNextHops();
Expand All @@ -2320,8 +2321,6 @@ bool RouteOrch::addRoutePost(const RouteBulkContext& ctx, const NextHopGroupKey
gFlowCounterRouteOrch->handleRouteAdd(vrf_id, ipPrefix);
}

m_syncdRoutes[vrf_id][ipPrefix] = RouteNhg(nextHops, ctx.nhg_index);

notifyNextHopChangeObservers(vrf_id, ipPrefix, nextHops, true);

/* Publish and update APPL STATE DB route entry programming status */
Expand Down

0 comments on commit f7a6dfa

Please sign in to comment.