Skip to content

Commit 3d008ea

Browse files
authored
[fast/warm reboot] kill radv docker before stopping BGP (sonic-net#608)
* [fast/warm reboot] kill radv docker before stopping BGP Kill radv docker before stopping BGP. Otherwise it will announce our departure and cause hosts to lose default gateway. Signed-off-by: Ying Xie <[email protected]> * stop radv service after killing the docker to be ready for service auto restart.
1 parent 9401efd commit 3d008ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/fast-reboot

+5
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,11 @@ if [[ "$REBOOT_TYPE" = "warm-reboot" || "$REBOOT_TYPE" = "fastfast-reboot" ]]; t
371371
fi
372372
fi
373373
374+
# Kill radv before stopping BGP service to prevent annoucing our departure.
375+
debug "Stopping radv ..."
376+
docker kill radv &>/dev/null || [ $? == 1 ]
377+
systemctl stop radv
378+
374379
# Kill bgpd to start the bgp graceful restart procedure
375380
debug "Stopping bgp ..."
376381
docker exec -i bgp pkill -9 zebra

0 commit comments

Comments
 (0)