[sonic-utilities] fix config/show vlan members#768
Closed
dawnbeauty wants to merge 2 commits intosonic-net:masterfrom
Closed
[sonic-utilities] fix config/show vlan members#768dawnbeauty wants to merge 2 commits intosonic-net:masterfrom
dawnbeauty wants to merge 2 commits intosonic-net:masterfrom
Conversation
Contributor
|
Can you update the description with previous and new output? |
Contributor
|
@dawnbeauty: Can you update the description with previous and new output? |
Author
Contributor
|
@dawnbeauty: Thanks. Can you also fix the recent merge conflict? |
Author
|
Done. |
Contributor
|
Retest this please |
prsunny
approved these changes
Apr 22, 2020
Contributor
prsunny
left a comment
There was a problem hiding this comment.
So command is no longer updating "members" field of VLAN table during add, correct?. Lgtm!
Contributor
|
obsoleted by #1050 |
Author
stepanblyschak
pushed a commit
to stepanblyschak/sonic-utilities
that referenced
this pull request
Apr 28, 2022
6cfb3ecb0248768da0a91e5f7fb4477c5da7eb4e (HEAD -> 201911, origin/201911) [build]: allow to use extra inc/lib location to build the package (sonic-net#595) 40d34872d3b7f354adac67f084eebf6ee467f779 Merge pull request sonic-net#846 from xumia/azp-201911 76ac50f147a7d820b19d8d7628a67f2fe4f5159b Disable the build test 6c9cf655b8b5b152cab1d578e05eddf8238b81b0 Fix branch reference error ca8d81d37a9b0294098f161b036d330d9ff461e0 [ci]: download artifacts from master branch (sonic-net#768) 0cbf4d55c67a9f8f52715f95536f3588acf06c4a [ci]: use sonicbld pool (sonic-net#766) b6f1265ee9bd86f8a5e909a6f1e9b2384497c906 [ci]: add build for arm64 and armhf (sonic-net#757) 9ec0a7da64d479b124815edc5b505fb88b2532a0 CI: add azure pipeline CI/CD (sonic-net#754) 1436dbe02cd3c56f796c6b3398d4075cd05d97e0 Fix RIF issue (sonic-net#835) Signed-off-by: Abhishek Dosi <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
- What I did
fixes Azure/SONiC issue 323
- How I did it
As the issue mentioned, the "members@" field of VLAN is for backward compatibility.
Utility script should no longer use it when config add/del vlan members.
config add vlan members
pre-add: check "members" of given vlan entry and vlan members table to ensure that the interface is not a member of given vlan.
add: add interface to VLAN_MEMBER table. (not to "members" of vlan.)
config del vlan members
pre-del: check "members" of given vlan entry and vlan members table to ensure that the interface is a member of given vlan.
del: not only remove interface from VLAN_MEMBER table but also from "members" of vlan(if existing)
show vlan config
collect members info from "members" list of given vlan and VLAN_MEMBER_TABLE.
- How to verify it
assume boot with below vlan configuration in config_db.json
- Previous command output (if the output of a command-line utility has changed)
NOTICE: here we could not get vlan member output from
show vlan config- New command output (if the output of a command-line utility has changed)