diff --git a/scripts/fast-reboot b/scripts/fast-reboot index 844b1d8409..b89592e27f 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -726,6 +726,11 @@ for service in ${SERVICES_TO_STOP}; do sonic-db-cli FLEX_COUNTER_DB FLUSHDB > /dev/null fi + if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then + # Flush RESTAPI_DB in fast-reboot to avoid stale status + sonic-db-cli RESTAPI_DB FLUSHDB > /dev/null + fi + # TODO: backup_database preserves FDB_TABLE # need to cleanup as well for fastfast boot case backup_database