summaryrefslogtreecommitdiff
path: root/templates/qos-policy/rate-control/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 17:23:40 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 17:23:40 -0700
commit4e6e6ff12dd1b3c402717d71f9ee1f8f68545213 (patch)
treebeb517d9c00941372a26d1086ab75a6d698f5e14 /templates/qos-policy/rate-control/node.def
parentdab4e6ebfa43ef7b60eaedb2002cc4724c123d52 (diff)
downloadvyatta-cfg-qos-4e6e6ff12dd1b3c402717d71f9ee1f8f68545213.tar.gz
vyatta-cfg-qos-4e6e6ff12dd1b3c402717d71f9ee1f8f68545213.zip
Rename rate-limiter to rate-control
Bug 4541 Limiting implies packet drop, but this qos-policy does shaping.
Diffstat (limited to 'templates/qos-policy/rate-control/node.def')
-rw-r--r--templates/qos-policy/rate-control/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/qos-policy/rate-control/node.def b/templates/qos-policy/rate-control/node.def
new file mode 100644
index 0000000..57bf98e
--- /dev/null
+++ b/templates/qos-policy/rate-control/node.def
@@ -0,0 +1,8 @@
+tag:
+type: txt
+help: Set rate limiting policy
+syntax:expression: pattern $VAR(@) "^[[:alnum:]][-_[:alnum:]]*$"
+ ; "only alpha-numeric policy name allowed"
+create: /opt/vyatta/sbin/vyatta-qos.pl --create-policy $VAR(.) $VAR(@)
+delete: /opt/vyatta/sbin/vyatta-qos.pl --delete-policy $VAR(@)
+end: /opt/vyatta/sbin/vyatta-qos.pl --apply-policy $VAR(@)