diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-03-04 11:21:14 -0800 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-03-04 11:21:14 -0800 |
commit | cb9c343db46dd15b734e477d9adba343827e0360 (patch) | |
tree | 61012416aeaeb86b5bbb9dcd6ddf9b535ba407af /templates/protocols/static/interface-route | |
parent | 73073b1992ba40d383ebd3bcad5760295e310227 (diff) | |
download | vyatta-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.def | 4 |
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/@)"; |