summaryrefslogtreecommitdiff
path: root/templates/traffic-policy/network-emulator
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-16 12:38:30 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-16 16:24:43 -0700
commit658e7a9769a37dc53d873c53de0d461f3b7b6024 (patch)
tree05e68772a53cbe86a8398b348fc0853e006aef5b /templates/traffic-policy/network-emulator
parent5108933b8bb6eebc019e59e25a2a8ebcd858b58d (diff)
downloadvyatta-cfg-qos-658e7a9769a37dc53d873c53de0d461f3b7b6024.tar.gz
vyatta-cfg-qos-658e7a9769a37dc53d873c53de0d461f3b7b6024.zip
Use val_help: to show command options
Replace all usage in this package of comp_help with new val_help
Diffstat (limited to 'templates/traffic-policy/network-emulator')
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/bandwidth/node.def8
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/burst/node.def5
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/network-delay/node.def7
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/packet-corruption/node.def3
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/packet-loss/node.def3
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/packet-reordering/node.def3
-rw-r--r--templates/traffic-policy/network-emulator/node.tag/queue-limit/node.def1
7 files changed, 11 insertions, 19 deletions
diff --git a/templates/traffic-policy/network-emulator/node.tag/bandwidth/node.def b/templates/traffic-policy/network-emulator/node.tag/bandwidth/node.def
index 762654e..22b4e23 100644
--- a/templates/traffic-policy/network-emulator/node.tag/bandwidth/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/bandwidth/node.def
@@ -1,9 +1,5 @@
type: txt
help: Bandwidth limit
syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --rate $VAR(@)"
-comp_help: Allowed values:
- <number> Bandwidth in Kbps per second
- <number><suffix> Value with scaling suffix
- bits per sec (kbit, mbit, gbit)
- bytes per sec (kbps, mbps, gbps)
-
+val_help:<number>; Rate in k (1000) bytes per second
+val_help:<number><suffix>; Rate with scaling suffix (mbit, mbps, ...)
diff --git a/templates/traffic-policy/network-emulator/node.tag/burst/node.def b/templates/traffic-policy/network-emulator/node.tag/burst/node.def
index e23bca1..493e0fc 100644
--- a/templates/traffic-policy/network-emulator/node.tag/burst/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/burst/node.def
@@ -2,6 +2,5 @@ type: txt
help: Burst size
default: "15k"
syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --burst $VAR(@)"
-comp_help: Allowed values:
- <number> Burst size in bytes
- <number><suffix> Size with scaling suffix (kb, mb, gb)
+val_help:<number>; Bytes
+val_help:<number><suffix>; Bytes with scaling suffix (kb, mb, gb)
diff --git a/templates/traffic-policy/network-emulator/node.tag/network-delay/node.def b/templates/traffic-policy/network-emulator/node.tag/network-delay/node.def
index 40b8437..7455a38 100644
--- a/templates/traffic-policy/network-emulator/node.tag/network-delay/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/network-delay/node.def
@@ -1,6 +1,5 @@
type: txt
syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --time $VAR(@)"
-help: Setup network delay
-comp_help: Additional network delay in milliseconds
- <number> Latency in milliseconds
- <number><suffix> Time with suffx (secs, ms, us)
+help: Additional network delay
+val_help:<number>; Time in milliseconds
+val_help:<number><suffix>; Time with suffix (secs, ms, us)
diff --git a/templates/traffic-policy/network-emulator/node.tag/packet-corruption/node.def b/templates/traffic-policy/network-emulator/node.tag/packet-corruption/node.def
index d8fb6c6..c875ad5 100644
--- a/templates/traffic-policy/network-emulator/node.tag/packet-corruption/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/packet-corruption/node.def
@@ -1,6 +1,5 @@
type: txt
help: Emulated packet data corruption rate
syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --percent $VAR(@)"
-comp_help: Allowed values:
- <number>%% Percentage of packets affected
+val_help:<number>%%; Percentage of packets affected
diff --git a/templates/traffic-policy/network-emulator/node.tag/packet-loss/node.def b/templates/traffic-policy/network-emulator/node.tag/packet-loss/node.def
index c0edd1d..4765fd5 100644
--- a/templates/traffic-policy/network-emulator/node.tag/packet-loss/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/packet-loss/node.def
@@ -1,6 +1,5 @@
type: txt
help: Emulated packet loss rate
syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --percent $VAR(@)"
-comp_help: Allowed values:
- <number>%% Percentage of packets affected
+val_help:<number>%%; Percentage of packets affected
diff --git a/templates/traffic-policy/network-emulator/node.tag/packet-reordering/node.def b/templates/traffic-policy/network-emulator/node.tag/packet-reordering/node.def
index 365cffd..654bec3 100644
--- a/templates/traffic-policy/network-emulator/node.tag/packet-reordering/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/packet-reordering/node.def
@@ -3,6 +3,5 @@ help: Emulated packet reordering percentage
syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --percent $VAR(@)"
commit:expression: $VAR(../network-delay) != "" ; \
"Must specify network-delay for packet reordering"
-comp_help: Allowed values:
- <number>%% Percentage of packets affected
+val_help:<number>%%; Percentage of packets affected
diff --git a/templates/traffic-policy/network-emulator/node.tag/queue-limit/node.def b/templates/traffic-policy/network-emulator/node.tag/queue-limit/node.def
index dd5de38..a1fb213 100644
--- a/templates/traffic-policy/network-emulator/node.tag/queue-limit/node.def
+++ b/templates/traffic-policy/network-emulator/node.tag/queue-limit/node.def
@@ -1,3 +1,4 @@
type: u32
help: Maximum queue size (packets)
syntax:expression: $VAR(@) > 0; "Queue limit must be greater than zero"
+val_help:<1-4294967295>; Queue size in bytes