summaryrefslogtreecommitdiff
path: root/scripts/vti-up-down
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2019-03-14 16:25:08 +0100
committerUnicronNL <kim.sidney@gmail.com>2019-03-14 16:28:30 +0100
commitbcdf0dead416fdc8e390ee3ba56fc5e7c6490e72 (patch)
tree95739272d866079199ee32fe2bb2e2d244f41d12 /scripts/vti-up-down
parent9900fb602e29b52e940ba7ee6eae3886b764fbfe (diff)
downloadvyatta-cfg-vpn-bcdf0dead416fdc8e390ee3ba56fc5e7c6490e72.tar.gz
vyatta-cfg-vpn-bcdf0dead416fdc8e390ee3ba56fc5e7c6490e72.zip
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
Diffstat (limited to 'scripts/vti-up-down')
-rwxr-xr-xscripts/vti-up-down5
1 files changed, 3 insertions, 2 deletions
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
+