diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-21 20:05:52 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-21 22:16:11 +0200 |
commit | 9788c48435bb8ce74883138d305743a6a565910a (patch) | |
tree | 1fb2b778d6a16bce0bcfc7a9d506771794190005 /src/conf_mode | |
parent | 10a71d6d0534810c314010adc22ae7265334647c (diff) | |
download | vyos-1x-9788c48435bb8ce74883138d305743a6a565910a.tar.gz vyos-1x-9788c48435bb8ce74883138d305743a6a565910a.zip |
vrrp: keepalived: T2720: adjust to Jinja2 trim_blocks feature
This is a successor to commit a2ac9fac16e ("vyos.template: T2720: always enable
Jinja2 trim_blocks feature"). It only shifts the whitespaces / indents inside
the keepalived configuration file.
(cherry picked from commit c1ac0630cfe0ee65569fbe435cc006ade20fed22)
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/vrrp.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/conf_mode/vrrp.py b/src/conf_mode/vrrp.py index 3ccc7d66b..4cee87003 100755 --- a/src/conf_mode/vrrp.py +++ b/src/conf_mode/vrrp.py @@ -17,7 +17,12 @@ import os from sys import exit -from ipaddress import ip_address, ip_interface, IPv4Interface, IPv6Interface, IPv4Address, IPv6Address +from ipaddress import ip_address +from ipaddress import ip_interface +from ipaddress import IPv4Interface +from ipaddress import IPv6Interface +from ipaddress import IPv4Address +from ipaddress import IPv6Address from json import dumps from pathlib import Path |