diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-06 14:10:33 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-02-06 14:10:33 -0800 |
commit | 8ed8df0993705bd51aa3167dd364bd40cfc6fc68 (patch) | |
tree | 062b588671ae89ab7da3c8e94c575714a6aa39f8 | |
parent | e956fa4071b05e427b260ee3332ac06afc91dde4 (diff) | |
download | vyatta-cfg-qos-8ed8df0993705bd51aa3167dd364bd40cfc6fc68.tar.gz vyatta-cfg-qos-8ed8df0993705bd51aa3167dd364bd40cfc6fc68.zip |
fix problems with percent sign in comp_help
comp_help is displayed via printf so % must be doubled.
Fixes: https://bugzilla.vyatta.com/show_bug.cgi?id=2762
4 files changed, 4 insertions, 4 deletions
diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/bandwidth/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/bandwidth/node.def index 839cb0f..0842f6d 100644 --- a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/bandwidth/node.def +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/bandwidth/node.def @@ -5,7 +5,7 @@ syntax:expression: exec "[[ \"$VAR(@)\" =~ '^[0-9]+(\.[0-9]*)?%$' ]] || \ /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\"" comp_help: Allowed values: <number> Bandwidth in Kbps - <number>% Percentage of overall rate (default 100%) + <number>%% Percentage of overall rate (default 100%%) <number><suffix> Value with scaling suffix bits per sec (kbit, mbit, gbit) bytes per sec (kbps, mbps, gbps) diff --git a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def index 65909d0..4373eac 100644 --- a/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def +++ b/templates/qos-policy/traffic-shaper/node.tag/class/node.tag/ceiling/node.def @@ -4,6 +4,6 @@ syntax:expression: exec "[[ \"$VAR(@)\" =~ '^[0-9]+(\.[0-9]*)?%$' ]] || \ /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\"" comp_help: Allowed values: <number> Limit in Kbps - <number>% Percentage of overall rate (default 100%) + <number>%% Percentage of overall rate <number><suffix> Value with scaling suffix bits per sec (kbit, mbit, gbit) diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/bandwidth/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/bandwidth/node.def index d728aa1..f3e3b53 100644 --- a/templates/qos-policy/traffic-shaper/node.tag/default/bandwidth/node.def +++ b/templates/qos-policy/traffic-shaper/node.tag/default/bandwidth/node.def @@ -4,7 +4,7 @@ syntax:expression: exec "[[ \"$VAR(@)\" =~ '^[0-9]+(\.[0-9]*)?%$' ]] || \ /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\"" comp_help: Allowed values: <number> Bandwidth in Kbps per second - <number>% Percentage of overall rate + <number>%% Percentage of overall rate <number><suffix> Value with scaling suffix bits per sec (kbit, mbit, gbit) bytes per sec (kbps, mbps, gbps) diff --git a/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def b/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def index 4b8bb3f..3176111 100644 --- a/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def +++ b/templates/qos-policy/traffic-shaper/node.tag/default/ceiling/node.def @@ -5,6 +5,6 @@ syntax:expression: exec "[[ \"$VAR(@)\" =~ '^[0-9]+(\.[0-9]*)?%$' ]] || \ /opt/vyatta/sbin/vyatta-qos-util.pl --rate \"$VAR(@)\"" comp_help: Allowed values: <number> Limit in Kbps - <number>% Percentage of overall rate (default 100%) + <number>%% Percentage of overall rate (default 100%%) <number><suffix> Value with scaling suffix bits per sec (kbit, mbit, gbit) |