summaryrefslogtreecommitdiff
path: root/interface-definitions/include/firewall/common-rule.xml.i
diff options
context:
space:
mode:
Diffstat (limited to 'interface-definitions/include/firewall/common-rule.xml.i')
-rw-r--r--interface-definitions/include/firewall/common-rule.xml.i48
1 files changed, 37 insertions, 11 deletions
diff --git a/interface-definitions/include/firewall/common-rule.xml.i b/interface-definitions/include/firewall/common-rule.xml.i
index cd80b7e28..2a5137dbf 100644
--- a/interface-definitions/include/firewall/common-rule.xml.i
+++ b/interface-definitions/include/firewall/common-rule.xml.i
@@ -70,7 +70,7 @@
<description>integer/unit (Example: 5/minute)</description>
</valueHelp>
<constraint>
- <regex>^\d+/(second|minute|hour|day)$</regex>
+ <regex>\d+/(second|minute|hour|day)</regex>
</constraint>
</properties>
</leafNode>
@@ -91,10 +91,36 @@
<description>Disable log</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
</leafNode>
+<node name="connection-status">
+ <properties>
+ <help>Connection status</help>
+ </properties>
+ <children>
+ <leafNode name="nat">
+ <properties>
+ <help>NAT connection status</help>
+ <completionHelp>
+ <list>destination source</list>
+ </completionHelp>
+ <valueHelp>
+ <format>destination</format>
+ <description>Match connections that are subject to destination NAT</description>
+ </valueHelp>
+ <valueHelp>
+ <format>source</format>
+ <description>Match connections that are subject to source NAT</description>
+ </valueHelp>
+ <constraint>
+ <regex>^(destination|source)$</regex>
+ </constraint>
+ </properties>
+ </leafNode>
+ </children>
+</node>
<leafNode name="protocol">
<properties>
<help>Protocol to match (protocol name, number, or "all")</help>
@@ -163,7 +189,7 @@
<description>Source addresses seen COUNT times in the last hour</description>
</valueHelp>
<constraint>
- <regex>^(second|minute|hour)$</regex>
+ <regex>(second|minute|hour)</regex>
</constraint>
</properties>
</leafNode>
@@ -215,7 +241,7 @@
<description>Disable</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
</leafNode>
@@ -234,7 +260,7 @@
<description>Disable</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
</leafNode>
@@ -253,7 +279,7 @@
<description>Disable</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
</leafNode>
@@ -272,7 +298,7 @@
<description>Disable</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
</leafNode>
@@ -292,7 +318,7 @@
<description>Enter date using following notation - YYYY-MM-DD</description>
</valueHelp>
<constraint>
- <regex>^(\d{4}\-\d{2}\-\d{2})$</regex>
+ <regex>(\d{4}\-\d{2}\-\d{2})</regex>
</constraint>
</properties>
</leafNode>
@@ -304,7 +330,7 @@
<description>Enter time using using 24 hour notation - hh:mm:ss</description>
</valueHelp>
<constraint>
- <regex>^([0-2][0-9](\:[0-5][0-9]){1,2})$</regex>
+ <regex>([0-2][0-9](\:[0-5][0-9]){1,2})</regex>
</constraint>
</properties>
</leafNode>
@@ -316,7 +342,7 @@
<description>Enter date using following notation - YYYY-MM-DD</description>
</valueHelp>
<constraint>
- <regex>^(\d{4}\-\d{2}\-\d{2})$</regex>
+ <regex>(\d{4}\-\d{2}\-\d{2})</regex>
</constraint>
</properties>
</leafNode>
@@ -328,7 +354,7 @@
<description>Enter time using using 24 hour notation - hh:mm:ss</description>
</valueHelp>
<constraint>
- <regex>^([0-2][0-9](\:[0-5][0-9]){1,2})$</regex>
+ <regex>([0-2][0-9](\:[0-5][0-9]){1,2})</regex>
</constraint>
</properties>
</leafNode>