summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-03-28 19:14:04 +0100
committerGitHub <noreply@github.com>2024-03-28 19:14:04 +0100
commit6688295580219ed5c6cf98b55acad1a37b780db2 (patch)
tree8ffec5834fde4bc18e76d642a283baed0103220e /data
parent42c9243e05a9b9617e9053a3caaddf01567501e3 (diff)
parentcc60e0dcd491e606ac45241419a71e3a763f6ac1 (diff)
downloadvyos-1x-6688295580219ed5c6cf98b55acad1a37b780db2.tar.gz
vyos-1x-6688295580219ed5c6cf98b55acad1a37b780db2.zip
Merge pull request #3206 from vyos/mergify/bp/sagitta/pr-3200
T5832: VRRP allow set interface for exluded-address (backport #3200)
Diffstat (limited to 'data')
-rw-r--r--data/templates/high-availability/keepalived.conf.j24
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 %}