summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-03-13 19:09:21 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2024-03-13 19:09:21 +0200
commitd632ce658cbe6557b17cffd3c0b17545ee3181c2 (patch)
treeeda8e14158503fea24d1a9f7d94b67f6d41b4636 /data
parent423a25a814ca92870399dab1c5e107732a16292d (diff)
downloadvyos-1x-d632ce658cbe6557b17cffd3c0b17545ee3181c2.tar.gz
vyos-1x-d632ce658cbe6557b17cffd3c0b17545ee3181c2.zip
vrrp: T5504: Keepalived VRRP ability to set more than one peer-address
Diffstat (limited to 'data')
-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 %}