You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[show][muxcable] fix show mux hwmode muxdirection RC (sonic-net#2812)
What I did
show mux hwmode muxdirection always has rc==1.
Fixed the issue below:
get_grpc_cached_version_mux_direction_per_port has reverted TRUE/FALSE return value compared to get_hwmode_mux_direction_port. The former is used to get results for active-active ports, the latter is used to get results for active-standby ports.
Use sys.exit() instead of return rc. CLI rc is different from function return value.
Fixed show mux grpc muxdirection as well.
sign-off: Jing Zhang
How to verify it
Tested on DUTs to verify rc. Run commands for single port and all ports, with and without --json.
Passed all UTs.
0 commit comments