summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-06-26 21:28:10 +0200
committerChristian Breunig <christian@breunig.cc>2023-06-26 21:28:10 +0200
commit6ca308182a7891e600a2e8749f7b12b566005576 (patch)
tree60b8597042090e370fc5bc8fa5adc58b98085bde /data/templates
parentca7c063666c038d104082542f04ead6062e79246 (diff)
downloadvyos-1x-6ca308182a7891e600a2e8749f7b12b566005576.tar.gz
vyos-1x-6ca308182a7891e600a2e8749f7b12b566005576.zip
vrrp: T5315: add support to explicitly specify version
set high-availability vrrp group <name> version 2|3
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/high-availability/keepalived.conf.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/high-availability/keepalived.conf.j2 b/data/templates/high-availability/keepalived.conf.j2
index 85b89c70c..bcd92358f 100644
--- a/data/templates/high-availability/keepalived.conf.j2
+++ b/data/templates/high-availability/keepalived.conf.j2
@@ -25,6 +25,9 @@ global_defs {
{% if vrrp.global_parameters.garp.master_repeat is vyos_defined %}
vrrp_garp_master_repeat {{ vrrp.global_parameters.garp.master_repeat }}
{% endif %}
+{% if vrrp.global_parameters.version is vyos_defined %}
+ vrrp_version {{ vrrp.global_parameters.version }}
+{% endif %}
{% endif %}
notify_fifo /run/keepalived/keepalived_notify_fifo
notify_fifo_script /usr/libexec/vyos/system/keepalived-fifo.py