Skip to content

Commit d150229

Browse files
lolyuyxieca
authored andcommitted
Correct the peer forwarding state table (#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 901c6a1 commit d150229

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sonic-ycabled/ycable/ycable_utilities/y_cable_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3365,8 +3365,8 @@ def task_worker(self):
33653365
hw_mux_cable_tbl[asic_id] = swsscommon.Table(
33663366
state_db[asic_id], swsscommon.STATE_HW_MUX_CABLE_TABLE_NAME)
33673367
# TODO add definition inside app DB
3368-
status_tbl_peer[asic_id] = swsscommon.SubscriberStateTable(
3369-
appl_db[asic_id], "HW_MUX_CABLE_TABLE_PEER")
3368+
status_tbl_peer[asic_id] = swsscommon.ConsumerStateTable(
3369+
appl_db[asic_id], "HW_FORWARDING_STATE_PEER")
33703370
fwd_state_command_tbl[asic_id] = swsscommon.SubscriberStateTable(
33713371
appl_db[asic_id], "FORWARDING_STATE_COMMAND")
33723372
fwd_state_response_tbl[asic_id] = swsscommon.Table(

0 commit comments

Comments
 (0)