[Fast-boot] Clear teamd-timer when finalizing fast-reboot (#14583)
Part of sonic-net/sonic-utilities#2760 Similar to #14295 - Why I did it To clear teamd timer when fast-reboot is finalized to prevent any further affect. - How I did it Deleted teamd timer from config-db in fast-reboot finalizer. config save call is moved to after clearing teamd-timer so it won't have any further affect as well. - How to verify it Verified manually that entry was deleted after fast-reboot was finailized.
This commit is contained in:
parent
d73c810e86
commit
039a9c998a
@ -112,6 +112,7 @@ function finalize_fast_reboot()
|
||||
{
|
||||
debug "Finalizing fast-reboot..."
|
||||
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()
|
||||
@ -170,10 +171,6 @@ if [[ (x"${WARM_BOOT}" == x"true") && (x"${FAST_REBOOT}" != x"true") ]]; then
|
||||
stop_control_plane_assistant
|
||||
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
|
||||
debug "Some components didn't finish reconcile: ${list} ..."
|
||||
fi
|
||||
@ -184,4 +181,8 @@ fi
|
||||
|
||||
if [ x"${WARM_BOOT}" == x"true" ]; then
|
||||
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