diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-03-28 12:16:31 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-03-28 12:16:31 +0000 |
commit | 0daf445abcd00446da21fe0220d41d5fdde95ebd (patch) | |
tree | 3d5938de1e63eb9a1e485c2843e5921a7abf8444 /data/templates/high-availability/keepalived.conf.j2 | |
parent | 63b9889f2070ae09774c71ff1449a5c1f7b99881 (diff) | |
download | vyos-1x-0daf445abcd00446da21fe0220d41d5fdde95ebd.tar.gz vyos-1x-0daf445abcd00446da21fe0220d41d5fdde95ebd.zip |
T5832: VRRP allow set interface for exluded-address
Ability to set interface for `excluded-address`
The excluded-addresses are not listed in the VRRP packet (adverts packets).
We have this ability for `address`, add the same feature for the
excluded-address
```
set high-availability vrrp group GRP-01 excluded-address 192.0.2.202 interface 'dum2'
set high-availability vrrp group GRP-01 excluded-address 192.0.2.203 interface 'dum3'
```
Diffstat (limited to 'data/templates/high-availability/keepalived.conf.j2')
-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 %} |