Skip to content

Commit f3ac16b

Browse files
[warm-reboot]: fixed review comments
Signed-off-by: Vadym Hlushko <[email protected]>
1 parent 1fd720f commit f3ac16b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/fast-reboot

+3-5
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ function request_pre_shutdown()
173173
function recover_issu_bank_file()
174174
{
175175
debug "Recovering the (${ISSU_BANK_FILE}) file"
176-
docker exec -it syncd sx_api_dbg_generate_dump.py
177-
issu_bank_value=`docker exec -it syncd cat /tmp/sdkdump | grep 'ISSU Bank' | grep -o -E '[0-9]+'`
176+
docker exec -i syncd sx_api_dbg_generate_dump.py
177+
issu_bank_value=`docker exec -i syncd cat /tmp/sdkdump | grep 'ISSU Bank' | grep -o -E '[0-9]+'`
178178
printf $issu_bank_value > /host/warmboot/issu_bank.txt
179179
}
180180
@@ -577,10 +577,8 @@ if [[ "$REBOOT_TYPE" = "warm-reboot" || "$REBOOT_TYPE" = "fastfast-reboot" ]]; t
577577
# Pre-shutdown syncd
578578
initialize_pre_shutdown
579579
580-
BEFORE_PRE_SHUTDOWN=true
581-
582580
if [[ "x$sonic_asic_type" == x"mellanox" ]]; then
583-
check_issu_bank_file "$BEFORE_PRE_SHUTDOWN"
581+
check_issu_bank_file
584582
fi
585583
586584
request_pre_shutdown

0 commit comments

Comments
 (0)