Skip to content

Commit

Permalink
[ppi]: Backport sonic-net#2607.
Browse files Browse the repository at this point in the history
Signed-off-by: Nazarii Hnydyn <nazariig@nvidia.com>
  • Loading branch information
nazariig committed Apr 7, 2023
1 parent 2cd1aef commit 594532c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,13 @@ bool PortsOrch::addPortBulk(const std::vector<PortConfig> &portList)
m_portCount++;
}

// newly created ports might be put in the default vlan so remove all ports from
// the default vlan.
if (gMySwitchType == "voq") {
removeDefaultVlanMembers();
removeDefaultBridgePorts();
}

SWSS_LOG_NOTICE("Created ports: %s", swss::join(',', oidList.begin(), oidList.end()).c_str());

return true;
Expand Down

0 comments on commit 594532c

Please sign in to comment.