Skip to content

Commit

Permalink
Add zebra -K --graceful_restart argument
Browse files Browse the repository at this point in the history
https://docs.frrouting.org/en/latest/zebra.html#cmdoption-zebra-K

With that argument `-K 120`, when zebra stops it does not clean the
routes that has install on the host. When zebra starts up with, it will
wait 120 seconds before removing (sweeping) any routes that it
previously created but are no longer valid.

This is needed to complete the BGP graceful restart feature when the
local endpoints depend on local routes that are learned from the BGP
peer.

Downside is that if we simply remove FRR (delete deployment or change
speaker label toleration) those routes will remain on the host until
reboot.

Signed-off-by: karampok <[email protected]>
  • Loading branch information
karampok committed Dec 12, 2024
1 parent 55ce611 commit 276d978
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/frr-k8s/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ data:
# Check /etc/pam.d/frr if you intend to use "vtysh"!
#
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000"
zebra_options=" -A 127.0.0.1 -K 120 -s 90000000"
bgpd_options=" -A 127.0.0.1 {{ if not .Values.frrk8s.frr.acceptIncomingBGPConnections }} -p 0 {{- end }}"
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
Expand Down
2 changes: 1 addition & 1 deletion config/all-in-one/frr-k8s-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ data:
# Check /etc/pam.d/frr if you intend to use "vtysh"!
#
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000"
zebra_options=" -A 127.0.0.1 -K 120 -s 90000000"
bgpd_options=" -A 127.0.0.1 -p 0"
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
Expand Down
2 changes: 1 addition & 1 deletion config/all-in-one/frr-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ data:
# Check /etc/pam.d/frr if you intend to use "vtysh"!
#
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000"
zebra_options=" -A 127.0.0.1 -K 120 -s 90000000"
bgpd_options=" -A 127.0.0.1 -p 0"
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
Expand Down
2 changes: 1 addition & 1 deletion config/frr-k8s/frr-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ data:
# Check /etc/pam.d/frr if you intend to use "vtysh"!
#
vtysh_enable=yes
zebra_options=" -A 127.0.0.1 -s 90000000"
zebra_options=" -A 127.0.0.1 -K 120 -s 90000000"
bgpd_options=" -A 127.0.0.1 -p 0"
ospfd_options=" -A 127.0.0.1"
ospf6d_options=" -A ::1"
Expand Down

0 comments on commit 276d978

Please sign in to comment.