From a193407dbe85242b7afa0f2bc2ab1bceb1d6cb53 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 1 Jun 2009 14:01:15 -0700 Subject: Fix problems with bandwidth template Bug 4485 Change template to deal with CLI changes in quoting evaluation of expressions. --- templates/qos-policy/random-detect/node.tag/bandwidth/node.def | 4 ++-- templates/qos-policy/traffic-shaper/node.tag/bandwidth/node.def | 4 ++-- 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) 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) Bandwidth in Kbps -- cgit v1.2.3