summaryrefslogtreecommitdiff
path: root/templates/interfaces/tunnel/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/interfaces/tunnel/node.def')
-rw-r--r--templates/interfaces/tunnel/node.def8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index 912e4c13..f4d53c1a 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -38,11 +38,9 @@ delete: ip link set $VAR(@) down
ip link delete $VAR(@)
else
ip tunnel del $VAR(@) mode $VAR(./encapsulation/@)
- case "$VAR(./encapsulation/@)" in
- ipip) ip link del tunl0 ;;
- gre) ip link del gre0 ;;
- sit) ip link del sit0 ;;
- esac
fi
+end: if [ ${COMMIT_ACTION} = "DELETE" ]; then
+ /opt/vyatta/sbin/vyatta-tunnel-cleanup
+ fi