Skip to content

Commit

Permalink
Y cable task should also subscribe port configuration change
Browse files Browse the repository at this point in the history
  • Loading branch information
Junchao-Mellanox committed Sep 17, 2021
1 parent a3e7f7a commit 88acbcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sonic-xcvrd/xcvrd/xcvrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,7 @@ def run(self):
y_cable_state_update = None
if self.y_cable_presence[0] is True:
y_cable_state_update = y_cable_helper.YCableTableUpdateTask(self.port_mapping)
self.subscribe_port_change_event(y_cable_state_update)
y_cable_state_update.task_run()

# Start main loop
Expand Down

0 comments on commit 88acbcf

Please sign in to comment.