diff options
author | fett0 <fernando.gmaidana@gmail.com> | 2023-04-12 01:28:27 +0000 |
---|---|---|
committer | fett0 <fernando.gmaidana@gmail.com> | 2023-04-12 01:28:27 +0000 |
commit | 930a2276811d65d25b543176d224f2178f0c0bd5 (patch) | |
tree | 93dacb6f321aebe57b6b6877d594ee3bc4a9b2b0 /data/templates/vrrp/keepalived.conf.tmpl | |
parent | 56a762fc6c217870a5c54bc0e4e162dfa0a1e9bf (diff) | |
download | vyos-1x-930a2276811d65d25b543176d224f2178f0c0bd5.tar.gz vyos-1x-930a2276811d65d25b543176d224f2178f0c0bd5.zip |
T4939: fixed template VRRP startup delay
Diffstat (limited to 'data/templates/vrrp/keepalived.conf.tmpl')
-rw-r--r-- | data/templates/vrrp/keepalived.conf.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/data/templates/vrrp/keepalived.conf.tmpl b/data/templates/vrrp/keepalived.conf.tmpl index 49c5c3916..6203184e3 100644 --- a/data/templates/vrrp/keepalived.conf.tmpl +++ b/data/templates/vrrp/keepalived.conf.tmpl @@ -5,8 +5,10 @@ global_defs { dynamic_interfaces script_user root -{% if vrrp.global_parameters.startup_delay is vyos_defined %} - vrrp_startup_delay {{ vrrp.global_parameters.startup_delay }} +{% 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 |