summaryrefslogtreecommitdiff
path: root/data/templates/high-availability
diff options
context:
space:
mode:
authorfett0 <fernando.gmaidana@gmail.com>2023-01-19 18:24:14 +0000
committerfett0 <fernando.gmaidana@gmail.com>2023-01-19 18:24:14 +0000
commited0da146529c5a38c32ac346335138baab428bac (patch)
tree6c91e12821e41c7ac69a093549f609bf531cbf23 /data/templates/high-availability
parent08949c6e85c6fe02bd702894748b41d600ee7d01 (diff)
downloadvyos-1x-ed0da146529c5a38c32ac346335138baab428bac.tar.gz
vyos-1x-ed0da146529c5a38c32ac346335138baab428bac.zip
T4939: VRRP startup delay for bonding fix
Diffstat (limited to 'data/templates/high-availability')
-rw-r--r--data/templates/high-availability/keepalived.conf.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/high-availability/keepalived.conf.j2 b/data/templates/high-availability/keepalived.conf.j2
index ebff52e1f..4465f8640 100644
--- a/data/templates/high-availability/keepalived.conf.j2
+++ b/data/templates/high-availability/keepalived.conf.j2
@@ -5,6 +5,11 @@
global_defs {
dynamic_interfaces
script_user root
+{% if vrrp.global_parameters is vyos_defined %}
+{% if vrrp.global_parameters.startup_delay is vyos_defined %}
+ vrrp_startup_delay {{ vrrp.global_parameters.startup_delay }}
+{% endif %}
+{% endif %}
notify_fifo /run/keepalived/keepalived_notify_fifo
notify_fifo_script /usr/libexec/vyos/system/keepalived-fifo.py
}