diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-03-13 19:09:21 +0200 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-03-13 19:09:21 +0200 |
commit | d632ce658cbe6557b17cffd3c0b17545ee3181c2 (patch) | |
tree | eda8e14158503fea24d1a9f7d94b67f6d41b4636 /data/templates/vrrp | |
parent | 423a25a814ca92870399dab1c5e107732a16292d (diff) | |
download | vyos-1x-d632ce658cbe6557b17cffd3c0b17545ee3181c2.tar.gz vyos-1x-d632ce658cbe6557b17cffd3c0b17545ee3181c2.zip |
vrrp: T5504: Keepalived VRRP ability to set more than one peer-address
Diffstat (limited to 'data/templates/vrrp')
-rw-r--r-- | data/templates/vrrp/keepalived.conf.tmpl | 6 |
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 %} |