Skip to content

Commit 73e6ddd

Browse files
authored
[xcvrd] replace check_active_linked_tor_side api to check_mux_direction (sonic-net#131)
Summary: This PR provides replaces the logic to check mux_direction on the y_cable by checking the mux_direction register instead of actively linked and routing TOR register Approach added the changes in y_cable_helper.py by replacing the API What is the motivation for this PR? check_mux_direction is required as per design to replace the active_linked_tor_side active_linked_tor_side -> check_mux_direction check_mux_direction will be utlized as for establishing mux direction explicitly Signed-off-by: vaibhav-dahiya <[email protected]>
1 parent ab39059 commit 73e6ddd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sonic-xcvrd/xcvrd/xcvrd_utilities/y_cable_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def update_appdb_port_mux_cable_response_table(logical_port_name, asic_index, ap
176176
"Error: Could not get read side for mux cable port probe command logical port {} and physical port {}".format(logical_port_name, physical_port))
177177
return
178178

179-
active_side = y_cable.check_active_linked_tor_side(physical_port)
179+
active_side = y_cable.check_mux_direction(physical_port)
180180

181181
if active_side is None:
182182

@@ -234,7 +234,7 @@ def read_y_cable_and_update_statedb_port_tbl(logical_port_name, mux_config_tbl):
234234
"Error: Could not establish the read side for Y cable port {}".format(logical_port_name))
235235
return
236236

237-
active_side = y_cable.check_active_linked_tor_side(physical_port)
237+
active_side = y_cable.check_mux_direction(physical_port)
238238
if active_side is None or active_side not in y_cable_switch_state_values:
239239
read_side = active_side = -1
240240
update_table_mux_status_for_statedb_port_tbl(

0 commit comments

Comments
 (0)