summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-04-13 00:21:34 +0100
committerGitHub <noreply@github.com>2023-04-13 00:21:34 +0100
commit30263ab26b8a9bbebe9356dd4e465b331230e31e (patch)
tree93dacb6f321aebe57b6b6877d594ee3bc4a9b2b0 /data/templates
parent0b0f991a86461ed725762010cf263fb2f0eaa16a (diff)
parent930a2276811d65d25b543176d224f2178f0c0bd5 (diff)
downloadvyos-1x-30263ab26b8a9bbebe9356dd4e465b331230e31e.tar.gz
vyos-1x-30263ab26b8a9bbebe9356dd4e465b331230e31e.zip
Merge pull request #1951 from fett0/T4939
T4939: backport VRRP startup delay
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/vrrp/keepalived.conf.tmpl5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/vrrp/keepalived.conf.tmpl b/data/templates/vrrp/keepalived.conf.tmpl
index 10d5c6d24..6203184e3 100644
--- a/data/templates/vrrp/keepalived.conf.tmpl
+++ b/data/templates/vrrp/keepalived.conf.tmpl
@@ -5,6 +5,11 @@
global_defs {
dynamic_interfaces
script_user root
+{% if global_parameters is defined and global_parameters is not none %}
+{% if global_parameters.startup_delay is defined %}
+ vrrp_startup_delay {{ global_parameters.startup_delay }}
+{% endif %}
+{% endif %}
notify_fifo /run/keepalived/keepalived_notify_fifo
notify_fifo_script /usr/libexec/vyos/system/keepalived-fifo.py
}