summaryrefslogtreecommitdiff
path: root/data/templates/high-availability
diff options
context:
space:
mode:
authorkhramshinr <khramshinr@gmail.com>2024-03-01 12:39:28 +0800
committerkhramshinr <khramshinr@gmail.com>2024-03-01 12:39:28 +0800
commitef5c61b26e60a85768a0c6c0677e38fc238d1c29 (patch)
tree20b0307dd283c84eca8a32d4b7ab220b69704e6b /data/templates/high-availability
parent2943d9bb0f65fb9c1a605b9c1906c25ae827a656 (diff)
parentc095867d873a9a7dde038bb751ba26edc66b99f7 (diff)
downloadvyos-1x-ef5c61b26e60a85768a0c6c0677e38fc238d1c29.tar.gz
vyos-1x-ef5c61b26e60a85768a0c6c0677e38fc238d1c29.zip
vrrp: T6020: vrrp health-check script not applied correctly in keepalived.conf
Added health-check to sync-group in CLI Don't use instance health-check when instance in sync group member Disallow wrong healtch-check configurations New smoke test
Diffstat (limited to 'data/templates/high-availability')
-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 50b910ca3..240161748 100644
--- a/data/templates/high-availability/keepalived.conf.j2
+++ b/data/templates/high-availability/keepalived.conf.j2
@@ -100,7 +100,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 %}