Skip to content

Commit

Permalink
[muxcable][config] add CLI support for mux mode detach (#2425)
Browse files Browse the repository at this point in the history
What I did
Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79

sign-off: Jing Zhang zhangjing@microsoft.com

How I did it
Add detach to the choice list.

How to verify it
Existing unit test.
Tested on DUT
  • Loading branch information
zjswhhh authored and yxieca committed Oct 25, 2022
1 parent 14646ff commit 52b9c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/muxcable.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def update_configdb_pck_loss_data(config_db, port, val):

# 'muxcable' command ("config muxcable mode <port|all> active|auto")
@muxcable.command()
@click.argument('state', metavar='<operation_status>', required=True, type=click.Choice(["active", "auto", "manual", "standby"]))
@click.argument('state', metavar='<operation_status>', required=True, type=click.Choice(["active", "auto", "manual", "standby", "detach"]))
@click.argument('port', metavar='<port_name>', required=True, default=None)
@click.option('--json', 'json_output', required=False, is_flag=True, type=click.BOOL)
@clicommon.pass_db
Expand Down

0 comments on commit 52b9c16

Please sign in to comment.