From d7b033bb5576b497c84a73bfc8a852614f9821b9 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Wed, 25 May 2011 11:49:47 -0700 Subject: alternative fix for bug 6958 --- templates/interfaces/tunnel/node.def | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'templates/interfaces/tunnel') diff --git a/templates/interfaces/tunnel/node.def b/templates/interfaces/tunnel/node.def index c8670a16..669f7636 100644 --- a/templates/interfaces/tunnel/node.def +++ b/templates/interfaces/tunnel/node.def @@ -40,10 +40,7 @@ delete: ip link set $VAR(@) down ip tunnel del $VAR(@) mode $VAR(./encapsulation/@) fi -end: if [ "$COMMIT_SIBLING_POSITION" = "LAST" ] || \ - [ "$COMMIT_SIBLING_POSITION" = "FIRSTLAST" ] ; then - if [ ${COMMIT_ACTION} = "DELETE" ]; then - /opt/vyatta/sbin/vyatta-tunnel-cleanup - fi - fi +end: if [ "${COMMIT_ACTION}" == DELETE ]; then + /opt/vyatta/sbin/vyatta-tunnel-cleanup $VAR(@) + fi -- cgit v1.2.3