summaryrefslogtreecommitdiff
path: root/templates/interfaces
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-18 15:37:04 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-11-18 15:37:04 -0800
commit048b51be982dce748fdefd1f4ba9f4df5816ba80 (patch)
treeec0124819f8fbcabdc359b605ddc7f54e5aefb72 /templates/interfaces
parent81fe2a8357388ae9c73bb12f9b9574fcc9f894db (diff)
downloadvyatta-cfg-quagga-048b51be982dce748fdefd1f4ba9f4df5816ba80.tar.gz
vyatta-cfg-quagga-048b51be982dce748fdefd1f4ba9f4df5816ba80.zip
Bring tunnel down before deleting
This is necessary to get routing protocols and proper cleanup
Diffstat (limited to 'templates/interfaces')
-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 77f827ac..e86ef9a0 100644
--- a/templates/interfaces/tunnel/node.def
+++ b/templates/interfaces/tunnel/node.def
@@ -36,5 +36,6 @@ create:if [ -n "$VAR(./key/@)" ]; then
delete:if [ "$VAR(./encapsulation/@)" == "gre-bridge" ]; then
ip link delete $VAR(@)
else
+ ip link set $VAR(@) down
ip tunnel del $VAR(@)
fi