Skip to content

Commit 49d61f8

Browse files
[scripts/fast-reboot] cleanup (sonic-net#2132)
- What I did Remove obsolete code which cause warmboot to fail from time to time. - How I did it Removed obsolete code. - How to verify it Run warm-reboot. Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 52ca324 commit 49d61f8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

scripts/fast-reboot

+2-9
Original file line numberDiff line numberDiff line change
@@ -674,15 +674,8 @@ fi
674674
if [[ -f ${SHUTDOWN_ORDER_FILE} ]]; then
675675
SERVICES_TO_STOP="$(cat ${SHUTDOWN_ORDER_FILE})"
676676
else
677-
# TODO: to be removed once sonic-buildimage change is in
678-
if [[ "${REBOOT_TYPE}" == "fast-reboot" ]]; then
679-
SERVICES_TO_STOP="nat radv bgp sflow lldp swss teamd syncd"
680-
elif [[ "${REBOOT_TYPE}" == "fastfast-reboot" || "${REBOOT_TYPE}" == "warm-reboot" ]]; then
681-
SERVICES_TO_STOP="nat radv bgp sflow lldp teamd swss syncd"
682-
else
683-
error "Unexpected reboot type ${REBOOT_TYPE}"
684-
exit $EXIT_FAILURE
685-
fi
677+
error "No shutdown sequence file found: ${SHUTDOWN_ORDER_FILE}"
678+
exit "${EXIT_FAILURE}"
686679
fi
687680
688681
for service in ${SERVICES_TO_STOP}; do

0 commit comments

Comments
 (0)