keepalived: differentiate the unicast ip address between configurations.

This commit is contained in:
Andrea Dell'Amico 2019-10-25 19:50:17 +02:00
parent d53f160afb
commit 361f51e152
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ vrrp_instance {{ instance.name }} {
{% endif %} {% endif %}
{% if keepalived_use_unicast %} {% if keepalived_use_unicast %}
unicast_src_ip {{ keepalived_unicast_src_ip }} unicast_src_ip {{ instance.keepalived_unicast_src_ip }}
unicast_peer { unicast_peer {
{% for ipaddr in keepalived_unicast_peer_ip %} {% for ipaddr in instance.keepalived_unicast_peer_ip %}
{{ ipaddr }} {{ ipaddr }}
{% endfor %} {% endfor %}