summaryrefslogtreecommitdiff
path: root/data/templates/vrrp
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-03-14 12:13:58 +0100
committerGitHub <noreply@github.com>2024-03-14 12:13:58 +0100
commit1ba302d55b86d63880fe2f55286fe82003f8a31f (patch)
treeeda8e14158503fea24d1a9f7d94b67f6d41b4636 /data/templates/vrrp
parent423a25a814ca92870399dab1c5e107732a16292d (diff)
parentd632ce658cbe6557b17cffd3c0b17545ee3181c2 (diff)
downloadvyos-1x-1ba302d55b86d63880fe2f55286fe82003f8a31f.tar.gz
vyos-1x-1ba302d55b86d63880fe2f55286fe82003f8a31f.zip
Merge pull request #3130 from natali-rs1985/T5504-equuleus
vrrp: T5504: Keepalived VRRP ability to set more than one peer-address
Diffstat (limited to 'data/templates/vrrp')
-rw-r--r--data/templates/vrrp/keepalived.conf.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/vrrp/keepalived.conf.tmpl b/data/templates/vrrp/keepalived.conf.tmpl
index 4eba3fb16..0595ab93f 100644
--- a/data/templates/vrrp/keepalived.conf.tmpl
+++ b/data/templates/vrrp/keepalived.conf.tmpl
@@ -83,7 +83,11 @@ vrrp_instance {{ name }} {
nopreempt
{% endif %}
{% if group_config.peer_address is defined and group_config.peer_address is not none %}
- unicast_peer { {{ group_config.peer_address }} }
+ unicast_peer {
+{% for peer_address in group_config.peer_address %}
+ {{ peer_address }}
+{% endfor %}
+ }
{% endif %}
{% if group_config.hello_source_address is defined and group_config.hello_source_address is not none %}
{% if group_config.peer_address is defined and group_config.peer_address is not none %}