diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-08-08 11:34:43 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-08-08 11:34:43 -0700 |
commit | a116681260a9531f4c9864994bbed8e0cbd8f811 (patch) | |
tree | eb1c0130596c36f9a48f813d4e9830e7232a8c0c /templates/protocols/static | |
parent | 35ef3ab0d3ead228ebb96cbca6b348b1f1c9e1b9 (diff) | |
download | vyatta-cfg-quagga-a116681260a9531f4c9864994bbed8e0cbd8f811.tar.gz vyatta-cfg-quagga-a116681260a9531f4c9864994bbed8e0cbd8f811.zip |
Fix syntax error found by check_tmpl.
Diffstat (limited to 'templates/protocols/static')
-rw-r--r-- | templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def | 23 |
1 files changed, 12 insertions, 11 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 74e5a8a4..da7b7864 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 @@ -32,15 +32,16 @@ syntax:expression: exec " \ fi ; \ fi ; " -delete:expression: "touch /tmp/static.$PPID" - -end:expression: "if [ -f \"/tmp/static.$PPID\" ]; 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/@)\"; \ - fi; \ - vyatta-vtysh -c \"configure terminal\" -c \"ip route $VAR(../@) $VAR(@) $DIST \" ; \ - fi; " +delete: touch /tmp/static.$PPID +end: if [ -f "/tmp/static.$PPID" ]; 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/@)"; + fi; + vyatta-vtysh -c "configure terminal" \ + -c "ip route $VAR(../@) $VAR(@) $DIST"; + fi; |