Skip to content

Commit

Permalink
upon cold reboot, skip remove mgmt vrf table from the kernel (#1214)
Browse files Browse the repository at this point in the history
* upon cold reboot, skip remove mgmt vrf table from the kernel
Co-authored-by: Bing Sun <Bing_Sun@dell.com>
  • Loading branch information
bsun-sudo authored Mar 9, 2020
1 parent 586886b commit 060a44e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cfgmgr/vrfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ VrfMgr::VrfMgr(DBConnector *cfgDb, DBConnector *appDb, DBConnector *stateDb, con
}
else
{
// No deletion of mgmt table from kernel
if (vrfName.compare("mgmt") == 0)
{
SWSS_LOG_NOTICE("Skipping remove vrf device %s", vrfName.c_str());
rowType = LINK_ROW;
break;
}

SWSS_LOG_NOTICE("Remove vrf device %s", vrfName.c_str());
cmd.str("");
cmd.clear();
Expand Down

0 comments on commit 060a44e

Please sign in to comment.