-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[201911 sonic-swss] Flushing FDB entries before removing BridgePort (#…
…1516) **What I did** I added coded in sonic-swss orchagent to flush the FDB entries corresponding to the bridge port before removing the bridgeport. **Why I did it** I did it because if we don't flush the FDB entries before removing the bridge port and try to remove the bridge port, the bridge port removal results in a failure and the port operational status is set to down. **How I verified it** I created a VLAN interface, assigned IP address to it and added 2 Ethernet ports as tagged members to it. I waited for the switch to add its neighbors through these bridge ports. Then I removed VLAN membership of one of the bridge ports and see it is successful and the operational state of the port does not go down on removing the VLAN membership. **Details if related** flushFDBEntries() function is introduce in orchagent/fdborch.cpp and called from orchagent/portsorch.cpp Co-authored-by: Madhan Babu <madhan@arc-build-server.mtr.labs.mlnx>
- Loading branch information
1 parent
e3f22ea
commit 756dd9c
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters