summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-08-08 11:34:43 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-08-08 11:34:43 -0700
commita116681260a9531f4c9864994bbed8e0cbd8f811 (patch)
treeeb1c0130596c36f9a48f813d4e9830e7232a8c0c /templates
parent35ef3ab0d3ead228ebb96cbca6b348b1f1c9e1b9 (diff)
downloadvyatta-cfg-quagga-a116681260a9531f4c9864994bbed8e0cbd8f811.tar.gz
vyatta-cfg-quagga-a116681260a9531f4c9864994bbed8e0cbd8f811.zip
Fix syntax error found by check_tmpl.
Diffstat (limited to 'templates')
-rw-r--r--templates/protocols/static/interface-route/node.tag/next-hop-interface/node.def23
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;