diff options
author | zsdc <taras@vyos.io> | 2019-12-31 23:21:19 +0200 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2019-12-31 23:21:19 +0200 |
commit | 1b1af57c9db4a201737b05906e0fd75942526cf8 (patch) | |
tree | a85cb88ca69ce45eb06263bd51f287cc8a535ed1 /src/conf_mode/vrrp.py | |
parent | d296eb00cc041b4abb5c0d69151aec61bfc8f87c (diff) | |
download | vyos-1x-1b1af57c9db4a201737b05906e0fd75942526cf8.tar.gz vyos-1x-1b1af57c9db4a201737b05906e0fd75942526cf8.zip |
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.
Diffstat (limited to 'src/conf_mode/vrrp.py')
-rwxr-xr-x | src/conf_mode/vrrp.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 -%} |