Skip to content

Commit 52b9c16

Browse files
zjswhhhyxieca
authored andcommitted
[muxcable][config] add CLI support for mux mode detach (#2425)
What I did Add support for config mux mode detach. Stemming from sonic-net/sonic-linkmgrd#79 sign-off: Jing Zhang [email protected] How I did it Add detach to the choice list. How to verify it Existing unit test. Tested on DUT
1 parent 14646ff commit 52b9c16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/muxcable.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def update_configdb_pck_loss_data(config_db, port, val):
280280

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

0 commit comments

Comments
 (0)