summaryrefslogtreecommitdiff
path: root/interface-definitions/include/firewall/common-rule.xml.i
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-04-05 20:40:45 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-04-06 15:03:40 +0200
commitc514cea0ad94a00838530cd07f87723be372ea8f (patch)
treeb8e8c206aa876395f36d34165d335f31a0c302d0 /interface-definitions/include/firewall/common-rule.xml.i
parentbe57ae38bb7c5a12e783e8be9de9142a6bd4e02b (diff)
downloadvyos-1x-c514cea0ad94a00838530cd07f87723be372ea8f.tar.gz
vyos-1x-c514cea0ad94a00838530cd07f87723be372ea8f.zip
firewall: T4345: Fix incorrect rule limit rate syntax
Diffstat (limited to 'interface-definitions/include/firewall/common-rule.xml.i')
-rw-r--r--interface-definitions/include/firewall/common-rule.xml.i6
1 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/include/firewall/common-rule.xml.i b/interface-definitions/include/firewall/common-rule.xml.i
index 353804990..cd80b7e28 100644
--- a/interface-definitions/include/firewall/common-rule.xml.i
+++ b/interface-definitions/include/firewall/common-rule.xml.i
@@ -66,11 +66,11 @@
<properties>
<help>Maximum average matching rate</help>
<valueHelp>
- <format>u32:0-4294967295</format>
- <description>Maximum average matching rate</description>
+ <format>txt</format>
+ <description>integer/unit (Example: 5/minute)</description>
</valueHelp>
<constraint>
- <validator name="numeric" argument="--range 0-4294967295"/>
+ <regex>^\d+/(second|minute|hour|day)$</regex>
</constraint>
</properties>
</leafNode>