-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[config/show] add support for vlan configuration #151
Conversation
both swsssdk PR has been merge, can you help to resolve the conflict? |
@lguohan done. |
config/main.py
Outdated
@click.pass_context | ||
def del_vlan(ctx, vid): | ||
db = ctx.obj['db'] | ||
db.set_entry('VLAN', 'Vlan{}'.format(vid), None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to delete vlan members before deleting the vlan itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review. fixed.
$ config vlan add 1000 $ config vlan member add 1000 Ethernet1 $ config vlan member add 1000 Ethernet9_1 -u $ config vlan add 2000 $ config vlan member add 2000 Ethernet1 $ config vlan member add 2000 Ethernet9_2 -u $ show vlan config Name VID Member Mode -------- ----- ----------- -------- Vlan1000 1000 Ethernet1 tagged Ethernet9_1 untagged Vlan2000 2000 Ethernet1 tagged Ethernet9_2 untagged $ config vlan member del 1000 Ethernet1 $ config vlan member del 2000 Ethernet $ show vlan config Name VID Member Mode -------- ----- ----------- -------- Vlan1000 1000 Ethernet9_1 untagged Vlan2000 2000 Ethernet9_2 untagged $ config vlan del 1000 $ config vlan del 2000 $ show vlan config Name VID Member Mode ------ ----- -------- ------ Signed-off-by: Wataru Ishida <[email protected]>
Add GitHub pull request template
* [sonic_y_cable] add check_mux_direction api for y_cable Summary: This PR provides the support for checking the mux_direction on the y_cable by checking the mux_direction register Approach added the changes in y_cable.py with register specification for check_mux_direction What is the motivation for this PR? check_mux_direction is required for y_cable_utilities to replace the active_linked_tor_side -> check_mux_direction as agreed as a part of design Signed-off-by: vaibhav-dahiya <[email protected]>
sonic-net/sonic-py-swsssdk#22 and sonic-net/sonic-py-swsssdk#23 need to be get merged before this PR.