summaryrefslogtreecommitdiff
path: root/data/templates/vrrp
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:32:49 +0200
commit463a2078669b5499e82c7d2c06807f16d6c2a99d (patch)
tree0965ab7157b4b4109614be925aaf219a94c4f245 /data/templates/vrrp
parent9c756d5dd20ee059b76a3e8ba2d5602e5a9bbefc (diff)
downloadvyos-1x-463a2078669b5499e82c7d2c06807f16d6c2a99d.tar.gz
vyos-1x-463a2078669b5499e82c7d2c06807f16d6c2a99d.zip
vrrp: T5315: add support to explicitly specify version
set high-availability vrrp group <name> version 2|3 (cherry picked from commit 6ca308182a7891e600a2e8749f7b12b566005576)
Diffstat (limited to 'data/templates/vrrp')
-rw-r--r--data/templates/vrrp/keepalived.conf.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/data/templates/vrrp/keepalived.conf.tmpl b/data/templates/vrrp/keepalived.conf.tmpl
index 6203184e3..4bbd56584 100644
--- a/data/templates/vrrp/keepalived.conf.tmpl
+++ b/data/templates/vrrp/keepalived.conf.tmpl
@@ -9,6 +9,9 @@ global_defs {
{% if global_parameters.startup_delay is defined %}
vrrp_startup_delay {{ global_parameters.startup_delay }}
{% endif %}
+{% if global_parameters.version is defined %}
+ vrrp_version {{ global_parameters.version }}
+{% endif %}
{% endif %}
notify_fifo /run/keepalived/keepalived_notify_fifo
notify_fifo_script /usr/libexec/vyos/system/keepalived-fifo.py