-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[202211][config reload] Config Reload Enhancement (#64)
Backporting #45 Code changes for config reload Enhancement sonic-net/SONiC#1203. Enhancing config reload to sequence the services and faster system initialization. Immediately restart the critical services during config reload. The non critical should be started only after all the ports are initialized. Services can be configured to be started immediately or delayed. This can be using a field in FEATURE table. The existing timers should be removed by this event driven approach. This flow is applicable in case of all reboots (warm/fast/cold) as well as config reload.
- Loading branch information
1 parent
7ab0978
commit cdc621b
Showing
8 changed files
with
434 additions
and
168 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class MockRestartWaiter(object): | ||
advancedReboot = False | ||
""" | ||
Mock Config DB which responds to data tables requests and store updates to the data table | ||
""" | ||
def waitAdvancedBootDone(maxWaitSec=180, dbTimeout=0, isTcpConn=False): | ||
return True | ||
|
||
def waitWarmBootDone(maxWaitSec=180, dbTimeout=0, isTcpConn=False): | ||
return False | ||
|
||
def waitFastBootDone(maxWaitSec=180, dbTimeout=0, isTcpConn=False): | ||
return False | ||
|
||
def isAdvancedBootInProgress(stateDb): | ||
return MockRestartWaiter.advancedReboot | ||
|
||
def isFastBootInProgress(stateDb): | ||
return False | ||
|
||
def isWarmBootInProgress(stateDb): | ||
return False | ||
|
||
def __init__(self): | ||
pass |
Oops, something went wrong.