diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-29 11:48:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 11:48:49 +0100 |
commit | 9ffb0d6aa84c8dad2ab053e04379b7874564698c (patch) | |
tree | 3c0c492a90d18a273d5ff9fd116e5a8aedca1485 /data/templates | |
parent | 26fd83c75835accb6b3d91c14f17ec90faabb5b4 (diff) | |
parent | 36883ebf0f820003ec86e14e7612ce113630def2 (diff) | |
download | vyos-1x-9ffb0d6aa84c8dad2ab053e04379b7874564698c.tar.gz vyos-1x-9ffb0d6aa84c8dad2ab053e04379b7874564698c.zip |
Merge pull request #3056 from natali-rs1985/T5504-current
T5504: Keepalived VRRP ability to set more than one peer-address
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/high-availability/keepalived.conf.j2 | 6 |
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 %} |