Skip to content

Commit a254bd1

Browse files
committed
[ppi]: Backport sonic-net#2607.
Signed-off-by: Nazarii Hnydyn <[email protected]>
1 parent a9bec09 commit a254bd1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

orchagent/portsorch.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,13 @@ bool PortsOrch::addPortBulk(const std::vector<PortConfig> &portList)
784784
m_portCount++;
785785
}
786786

787+
// newly created ports might be put in the default vlan so remove all ports from
788+
// the default vlan.
789+
if (gMySwitchType == "voq") {
790+
removeDefaultVlanMembers();
791+
removeDefaultBridgePorts();
792+
}
793+
787794
SWSS_LOG_NOTICE("Created ports: %s", swss::join(',', oidList.begin(), oidList.end()).c_str());
788795

789796
return true;

0 commit comments

Comments
 (0)