Skip to content

Commit ab79eb9

Browse files
committed
[show][config] cli refactor for muxcable with abstract class implementation from vendors (sonic-net#1722)
Signed-off-by: vaibhav-dahiya [email protected] What I did this PR adds support for cli refactor which is done for abstract class implementation of muxcable which is provided by vendors. detailed design doc can be found sonic-net/SONiC#757 How I did it Added the changes in muxcable.py in show and config . How to verify it add unit-tests as well as run on a Arista-7050cx3 switch, run unit tests. no change in outputs, just the functionality has changed. Signed-off-by: vaibhav-dahiya <[email protected]>
1 parent 93d18ea commit ab79eb9

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

config/muxcable.py

-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,6 @@ def setswitchmode(db, state, port):
514514
res_dict [1] = "unknown"
515515
res_dict = update_and_get_response_for_xcvr_cmd("config", "result", "True", "XCVRD_CONFIG_HWMODE_SWMODE_CMD", "XCVRD_CONFIG_HWMODE_SWMODE_RSP", port, 1, state)
516516

517-
518517
rc = res_dict[0]
519518

520519
delete_all_keys_in_db_table("APPL_DB", "XCVRD_CONFIG_HWMODE_SWMODE_CMD")

show/muxcable.py

-1
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,6 @@ def switchmode(db, port):
740740
"""Shows the current switching mode of the muxcable {auto/manual}"""
741741

742742
port = platform_sfputil_helper.get_interface_alias(port, db)
743-
744743
delete_all_keys_in_db_table("APPL_DB", "XCVRD_SHOW_HWMODE_SWMODE_CMD")
745744
delete_all_keys_in_db_table("STATE_DB", "XCVRD_SHOW_HWMODE_SWMODE_RSP")
746745

0 commit comments

Comments
 (0)