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
[xcvrd] Return non-zero error code on SFP error (sonic-net#67)
Currently when there is an error event in xcvrd within SFP state machine, it returns with 0 exit code. With this change the SFP if it has an error event with return with non-zero exit code.
Signed-off-by: vaibhav-dahiya <[email protected]>
logger.log_error("System failed to get ready in {} secs or received system error. Exiting...".format((RETRY_PERIOD_FOR_SYSTEM_READY_MSECS/1000)*RETRY_TIMES_FOR_SYSTEM_READY))
900
901
next_state=STATE_EXIT
902
+
sfp_error_event.set()
901
903
else:
902
904
retry=retry+1
903
905
@@ -985,6 +987,7 @@ class sfp_state_update_task:
985
987
ifretry>=RETRY_TIMES_FOR_SYSTEM_FAIL:
986
988
logger.log_error("System failed to recover in {} secs. Exiting...".format((RETRY_PERIOD_FOR_SYSTEM_FAIL_MSECS/1000)*RETRY_TIMES_FOR_SYSTEM_FAIL))
0 commit comments