summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-01 14:01:15 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-06-01 14:31:26 -0700
commita193407dbe85242b7afa0f2bc2ab1bceb1d6cb53 (patch)
treef562cb73b2d980715a5f8f2012444986fe7c65cb /templates
parent9703c9a871cf19cc05a034184b5f7ead971bd080 (diff)
downloadvyatta-cfg-qos-a193407dbe85242b7afa0f2bc2ab1bceb1d6cb53.tar.gz
vyatta-cfg-qos-a193407dbe85242b7afa0f2bc2ab1bceb1d6cb53.zip
Fix problems with bandwidth template
Bug 4485 Change template to deal with CLI changes in quoting evaluation of expressions.
Diffstat (limited to 'templates')
-rw-r--r--templates/qos-policy/random-detect/node.tag/bandwidth/node.def4
-rw-r--r--templates/qos-policy/traffic-shaper/node.tag/bandwidth/node.def4
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/qos-policy/random-detect/node.tag/bandwidth/node.def b/templates/qos-policy/random-detect/node.tag/bandwidth/node.def
index 76fa6e2..eb0d4d9 100644
--- a/templates/qos-policy/random-detect/node.tag/bandwidth/node.def
+++ b/templates/qos-policy/random-detect/node.tag/bandwidth/node.def
@@ -1,8 +1,8 @@
type: txt
help: Set the available bandwidth for this policy
default: "auto"
-syntax:expression: exec "[[ \"$VAR(@)\" == \"auto\" ]] || \
- /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\""
+syntax:expression: $VAR(@) == "auto" || \
+ exec "/opt/vyatta/sbin/vyatta-qos-util.pl --rate $VAR(@)"
comp_help: Allowed values:
auto Set bandwidth based on interface speed (default)
<number> Bandwidth in Kbps
diff --git a/templates/qos-policy/traffic-shaper/node.tag/bandwidth/node.def b/templates/qos-policy/traffic-shaper/node.tag/bandwidth/node.def
index 76fa6e2..eb0d4d9 100644
--- a/templates/qos-policy/traffic-shaper/node.tag/bandwidth/node.def
+++ b/templates/qos-policy/traffic-shaper/node.tag/bandwidth/node.def
@@ -1,8 +1,8 @@
type: txt
help: Set the available bandwidth for this policy
default: "auto"
-syntax:expression: exec "[[ \"$VAR(@)\" == \"auto\" ]] || \
- /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\""
+syntax:expression: $VAR(@) == "auto" || \
+ exec "/opt/vyatta/sbin/vyatta-qos-util.pl --rate $VAR(@)"
comp_help: Allowed values:
auto Set bandwidth based on interface speed (default)
<number> Bandwidth in Kbps