From 1b1af57c9db4a201737b05906e0fd75942526cf8 Mon Sep 17 00:00:00 2001 From: zsdc Date: Tue, 31 Dec 2019 23:21:19 +0200 Subject: VRRP: T1588: Added support for dynamic interfaces in VRRP It is possible to add a nonexistent interface to the VRRP configuration, but this will lead to keepalived error and stop after configuration reload. With this new parameter, keepalived will consider nonexistent interfaces as FAULT instead crash and start VRRP on them, when they will appear on the system, which is a feature and much more correct behavior. --- src/conf_mode/vrrp.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/conf_mode') diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py index a08493309..d31be4cfb 100755 --- a/src/conf_mode/vrrp.py +++ b/src/conf_mode/vrrp.py @@ -35,6 +35,10 @@ config_tmpl = """ # Do not edit this file, all your changes will be lost # on next commit or reboot +global_defs { + dynamic_interfaces +} + {% for group in groups -%} {% if group.health_check_script -%} -- cgit v1.2.3