Skip to content

Commit

Permalink
Stop teamd gracefully
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel-shirshov committed Nov 8, 2018
1 parent c7ceafa commit 7ece8a4
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions scripts/fast-reboot
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,20 @@ docker exec -i bgp pkill -9 bgpd
# Kill lldp, otherwise it sends informotion about reboot
docker kill lldp > /dev/null

# Kill teamd, otherwise it gets down all LAGs
# Note: teamd must be killed before syncd, because it will send the last packet through CPU port
# TODO: stop teamd gracefully to allow teamd to send last valid update to be sure we'll have 90 seconds reboot time
docker kill teamd > /dev/null
# Stop teamd gracefully
if [[ "$REBOOT_TYPE" = "warm-reboot" ]]; then
# Send USR1 signal to all teamd instances to stop them
# It will prepare teamd for warm-reboot
# Note: We must send USR1 signal before syncd, because it will send the last packet through CPU port
docker exec -ti teamd pkill -USR1 teamd > /dev/null
fi

if [[ "$REBOOT_TYPE" = "fast-reboot" ]]; then
# Kill teamd, otherwise it gets down all LAGs
# Note: teamd must be killed before syncd, because it will send the last packet through CPU port
# TODO: stop teamd gracefully to allow teamd to send last valid update to be sure we'll have 90 seconds reboot time
docker kill teamd > /dev/null
fi

# Kill swss dockers
docker kill swss
Expand Down

0 comments on commit 7ece8a4

Please sign in to comment.