From 048b51be982dce748fdefd1f4ba9f4df5816ba80 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 18 Nov 2010 15:37:04 -0800 Subject: Bring tunnel down before deleting This is necessary to get routing protocols and proper cleanup --- templates/interfaces/tunnel/node.def | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3