summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-14 08:43:33 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-06-14 08:43:33 -0700
commit6306f6edae447d824cf1d3beacb7b64f0f00d116 (patch)
tree9e88adbd7929e06597548df6f27e362957919356 /templates
parent03ff4147d09ce175354f7cce780bfef3e8003c0a (diff)
downloadvyatta-cfg-qos-6306f6edae447d824cf1d3beacb7b64f0f00d116.tar.gz
vyatta-cfg-qos-6306f6edae447d824cf1d3beacb7b64f0f00d116.zip
Add default for traffic limiter
This adds: set traffic-policy limiter TL default bandwidth 1mbit
Diffstat (limited to 'templates')
-rw-r--r--templates/traffic-policy/limiter/node.tag/default/bandwidth/node.def8
-rw-r--r--templates/traffic-policy/limiter/node.tag/default/burst/node.def7
-rw-r--r--templates/traffic-policy/limiter/node.tag/default/description/node.def2
-rw-r--r--templates/traffic-policy/limiter/node.tag/default/priority/node.def8
4 files changed, 25 insertions, 0 deletions
diff --git a/templates/traffic-policy/limiter/node.tag/default/bandwidth/node.def b/templates/traffic-policy/limiter/node.tag/default/bandwidth/node.def
new file mode 100644
index 0000000..13c70ee
--- /dev/null
+++ b/templates/traffic-policy/limiter/node.tag/default/bandwidth/node.def
@@ -0,0 +1,8 @@
+type: txt
+help: Set the traffic-limit used for this class [REQUIRED]
+syntax:expression: exec "/opt/vyatta/sbin/vyatta-qos-util.pl --rate $VAR(@)"
+comp_help: Allowed values:
+ <number> Bandwidth in Kbps
+ <number><suffix> Value with scaling suffix
+ bits per sec (kbit, mbit, gbit)
+ bytes per sec (kbps, mbps, gbps)
diff --git a/templates/traffic-policy/limiter/node.tag/default/burst/node.def b/templates/traffic-policy/limiter/node.tag/default/burst/node.def
new file mode 100644
index 0000000..e22453c
--- /dev/null
+++ b/templates/traffic-policy/limiter/node.tag/default/burst/node.def
@@ -0,0 +1,7 @@
+type: txt
+help: Set the burst size for this class (default: 15kb)
+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)
diff --git a/templates/traffic-policy/limiter/node.tag/default/description/node.def b/templates/traffic-policy/limiter/node.tag/default/description/node.def
new file mode 100644
index 0000000..d4241e7
--- /dev/null
+++ b/templates/traffic-policy/limiter/node.tag/default/description/node.def
@@ -0,0 +1,2 @@
+type: txt
+help: Set description for this traffic class
diff --git a/templates/traffic-policy/limiter/node.tag/default/priority/node.def b/templates/traffic-policy/limiter/node.tag/default/priority/node.def
new file mode 100644
index 0000000..a99400d
--- /dev/null
+++ b/templates/traffic-policy/limiter/node.tag/default/priority/node.def
@@ -0,0 +1,8 @@
+type: u32
+help: Set priority for rule evaluation
+default: 20
+syntax:expression: $VAR(@) >= 0 && $VAR(@) <= 20 ; \
+ "priority must be between 0 and 20"
+help: Priority value
+comp_help: Priority for traffic limiting evaluation
+ <0-20> (default 20)