Skip to content

Commit

Permalink
Delete port alias from portList set in portmgr. So that when the port…
Browse files Browse the repository at this point in the history
… is re-created we can identify it as new configuration and set the default MTU. (sonic-net#1418)

Co-authored-by: Vasant Patil <vapatil@linkedin.com>
  • Loading branch information
vasant17 and Vasant Patil authored Aug 26, 2020
1 parent e6fda33 commit 8c0a499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cfgmgr/portmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8c0a499

Please sign in to comment.