Skip to content
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] add support for command "config interface pfc asymmetric EthernetXXX on/off" #544

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

leoli-nps
Copy link

- What I did
Add support for command "config interface pfc asymmetric EthernetXXX on/off".

- How I did it
Modify subcommand pfc asymmetric according to the adjustment of the command interface group.

- How to verify it

  1. First execute the command and observe the print;
  2. Then use the command pfc show asymmetric to view the results.

- Previous command output (if the output of a command-line utility has changed)

admin@sonic:~$ sudo config interface pfc asymmetric Ethernet0 on
Usage: config interface pfc asymmetric [OPTIONS] STATUS

Error: Invalid value for "status": invalid choice: Ethernet0. (choose from on, off)
admin@sonic:~$
admin@sonic:~$ pfc show asymmetric Ethernet0


Interface    Asymmetric
-----------  ------------
Ethernet0    N/A


admin@sonic:~$

- New command output (if the output of a command-line utility has changed)

admin@sonic:~$ sudo config interface pfc asymmetric Ethernet0 on
admin@sonic:~$
admin@sonic:~$ pfc show asymmetric Ethernet0


Interface    Asymmetric
-----------  ------------
Ethernet0    on


admin@sonic:~$
admin@sonic:~$ sudo config interface pfc asymmetric Ethernet0 off
admin@sonic:~$
admin@sonic:~$ pfc show asymmetric Ethernet0


Interface    Asymmetric
-----------  ------------
Ethernet0    off


admin@sonic:~$

Signed-off-by: leo.li leo.li@nephosinc.com

…ernetXXX on/off"

Signed-off-by: leo.li <leo.li@nephosinc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants