summaryrefslogtreecommitdiff
path: root/data/templates/high-availability/keepalived.conf.j2
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-02-28 11:42:58 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2024-02-28 11:42:58 +0200
commit3480d92a8c4d84e8c1f94a9362bac2be0cc77921 (patch)
treeb5682397586172ebc14f4ac3baa246265f39375e /data/templates/high-availability/keepalived.conf.j2
parent8b87836b371fdddb595ad3faf8a91a64f07c2bfb (diff)
downloadvyos-1x-3480d92a8c4d84e8c1f94a9362bac2be0cc77921.tar.gz
vyos-1x-3480d92a8c4d84e8c1f94a9362bac2be0cc77921.zip
T5504 Keepalived VRRP ability to set more than one peer-address
Diffstat (limited to 'data/templates/high-availability/keepalived.conf.j2')
-rw-r--r--data/templates/high-availability/keepalived.conf.j26
1 files changed, 5 insertions, 1 deletions
diff --git a/data/templates/high-availability/keepalived.conf.j2 b/data/templates/high-availability/keepalived.conf.j2
index d54f575b5..f34ce64e2 100644
--- a/data/templates/high-availability/keepalived.conf.j2
+++ b/data/templates/high-availability/keepalived.conf.j2
@@ -82,7 +82,11 @@ vrrp_instance {{ name }} {
nopreempt
{% endif %}
{% if group_config.peer_address is vyos_defined %}
- 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 vyos_defined %}
{% if group_config.peer_address is vyos_defined %}