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
[y-cable] fix for logging the xcvrd metrics before writing the state to the State-DB (sonic-net#208)
fix for logging the xcvrd metrics before writing the state back to the
STATE DB
Description
This PR fixes the logging for mux_metrics for writing anything to the state DB for a state transition. Basically previously xcvrd would first post the query result to the DB and only then update its own metric for state transition, but now we do the reverse.
Motivation and Context
Second change was motivated by the sequence of events which happen inside state transition for mux-metrics table. Previously orchagent reports finishing the transition before xcvrd which is not the case. Ideally xcvrd does the transition first followed by orchagent followed by linkmgr
How Has This Been Tested?
Ran the change on Arista7050cx3 testbed.
Additional Information (Optional)
Signed-off-by: vaibhav-dahiya <[email protected]>
helper_logger.log_debug("Y_CABLE_DEBUG: xcvrd successful to transition port {} from {} to {} and write back to the DB".format(port, old_status, new_status))
1110
1106
helper_logger.log_info("Got a change event for toggle the mux-direction active side for port {} state from {} to {}".format(
0 commit comments