summaryrefslogtreecommitdiff
path: root/templates/policy/prefix-list
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2007-12-12 20:12:56 -0800
committerStig Thormodsrud <stig@vyatta.com>2007-12-12 20:12:56 -0800
commitccc86da96be587935f616ce5ce8715c67f6d2f87 (patch)
treeccce5e903de713d790d9d11b07bd590b9bc4c92b /templates/policy/prefix-list
parent51e5d904b6a51ed07a0eaeda12c1d15c1f6a8c0a (diff)
downloadvyatta-cfg-quagga-ccc86da96be587935f616ce5ce8715c67f6d2f87.tar.gz
vyatta-cfg-quagga-ccc86da96be587935f616ce5ce8715c67f6d2f87.zip
Add wrapper script between cfg templates and vtysh. The wrapper will:
- log commands to /tmp/vtysh.log - return error code when quagga responds with an errmsg - ignore errors when called with -n
Diffstat (limited to 'templates/policy/prefix-list')
-rw-r--r--templates/policy/prefix-list/node.tag/rule/node.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/policy/prefix-list/node.tag/rule/node.def b/templates/policy/prefix-list/node.tag/rule/node.def
index 35ebe6e8..e45083ca 100644
--- a/templates/policy/prefix-list/node.tag/rule/node.def
+++ b/templates/policy/prefix-list/node.tag/rule/node.def
@@ -10,7 +10,7 @@ delete: "touch /tmp/protocols-$(../@)-$(@).\\$PPID \
if [ -n \"$(./le/@)\" ]; then \
COND=\"\\$COND le $(./le/@) \"; \
fi; \
- /usr/bin/vtysh -c \"configure terminal\" \
+ \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
-c \"no ip prefix-list $(../@) seq $(@) $(./action/@) $(./prefix/@) \\$COND \" "
end: "LEN=`echo $(./prefix/@) | awk -F/ '{ print \\$2 }'` ; \
if [ -n \"$(./ge/@)\" ]; then \
@@ -30,7 +30,7 @@ end: "LEN=`echo $(./prefix/@) | awk -F/ '{ print \\$2 }'` ; \
if [ -f \"/tmp/protocols-$(../@)-$(@).\\$PPID\" ]; then \
rm -f \"protocols-$(../@)-$(@).\\$PPID\" ; \
else \
- /usr/bin/vtysh -c \"configure terminal\" \
+ \\${vyatta_sbindir}/vyatta-vtysh.pl -c \"configure terminal\" \
-c \"ip prefix-list $(../@) seq $(@) $(./action/@) $(./prefix/@) \\$COND \" ; \
fi ; \
exit 0 ; "