Skip to content

Commit 40a74b2

Browse files
committed
Add routeorch change
1 parent b59d987 commit 40a74b2

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

orchagent/routeorch.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2964,12 +2964,10 @@ bool RouteOrch::removeRoutePost(const RouteBulkContext& ctx)
29642964
return true;
29652965
}
29662966

2967-
bool RouteOrch::isRouteExists(const IpPrefix& prefix)
2967+
bool RouteOrch::isRouteExists(sai_object_id_t vrf_id, const IpPrefix& prefix)
29682968
{
29692969
SWSS_LOG_ENTER();
29702970

2971-
sai_object_id_t& vrf_id = gVirtualRouterId;
2972-
29732971
sai_route_entry_t route_entry;
29742972
route_entry.vr_id = vrf_id;
29752973
route_entry.switch_id = gSwitchId;

orchagent/routeorch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ class RouteOrch : public ZmqOrch, public Subject
253253
const NextHopGroupKey getSyncdRouteNhgKey(sai_object_id_t vrf_id, const IpPrefix& ipPrefix);
254254
bool createFineGrainedNextHopGroup(sai_object_id_t &next_hop_group_id, vector<sai_attribute_t> &nhg_attrs);
255255
bool removeFineGrainedNextHopGroup(sai_object_id_t &next_hop_group_id);
256-
bool isRouteExists(const IpPrefix& prefix);
256+
bool isRouteExists(sai_object_id_t vrf_id, const IpPrefix& prefix);
257257
bool removeRoutePrefix(const IpPrefix& prefix);
258258

259259
void addLinkLocalRouteToMe(sai_object_id_t vrf_id, IpPrefix linklocal_prefix);

0 commit comments

Comments
 (0)