summaryrefslogtreecommitdiff
path: root/templates/interfaces/tunnel
diff options
context:
space:
mode:
authorKim Hagen <khagen@multi-development.com>2014-09-04 11:36:59 +0200
committerKim Hagen <khagen@multi-development.com>2014-09-04 11:36:59 +0200
commit78d4ce4504f87f8135b3ca9b524f6ccf3b570634 (patch)
tree05aaf480abc3644daa09e483a7998555a883dd12 /templates/interfaces/tunnel
parentc3ef70583eb2c60b5c83e1c5711906be2b496da4 (diff)
downloadvyatta-cfg-system-78d4ce4504f87f8135b3ca9b524f6ccf3b570634.tar.gz
vyatta-cfg-system-78d4ce4504f87f8135b3ca9b524f6ccf3b570634.zip
Do not delete tunnel if it is in use by NHRP config
Diffstat (limited to 'templates/interfaces/tunnel')
-rw-r--r--templates/interfaces/tunnel/node.def1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def
index f35bb401..9c7b4f5f 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -70,6 +70,7 @@ create:
echo "interfaces tunnel $VAR(@): error setting tunnel interface active"
delete:
+ /opt/vyatta/sbin/vyos-update-nhrp.pl --checkref --tun $VAR(@)
ip link set $VAR(@) down
case "$VAR(./encapsulation/@)" in
"gre" | "ipip" | "sit")