Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
anilkpan committed Dec 6, 2024
2 parents b88757b + 881341f commit 0a82207
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion orchagent/routeorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2641,7 +2641,7 @@ bool RouteOrch::removeRoutePost(const RouteBulkContext& ctx)
return true;
}

bool RouteOrch::hasBgpRoute(const IpPrefix& prefix)
bool RouteOrch::isRouteExists(const IpPrefix& prefix)
{
SWSS_LOG_ENTER();

Expand Down
2 changes: 1 addition & 1 deletion orchagent/routeorch.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ class RouteOrch : public Orch, public Subject
const NextHopGroupKey getSyncdRouteNhgKey(sai_object_id_t vrf_id, const IpPrefix& ipPrefix);
bool createFineGrainedNextHopGroup(sai_object_id_t &next_hop_group_id, vector<sai_attribute_t> &nhg_attrs);
bool removeFineGrainedNextHopGroup(sai_object_id_t &next_hop_group_id);
bool hasBgpRoute(const IpPrefix& prefix);
bool isRouteExists(const IpPrefix& prefix);
bool removeRoutePrefix(const IpPrefix& prefix);

void addLinkLocalRouteToMe(sai_object_id_t vrf_id, IpPrefix linklocal_prefix);
Expand Down
6 changes: 3 additions & 3 deletions orchagent/vnetorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ bool VNetRouteOrch::doRouteTask<VNetVrfObject>(const string& vnet, IpPrefix& ipP
prefixToRemove = adv_prefix;
}
auto prefixSubnet = prefixToRemove.getSubnet();
if(gRouteOrch && gRouteOrch->hasBgpRoute(prefixSubnet))
if(gRouteOrch && gRouteOrch->isRouteExists(prefixSubnet))
{
if (!gRouteOrch->removeRoutePrefix(prefixSubnet))
{
Expand Down Expand Up @@ -2366,7 +2366,7 @@ void VNetRouteOrch::updateVnetTunnel(const BfdUpdate& update)
ipPrefixsubnet = adv_prefix.getSubnet();
}
}
if(gRouteOrch && gRouteOrch->hasBgpRoute(ipPrefixsubnet))
if(gRouteOrch && gRouteOrch->isRouteExists(ipPrefixsubnet))
{
if (!gRouteOrch->removeRoutePrefix(ipPrefixsubnet))
{
Expand Down Expand Up @@ -2611,7 +2611,7 @@ void VNetRouteOrch::updateVnetTunnelCustomMonitor(const MonitorUpdate& update)
}
}
auto prefixsubnet = prefixToUse.getSubnet();
if (gRouteOrch && gRouteOrch->hasBgpRoute(prefixsubnet))
if (gRouteOrch && gRouteOrch->isRouteExists(prefixsubnet))
{
if (!gRouteOrch->removeRoutePrefix(prefixsubnet))
{
Expand Down

0 comments on commit 0a82207

Please sign in to comment.