Skip to content

Commit

Permalink
Don't remove RIF for Vnet interface when ip prefix is deleted (#1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
prsunny authored Mar 23, 2020
1 parent bcac081 commit 841cd69
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 841cd69

Please sign in to comment.