Skip to content

Commit

Permalink
Fix orch stuch when removing vlan member (sonic-net#3294)
Browse files Browse the repository at this point in the history
What I did

ignore the returned value of setPortPvid()
  • Loading branch information
Yang-Yongzhi committed Sep 20, 2024
1 parent 9a6a86f commit ffbe7b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6757,10 +6757,7 @@ bool PortsOrch::removeVlanMember(Port &vlan, Port &port, string end_point_ip)
/* Restore to default pvid if this port joined this VLAN in untagged mode previously */
if (sai_tagging_mode == SAI_VLAN_TAGGING_MODE_UNTAGGED)
{
if (!setPortPvid(port, DEFAULT_PORT_VLAN_ID))
{
return false;
}
setPortPvid(port, DEFAULT_PORT_VLAN_ID);
}

m_portList[port.m_alias] = port;
Expand Down

0 comments on commit ffbe7b0

Please sign in to comment.