This commit is contained in:
parent
e786108bbd
commit
f53c7b66cd
@ -112,6 +112,7 @@ function finalize_fast_reboot()
|
|||||||
{
|
{
|
||||||
debug "Finalizing fast-reboot..."
|
debug "Finalizing fast-reboot..."
|
||||||
sonic-db-cli STATE_DB hset "FAST_RESTART_ENABLE_TABLE|system" "enable" "false" &>/dev/null
|
sonic-db-cli STATE_DB hset "FAST_RESTART_ENABLE_TABLE|system" "enable" "false" &>/dev/null
|
||||||
|
sonic-db-cli CONFIG_DB DEL "WARM_RESTART|teamd" &>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop_control_plane_assistant()
|
function stop_control_plane_assistant()
|
||||||
@ -169,10 +170,6 @@ if [[ (x"${WARM_BOOT}" == x"true") && (x"${FAST_REBOOT}" != x"true") ]]; then
|
|||||||
stop_control_plane_assistant
|
stop_control_plane_assistant
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Save DB after stopped control plane assistant to avoid extra entries
|
|
||||||
debug "Save in-memory database after warm/fast reboot ..."
|
|
||||||
config save -y
|
|
||||||
|
|
||||||
if [[ -n "${list}" ]]; then
|
if [[ -n "${list}" ]]; then
|
||||||
debug "Some components didn't finish reconcile: ${list} ..."
|
debug "Some components didn't finish reconcile: ${list} ..."
|
||||||
fi
|
fi
|
||||||
@ -183,4 +180,8 @@ fi
|
|||||||
|
|
||||||
if [ x"${WARM_BOOT}" == x"true" ]; then
|
if [ x"${WARM_BOOT}" == x"true" ]; then
|
||||||
finalize_warm_boot
|
finalize_warm_boot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Save DB after stopped control plane assistant to avoid extra entries
|
||||||
|
debug "Save in-memory database after warm/fast reboot ..."
|
||||||
|
config save -y
|
||||||
|
Reference in New Issue
Block a user