From 8c0a499093220160893a2b7d5714aebc4c6ceaaf Mon Sep 17 00:00:00 2001 From: Vasant Patil <36455926+vasant17@users.noreply.github.com> Date: Tue, 25 Aug 2020 17:59:16 -0700 Subject: [PATCH] Delete port alias from portList set in portmgr. So that when the port is re-created we can identify it as new configuration and set the default MTU. (#1418) Co-authored-by: Vasant Patil --- cfgmgr/portmgr.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cfgmgr/portmgr.cpp b/cfgmgr/portmgr.cpp index 21d0893668f3..d37a50f78a3b 100644 --- a/cfgmgr/portmgr.cpp +++ b/cfgmgr/portmgr.cpp @@ -155,6 +155,7 @@ void PortMgr::doTask(Consumer &consumer) { SWSS_LOG_NOTICE("Delete Port: %s", alias.c_str()); m_appPortTable.del(alias); + m_portList.erase(alias); } it = consumer.m_toSync.erase(it);