diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-09 20:25:24 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-09 20:25:24 +0200 |
commit | 96049e6fdad05bd73423ea64780e90b385807cb9 (patch) | |
tree | 74d9e2d31367cb4d134f3008584505e99b3411f1 /src/conf_mode | |
parent | b40e57cc9b516f4ce206681a17f8624a2ab04139 (diff) | |
download | vyos-1x-96049e6fdad05bd73423ea64780e90b385807cb9.tar.gz vyos-1x-96049e6fdad05bd73423ea64780e90b385807cb9.zip |
ipsec: T3720: assigning vti secondary address caused interface in A/D state
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-vti.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/conf_mode/interfaces-vti.py b/src/conf_mode/interfaces-vti.py index 1b38304c1..57950ffea 100755 --- a/src/conf_mode/interfaces-vti.py +++ b/src/conf_mode/interfaces-vti.py @@ -45,13 +45,13 @@ def generate(vti): return None def apply(vti): - if vti['ifname'] in interfaces(): - # Always delete the VTI interface in advance + # Remove macsec interface + if 'deleted' in vti: VTIIf(**vti).remove() + return None - if 'deleted' not in vti: - tmp = VTIIf(**vti) - tmp.update(vti) + tmp = VTIIf(**vti) + tmp.update(vti) return None |