diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-03-04 09:43:35 -0800 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-03-04 09:43:35 -0800 |
commit | 9bba749ca55e5775d99af5e7e77de61ce3a0eaae (patch) | |
tree | 3bd35132ce41c3592635698d8f42bd3c0cc120f1 /templates/protocols | |
parent | 9b4b6a9602ca58db12e753364acde539d7677569 (diff) | |
download | vyatta-cfg-quagga-9bba749ca55e5775d99af5e7e77de61ce3a0eaae.tar.gz vyatta-cfg-quagga-9bba749ca55e5775d99af5e7e77de61ce3a0eaae.zip |
ported example of node.def using commit environmental variable rather than relying on /tmp pellets. should also improve performance when delete large numbers of static
route entries.
Diffstat (limited to 'templates/protocols')
-rw-r--r-- | templates/protocols/static/route/node.tag/next-hop/node.def | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/protocols/static/route/node.tag/next-hop/node.def b/templates/protocols/static/route/node.tag/next-hop/node.def index e631df83..c8632ed8 100644 --- a/templates/protocols/static/route/node.tag/next-hop/node.def +++ b/templates/protocols/static/route/node.tag/next-hop/node.def @@ -1,8 +1,7 @@ tag: type: ipv4 help: Set the next-hop router -delete: touch /tmp/static.$PPID -end: if [[ -f /tmp/static.$PPID ]] +end: if [[ ${COMMIT_ACTION} = 'DELETE' ]] then if ${vyatta_sbindir}/vyatta-gateway-static_route-check.pl \ "$VAR(../@)" "$VAR(@)" @@ -10,7 +9,6 @@ end: if [[ -f /tmp/static.$PPID ]] vyatta-vtysh -c "configure terminal" \ -c "no ip route $VAR(../@) $VAR(@)" fi - rm -f /tmp/static.$PPID else if [[ -n "$VAR(./distance/@)" ]] then |