diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-06-02 12:13:07 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-06-02 12:22:29 -0700 |
commit | d6644cfe4ab12b700f025641b3628fab435fd4d2 (patch) | |
tree | c39ed921f55db6ad6a0c90dd54476f6272bf631d /templates/firewall/modify | |
parent | d5e2180f224c05f3797dfe347c87c0d4054d74ff (diff) | |
download | vyatta-cfg-firewall-d6644cfe4ab12b700f025641b3628fab435fd4d2.tar.gz vyatta-cfg-firewall-d6644cfe4ab12b700f025641b3628fab435fd4d2.zip |
* add default value of 1 for 'limit burst' in its node.def
* add comp_help for 'limit rate'
* make sure 'limit rate' is not less than 1/time unit
Diffstat (limited to 'templates/firewall/modify')
-rw-r--r-- | templates/firewall/modify/node.tag/rule/node.tag/limit/burst/node.def | 1 | ||||
-rw-r--r-- | templates/firewall/modify/node.tag/rule/node.tag/limit/rate/node.def | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/templates/firewall/modify/node.tag/rule/node.tag/limit/burst/node.def b/templates/firewall/modify/node.tag/rule/node.tag/limit/burst/node.def index 2739faa..307e602 100644 --- a/templates/firewall/modify/node.tag/rule/node.tag/limit/burst/node.def +++ b/templates/firewall/modify/node.tag/rule/node.tag/limit/burst/node.def @@ -1,3 +1,4 @@ type: u32 +default: 1 help: Set maximum number of packets to allow in excess of rate syntax:expression: ($VAR(@) >0) ; "Burst should be a value greater then zero" diff --git a/templates/firewall/modify/node.tag/rule/node.tag/limit/rate/node.def b/templates/firewall/modify/node.tag/rule/node.tag/limit/rate/node.def index de22a6f..7a3b7d0 100644 --- a/templates/firewall/modify/node.tag/rule/node.tag/limit/rate/node.def +++ b/templates/firewall/modify/node.tag/rule/node.tag/limit/rate/node.def @@ -5,3 +5,6 @@ syntax:expression: pattern $VAR(@) "^[[:digit:]]+/(second|minute|hour|day)$" ; \ a forward slash '/' and either of these time units - second, minute, hour or day eg. 1/second implies rule to be matched at an average of once per second" +comp_help:Format for rate : integer/time unit +any one of second, minute, hour or day may be used to specify time unit +eg. 1/second implies rule to be matched at an average of once per second |