summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-06-07 11:01:53 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-06-07 11:01:53 +0000
commit3c5e1f7482507a6792e3e92498fb5f3cd8e9146d (patch)
tree15e8ec490ba93b3879be9a8b5c8c1355bc55c8f1
parent654c403cebe3cdbfa7a36348c75191b47f882ac9 (diff)
downloadvyos-1x-3c5e1f7482507a6792e3e92498fb5f3cd8e9146d.tar.gz
vyos-1x-3c5e1f7482507a6792e3e92498fb5f3cd8e9146d.zip
firewall: T970: domain-group should not starts with numeric
Edit regex to check firewall-group
-rw-r--r--interface-definitions/firewall.xml.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in
index 95b331e71..d0218579c 100644
--- a/interface-definitions/firewall.xml.in
+++ b/interface-definitions/firewall.xml.in
@@ -104,8 +104,9 @@
<properties>
<help>Firewall domain-group</help>
<constraint>
- <regex>[a-zA-Z0-9][\w\-\.]*</regex>
+ <regex>[a-zA-Z_][a-zA-Z0-9][\w\-\.]*</regex>
</constraint>
+ <constraintErrorMessage>Name of domain-group can only contain alpha-numeric letters, hyphen, underscores and not start with numeric</constraintErrorMessage>
</properties>
<children>
<leafNode name="address">