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/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/route')
-rw-r--r-- | templates/protocols/static/route/node.tag/blackhole/node.def | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/templates/protocols/static/route/node.tag/blackhole/node.def b/templates/protocols/static/route/node.tag/blackhole/node.def index f3844833..14375e0e 100644 --- a/templates/protocols/static/route/node.tag/blackhole/node.def +++ b/templates/protocols/static/route/node.tag/blackhole/node.def @@ -1,11 +1,8 @@ help: Set to silently discard pkts when matched -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(../@) null0"; - rm /tmp/static.$PPID; else if [ -n "$VAR(./distance/@)" ]; then DIST="$VAR(./distance/@)"; |