forked from sonoble/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[syncd] partial warm recovery support (sonic-net#352)
* [syncd] delay creating diag shell to after switch is created Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd] provide default SAI warmboot data file in case not specified Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd] move performWarmRestart to sycnd_hard_reinit.cpp - Move function to get access to static local variables. - Improve the function according to the new SAI interaction requirements. - Remove 'TODO' and exception since the code is now working. Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd] restore previously changed warm boot condition Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd script] refactor syncd init script - move start type setting in a helper function Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd script] check and set warm start type WARM start takes precedence over fast start. Because fast boot option is a kernel command line option. This option will always be there after a fast reboot. Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd] comment out warm start option calculation for now redis-cli is not available in syncd docker. Some work/discussion/decision is required if we want to continue start option. Signed-off-by: Ying Xie <ying.xie@microsoft.com> * [syncd] take warm boot hint from database directly Signed-off-by: Ying Xie <ying.xie@microsoft.com>
- Loading branch information
Showing
4 changed files
with
137 additions
and
89 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
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
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
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