summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-19 12:40:55 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-19 14:23:40 -0800
commitfb1bf8a2eefbdb467a948688ab388628455ef480 (patch)
tree92dfba3cde94ee954943244f7d7e7bd4f1054ac4 /templates
parent6a9f575f6530e753baaa1dd66b9befd119695ed5 (diff)
downloadvyatta-cfg-quagga-fb1bf8a2eefbdb467a948688ab388628455ef480.tar.gz
vyatta-cfg-quagga-fb1bf8a2eefbdb467a948688ab388628455ef480.zip
Cleanup tunnel slave device on last delete
Need to leave gre0 around for case of multiple tunnels
Diffstat (limited to 'templates')
-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