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]Fixes mclag subcommand issue #2310

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ouxlwhu
Copy link

@ouxlwhu ouxlwhu commented Aug 13, 2022

Signed-off-by: ouxiaolong ouxiaolong@asterfusion.com

What I did

The mclag subcommand 'member' and 'unique_ip' has been incorrectly added to the click node of 'config', so we can find commands like this:

admin@102:~$ sudo config member -h
Usage: config member [OPTIONS] COMMAND [ARGS]...

Options:
  -?, -h, --help  Show this message and exit.

Commands:
  add  Add member MCLAG interfaces from MCLAG Domain
  del  Delete member MCLAG interfaces from MCLAG Domain

admin@102:~$ sudo config unique-ip -h
Usage: config unique-ip [OPTIONS] COMMAND [ARGS]...

  Configure Unique IP on MCLAG Vlan interface

Options:
  -h, -?, --help  Show this message and exit.

Commands:
  add  Add Unique IP on MCLAG Vlan interface
  del  Delete Unique IP from MCLAG Vlan interface

How I did it

Remove unnecessary code.

How to verify it

Execute these commands will report “No such command”

sudo config member -h
sudo config unique-ip -h 

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

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

Signed-off-by: ouxiaolong <ouxiaolong@asterfusion.com>
@linux-foundation-easycla
Copy link

CLA Not Signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant