forked from sonic-net/sonic-platform-common
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[xcvrd] state machine enhancement (sonic-net#44)
* change the state machine in order to overcome a platform temporarily fail/unavailable case 1. When receive system_fail event under NORMAL state, it will transmit to INIT instead of exit directly 2. In INIT state will handle system_fail event as the same as system_not_ready event,try certain times, if system recovered then transmit to NORMAL state again, if not covered in a certain period, then exit. benefit of this change is that when the system has error/failed temporarily, xcvrd can survive and recover instead of exit directly, make to more tolerance to errors.
- Loading branch information
Showing
1 changed file
with
54 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters