diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-29 15:43:01 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-29 15:43:01 +0200 |
commit | 3e560a2cc0b945e0d9e2b3639210d519983f44a2 (patch) | |
tree | 288a2159947c60669282d77a86b71fc06bb0861a /src/conf_mode/vpn_ipsec.py | |
parent | 153a1c1d2549632342030fb4f7d41456b4f17fdb (diff) | |
download | vyos-1x-3e560a2cc0b945e0d9e2b3639210d519983f44a2.tar.gz vyos-1x-3e560a2cc0b945e0d9e2b3639210d519983f44a2.zip |
vpn: ipsec: T3093: drop obsolete cleanup_vti_interfaces() function
Diffstat (limited to 'src/conf_mode/vpn_ipsec.py')
-rwxr-xr-x | src/conf_mode/vpn_ipsec.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/conf_mode/vpn_ipsec.py b/src/conf_mode/vpn_ipsec.py index ccbcd7f44..0c6151892 100755 --- a/src/conf_mode/vpn_ipsec.py +++ b/src/conf_mode/vpn_ipsec.py @@ -347,7 +347,7 @@ def apply(ipsec): call('sudo /usr/sbin/swanctl -q') else: call('sudo /usr/sbin/ipsec stop') - cleanup_vti_interfaces() + resync_l2tp(conf) resync_nhrp(conf) return @@ -360,9 +360,6 @@ def apply(ipsec): should_start = ('profile' in ipsec or ('site_to_site' in ipsec and 'peer' in ipsec['site_to_site'])) - if not should_start: - cleanup_vti_interfaces() - if not process_named_running('charon'): args = '' if 'auto_update' in ipsec: @@ -394,12 +391,6 @@ def get_vti_interface(vti_interface): return interface_conf return None -def cleanup_vti_interfaces(): - global conf - section = conf.get_config_dict(['interfaces', 'vti'], get_first_key=True) - for interface, interface_conf in section.items(): - call(f'sudo /usr/sbin/ip link delete {interface} type vti', stderr=DEVNULL) - def get_mark(vti_interface): global mark_base, mark_index if vti_interface not in marks: |