diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-18 15:37:04 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-11-18 15:37:04 -0800 |
commit | 048b51be982dce748fdefd1f4ba9f4df5816ba80 (patch) | |
tree | ec0124819f8fbcabdc359b605ddc7f54e5aefb72 /templates/interfaces/tunnel/node.def | |
parent | 81fe2a8357388ae9c73bb12f9b9574fcc9f894db (diff) | |
download | vyatta-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/tunnel/node.def')
-rw-r--r-- | templates/interfaces/tunnel/node.def | 1 |
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 |