summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorLucas Christian <lucas@lucasec.com>2021-09-19 17:02:42 -0700
committerLucas Christian <lucas@lucasec.com>2021-09-19 19:44:02 -0700
commitd768aee9bd93280210980d621ecc7b2da1a8d4af (patch)
treec712a6673e9ee084ba8edba9918a0ebb689bc154 /src/etc
parente83a113360ba18043edcf7f70689c7042dee2b37 (diff)
downloadvyos-1x-d768aee9bd93280210980d621ecc7b2da1a8d4af.tar.gz
vyos-1x-d768aee9bd93280210980d621ecc7b2da1a8d4af.zip
ipsec: T1441: Clean up vti-up-down script for XFRM interfaces
Diffstat (limited to 'src/etc')
-rwxr-xr-xsrc/etc/ipsec.d/vti-up-down12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/etc/ipsec.d/vti-up-down b/src/etc/ipsec.d/vti-up-down
index 011013a2e..1ffb32955 100755
--- a/src/etc/ipsec.d/vti-up-down
+++ b/src/etc/ipsec.d/vti-up-down
@@ -29,19 +29,10 @@ from vyos.util import call
from vyos.util import get_interface_config
from vyos.util import get_interface_address
-def get_dhcp_address(interface):
- addr = get_interface_address(interface)
- if not addr:
- return None
- if len(addr['addr_info']) == 0:
- return None
- return addr['addr_info'][0]['local']
-
if __name__ == '__main__':
verb = os.getenv('PLUTO_VERB')
connection = os.getenv('PLUTO_CONNECTION')
interface = sys.argv[1]
- dhcp_interface = sys.argv[2]
openlog(ident=f'vti-up-down', logoption=LOG_PID, facility=LOG_INFO)
syslog(f'Interface {interface} {verb} {connection}')
@@ -63,9 +54,6 @@ if __name__ == '__main__':
if verb in ['up-client', 'up-host']:
if not vti_link_up:
- if dhcp_interface != 'no':
- local_ip = get_dhcp_address(dhcp_interface)
- call(f'sudo ip tunnel change {interface} local {local_ip}')
if 'disable' not in vti_dict:
call(f'sudo ip link set {interface} up')
else: