Skip to content

Commit 060a44e

Browse files
authored
upon cold reboot, skip remove mgmt vrf table from the kernel (#1214)
* upon cold reboot, skip remove mgmt vrf table from the kernel Co-authored-by: Bing Sun <[email protected]>
1 parent 586886b commit 060a44e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cfgmgr/vrfmgr.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ VrfMgr::VrfMgr(DBConnector *cfgDb, DBConnector *appDb, DBConnector *stateDb, con
6767
}
6868
else
6969
{
70+
// No deletion of mgmt table from kernel
71+
if (vrfName.compare("mgmt") == 0)
72+
{
73+
SWSS_LOG_NOTICE("Skipping remove vrf device %s", vrfName.c_str());
74+
rowType = LINK_ROW;
75+
break;
76+
}
77+
7078
SWSS_LOG_NOTICE("Remove vrf device %s", vrfName.c_str());
7179
cmd.str("");
7280
cmd.clear();

0 commit comments

Comments
 (0)