Skip to content

Commit c7b7543

Browse files
authored
Correct the peer forwarding state table (sonic-net#281)
Description Fixes: sonic-net/sonic-linkmgrd#101 ycabled failed to toggle peer forwarding state for active-active ports. Use ConsumerStateTable to listen to HW_FORWARDING_STATE_PEER. Signed-off-by: Longxiang Lyu [email protected] Motivation and Context As the description How Has This Been Tested? On a dualtor-mixed testbed, shutdown a port on upper ToR, verified the lower ToR could toggle the nic_simulator upper ToR forwarding state to standby. Signed-off-by: Longxiang Lyu <[email protected]>
1 parent 5f5fefd commit c7b7543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,8 +3400,8 @@ def task_worker(self):
34003400
hw_mux_cable_tbl[asic_id] = swsscommon.Table(
34013401
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
34023402
# TODO add definition inside app DB
3403-
status_tbl_peer[asic_id] = swsscommon.SubscriberStateTable(
3404-
appl_db[asic_id], "HW_MUX_CABLE_TABLE_PEER")
3403+
status_tbl_peer[asic_id] = swsscommon.ConsumerStateTable(
3404+
appl_db[asic_id], "HW_FORWARDING_STATE_PEER")
34053405
fwd_state_command_tbl[asic_id] = swsscommon.SubscriberStateTable(
34063406
appl_db[asic_id], "FORWARDING_STATE_COMMAND")
34073407
fwd_state_response_tbl[asic_id] = swsscommon.Table(

0 commit comments

Comments
 (0)