Skip to content

Commit

Permalink
Don't remove RIF for Vnet interface when ip prefix is deleted (sonic-…
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored and abdosi committed Mar 24, 2020
1 parent 71bd855 commit 1e29fa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions orchagent/vnetorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,10 @@ bool VNetBitmapObject::removeIntf(const string& alias, const IpPrefix *prefix)
SWSS_LOG_ERROR("Failed to remove VNET table entry, SAI rc: %d", status);
throw std::runtime_error("VNET interface removal failed");
}
}

if (!prefix)
{
intfMap_.erase(alias);

if (!gIntfsOrch->removeIntf(alias, gVirtualRouterId, nullptr))
Expand Down

0 comments on commit 1e29fa4

Please sign in to comment.