Skip to content

Commit c0ef1d5

Browse files
committed
enable track_interface config per sync_group
1 parent 07b46e0 commit c0ef1d5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

templates/keepalived.conf.j2

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ vrrp_sync_group {{ name }} {
9494
{% endfor %}
9595
}
9696
{% endif %}
97+
{% if sync_group.track_interfaces is defined %}
98+
track_interface {
99+
{% for track_interface in sync_group.track_interfaces %}
100+
{{ track_interface }}
101+
{% endfor %}
102+
}
103+
{% endif %}
97104
}
98105
{% endfor %}
99106

0 commit comments

Comments
 (0)