Skip to content

Commit

Permalink
[vnet]: Fix continues warning messages after config reload (sonic-net…
Browse files Browse the repository at this point in the history
…#1217)

Signed-off-by: Volodymyr Samotiy <volodymyrs@mellanox.com>
  • Loading branch information
Volodymyr Samotiy authored Mar 7, 2020
1 parent 87c86ba commit fb8b6a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions orchagent/vnetorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ bool VNetBitmapObject::removeTunnelRoute(IpPrefix& ipPrefix)
if (tunnelRouteMap_.find(ipPrefix) == tunnelRouteMap_.end())
{
SWSS_LOG_WARN("VNET tunnel route %s doesn't exist", ipPrefix.to_string().c_str());
return false;
return true;
}

auto tunnelRouteInfo = tunnelRouteMap_.at(ipPrefix);
Expand Down Expand Up @@ -1273,7 +1273,7 @@ bool VNetBitmapObject::removeRoute(IpPrefix& ipPrefix)
if (routeMap_.find(ipPrefix) == routeMap_.end())
{
SWSS_LOG_WARN("VNET route %s doesn't exist", ipPrefix.to_string().c_str());
return false;
return true;
}

sai_status_t status = sai_bmtor_api->remove_table_bitmap_router_entry(routeMap_.at(ipPrefix).routeTableEntryId);
Expand Down Expand Up @@ -1838,7 +1838,7 @@ bool VNetRouteOrch::doRouteTask<VNetBitmapObject>(const string& vnet, IpPrefix&
if (!vnet_orch_->isVnetExists(vnet))
{
SWSS_LOG_WARN("VNET %s doesn't exist", vnet.c_str());
return false;
return (op == DEL_COMMAND) ? true : false;
}

auto *vnet_obj = vnet_orch_->getTypePtr<VNetBitmapObject>(vnet);
Expand All @@ -1863,7 +1863,7 @@ bool VNetRouteOrch::doRouteTask<VNetBitmapObject>(const string& vnet, IpPrefix&
if (!vnet_orch_->isVnetExists(vnet))
{
SWSS_LOG_WARN("VNET %s doesn't exist", vnet.c_str());
return false;
return (op == DEL_COMMAND) ? true : false;
}

auto *vnet_obj = vnet_orch_->getTypePtr<VNetBitmapObject>(vnet);
Expand Down

0 comments on commit fb8b6a0

Please sign in to comment.