forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent user from adding more then a single untagged VLAN to an inter…
…face (sonic-net#1382) Fix for sonic-net#6421 **- What I did** User was able to add an interface to multiple VLANs as untagged. Added a validation to a single untagged member. **- How I did it** Added a validation when adding a port as untagged to check in DB if is already member as untagged in a different vlan. **- How to verify it** Add vlan, add interface as untagged member in this vlan, add another vlan, try to add the same interface as untagged member in the new vlan. **- Previous command output (if the output of a command-line utility has changed)** Command was successful. **- New command output (if the output of a command-line utility has changed)** Fail in VLAN membership. Error: Ethernet8 is already untagged member!
- Loading branch information
Showing
3 changed files
with
42 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