diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-03-28 18:18:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 18:18:19 +0100 |
commit | 82001265750fec18bab13161734ff1a90d2f7fc3 (patch) | |
tree | 184b8db526fa2e465a20266672049e48a4cd13e3 /data/templates | |
parent | d15db95d96ead981600140614797b08f9ff3f2f6 (diff) | |
parent | 0daf445abcd00446da21fe0220d41d5fdde95ebd (diff) | |
download | vyos-1x-82001265750fec18bab13161734ff1a90d2f7fc3.tar.gz vyos-1x-82001265750fec18bab13161734ff1a90d2f7fc3.zip |
Merge pull request #3200 from sever-sever/T5832
T5832: VRRP allow set interface for exluded-address
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/high-availability/keepalived.conf.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/high-availability/keepalived.conf.j2 b/data/templates/high-availability/keepalived.conf.j2 index 240161748..c0d66ae54 100644 --- a/data/templates/high-availability/keepalived.conf.j2 +++ b/data/templates/high-availability/keepalived.conf.j2 @@ -138,8 +138,8 @@ vrrp_instance {{ name }} { {% endif %} {% if group_config.excluded_address is vyos_defined %} virtual_ipaddress_excluded { -{% for addr in group_config.excluded_address %} - {{ addr }} +{% for addr, addr_config in group_config.excluded_address.items() %} + {{ addr }}{{ ' dev ' + addr_config.interface if addr_config.interface is vyos_defined }} {% endfor %} } {% endif %} |