summaryrefslogtreecommitdiff
path: root/templates/protocols/static/interface-route6
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-07 13:44:45 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-07 13:44:45 -0800
commita217f94c2264a681c97a7a76dabcacb8fce2a57e (patch)
tree007791d2c30994cbbd651c814407a74fa1733ab4 /templates/protocols/static/interface-route6
parentda9b9d773588e20b60b46538c46f7c4e14903935 (diff)
parentcae1b1454c0961e4a1733af93ce41d3db6f4b4b8 (diff)
downloadvyatta-cfg-quagga-a217f94c2264a681c97a7a76dabcacb8fce2a57e.tar.gz
vyatta-cfg-quagga-a217f94c2264a681c97a7a76dabcacb8fce2a57e.zip
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg-quagga into jenner
Diffstat (limited to 'templates/protocols/static/interface-route6')
-rw-r--r--templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def5
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
index 2d5eb281..052e1a2f 100644
--- a/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
+++ b/templates/protocols/static/interface-route6/node.tag/next-hop-interface/node.def
@@ -5,12 +5,9 @@ help: Set the next-hop interface
# but syntax accepts any interface since it may exist later (ppp etc)
allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
-delete: touch /tmp/static.$PPID
-
-end: if [ -f "/tmp/static.$PPID" ]; then
+end: if [ ${COMMIT_ACTION} = 'DELETE' ]; then
vyatta-vtysh -c "configure terminal" \
-c "no ipv6 route $VAR(../@) $VAR(@)";
- rm /tmp/static.$PPID;
else
if [ -n "$VAR(./distance/@)" ]; then
DIST="$VAR(./distance/@)";