summaryrefslogtreecommitdiff
path: root/templates/protocols/static/interface-route
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-03-04 11:21:14 -0800
committerslioch <slioch@eng-140.vyatta.com>2009-03-04 11:21:14 -0800
commitcb9c343db46dd15b734e477d9adba343827e0360 (patch)
tree61012416aeaeb86b5bbb9dcd6ddf9b535ba407af /templates/protocols/static/interface-route
parent73073b1992ba40d383ebd3bcad5760295e310227 (diff)
downloadvyatta-cfg-quagga-cb9c343db46dd15b734e477d9adba343827e0360.tar.gz
vyatta-cfg-quagga-cb9c343db46dd15b734e477d9adba343827e0360.zip
clean up other static route commands to remove references to /tmp/ pellets and to use environment variable set via new cli.
Diffstat (limited to 'templates/protocols/static/interface-route')
-rw-r--r--templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def4
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def
index 7582362d..c22c9305 100644
--- a/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def
+++ b/templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def
@@ -7,12 +7,10 @@ allowed: local -a array
array=( /sys/class/net/* )
echo -n ${array[@]##*/}
-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 ip route $VAR(../@) $VAR(@)";
- rm /tmp/static.$PPID;
else
if [ -n "$VAR(./distance/@)" ]; then
DIST="$VAR(./distance/@)";