From bcdf0dead416fdc8e390ee3ba56fc5e7c6490e72 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 14 Mar 2019 16:25:08 +0100 Subject: Fixes T1298 use vti tunnel with ipsec and dhcp. * make dhcp interface work for vti interfaces * clean up code, loger timeout use python api * change vti tunnel ip on new dhcp lease * only change ip on up and do not get non dhcp ip * fix error in function, include up-host and down-host --- scripts/vti-up-down | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts/vti-up-down') diff --git a/scripts/vti-up-down b/scripts/vti-up-down index 8d363da..08e31c0 100755 --- a/scripts/vti-up-down +++ b/scripts/vti-up-down @@ -5,14 +5,15 @@ source /etc/default/vyatta source /etc/default/locale case "$PLUTO_VERB" in -route-client | up-client) +route-client | up-client | up-host) /bin/ip route delete default table 220 /opt/vyatta/sbin/vyatta-vti-config.pl --updown --intf=$1 --action=up ;; -down-client) +down-client | down-host) /opt/vyatta/sbin/vyatta-vti-config.pl --updown --intf=$1 --action=down ;; *) ;; esac exit 0 + -- cgit v1.2.3