Skip to content

Commit

Permalink
[fast/warm reboot] kill radv docker before stopping BGP (sonic-net#608)
Browse files Browse the repository at this point in the history
* [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 <ying.xie@microsoft.com>

* stop radv service after killing the docker to be ready for service auto restart.
  • Loading branch information
yxieca authored Aug 15, 2019
1 parent 9401efd commit 3d008ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,11 @@ if [[ "$REBOOT_TYPE" = "warm-reboot" || "$REBOOT_TYPE" = "fastfast-reboot" ]]; t
fi
fi
# Kill radv before stopping BGP service to prevent annoucing our departure.
debug "Stopping radv ..."
docker kill radv &>/dev/null || [ $? == 1 ]
systemctl stop radv
# Kill bgpd to start the bgp graceful restart procedure
debug "Stopping bgp ..."
docker exec -i bgp pkill -9 zebra
Expand Down

0 comments on commit 3d008ea

Please sign in to comment.