Skip to content

Commit

Permalink
[vxlanorch] Ambiguous return code for removeNextHopTunnel (sonic-net#880
Browse files Browse the repository at this point in the history
)

Change to return false when isTunnelExists is fail
  • Loading branch information
gord1306 authored and lguohan committed Jun 4, 2019
1 parent 8d520a6 commit 7d0c551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/vxlanorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ VxlanTunnelOrch::removeNextHopTunnel(string tunnelName, IpAddress& ipAddr, MacAd
if(!isTunnelExists(tunnelName))
{
SWSS_LOG_ERROR("Vxlan tunnel '%s' does not exists", tunnelName.c_str());
return true;
return false;
}

auto tunnel_obj = getVxlanTunnel(tunnelName);
Expand Down

0 comments on commit 7d0c551

Please sign in to comment.