summaryrefslogtreecommitdiff
path: root/interface-definitions/firewall.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-04-29 19:51:50 +0200
committerChristian Poessinger <christian@poessinger.com>2022-04-29 19:51:50 +0200
commit80ecb1b7aaab47edeb355c3b74a763e940d88179 (patch)
treecb0951a838ccfafe7a154cf566461ece0280f0a9 /interface-definitions/firewall.xml.in
parent52155b9086fa18083efb601bcc9ba8807f147686 (diff)
downloadvyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.tar.gz
vyos-1x-80ecb1b7aaab47edeb355c3b74a763e940d88179.zip
xml: T4047: use full string match in the regex validator
Diffstat (limited to 'interface-definitions/firewall.xml.in')
-rw-r--r--interface-definitions/firewall.xml.in40
1 files changed, 20 insertions, 20 deletions
diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in
index f2aca4b3a..ff8d92a24 100644
--- a/interface-definitions/firewall.xml.in
+++ b/interface-definitions/firewall.xml.in
@@ -21,7 +21,7 @@
<description>Disable processing of all IPv4 ICMP echo requests</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>enable</defaultValue>
@@ -41,7 +41,7 @@
<description>Disable processing of broadcast IPv4 ICMP echo/timestamp requests</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -61,7 +61,7 @@
<description>Disable sending SNMP trap on firewall configuration change</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -75,7 +75,7 @@
<properties>
<help>Firewall address-group</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -104,7 +104,7 @@
<properties>
<help>Firewall ipv6-address-group</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -133,7 +133,7 @@
<properties>
<help>Firewall ipv6-network-group</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -157,7 +157,7 @@
<properties>
<help>Firewall mac-group</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -181,7 +181,7 @@
<properties>
<help>Firewall network-group</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -205,7 +205,7 @@
<properties>
<help>Firewall port-group</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -250,7 +250,7 @@
<description>Disable processing of IPv4 packets with source route option</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -259,7 +259,7 @@
<properties>
<help>IPv6 firewall rule-set name</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -396,7 +396,7 @@
<description>Disable processing of received ICMPv6 redirect messages</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -416,7 +416,7 @@
<description>Disable processing of IPv6 packets with routing header</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -436,7 +436,7 @@
<description>Disable logging of Ipv4 packets with invalid addresses</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>enable</defaultValue>
@@ -445,7 +445,7 @@
<properties>
<help>IPv4 firewall rule-set name</help>
<constraint>
- <regex>^[a-zA-Z0-9][\w\-\.]*$</regex>
+ <regex>[a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
</properties>
<children>
@@ -539,7 +539,7 @@
<description>Disable processing of received IPv4 ICMP redirect messages</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -559,7 +559,7 @@
<description>Disable sending IPv4 ICMP redirect messages</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>enable</defaultValue>
@@ -583,7 +583,7 @@
<description>No source validation</description>
</valueHelp>
<constraint>
- <regex>^(strict|loose|disable)$</regex>
+ <regex>(strict|loose|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>
@@ -637,7 +637,7 @@
<description>Disable use of TCP SYN cookies with IPv4</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>enable</defaultValue>
@@ -657,7 +657,7 @@
<description>Disable RFC1337 TIME-WAIT hazards protection</description>
</valueHelp>
<constraint>
- <regex>^(enable|disable)$</regex>
+ <regex>(enable|disable)</regex>
</constraint>
</properties>
<defaultValue>disable</defaultValue>