diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-29 16:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 16:45:27 +0100 |
commit | bb70f9964fd845bca0a5396dde7ca50e3daa2db3 (patch) | |
tree | f3fb3c800023f895eb09c60c0b19af320ebdd7c8 /data/templates/high-availability/keepalived.conf.j2 | |
parent | beb120958f0a6556db30a2aaf8dcd997506b2035 (diff) | |
parent | 195428e467c24e4bac59ea639891b0ada898bd30 (diff) | |
download | vyos-1x-bb70f9964fd845bca0a5396dde7ca50e3daa2db3.tar.gz vyos-1x-bb70f9964fd845bca0a5396dde7ca50e3daa2db3.zip |
Merge pull request #3064 from vyos/mergify/bp/sagitta/pr-3056
T5504: Keepalived VRRP ability to set more than one peer-address (backport #3056)
Diffstat (limited to 'data/templates/high-availability/keepalived.conf.j2')
-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 %} |