diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-07 11:01:53 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-06-07 11:01:53 +0000 |
commit | 3c5e1f7482507a6792e3e92498fb5f3cd8e9146d (patch) | |
tree | 15e8ec490ba93b3879be9a8b5c8c1355bc55c8f1 /interface-definitions/firewall.xml.in | |
parent | 654c403cebe3cdbfa7a36348c75191b47f882ac9 (diff) | |
download | vyos-1x-3c5e1f7482507a6792e3e92498fb5f3cd8e9146d.tar.gz vyos-1x-3c5e1f7482507a6792e3e92498fb5f3cd8e9146d.zip |
firewall: T970: domain-group should not starts with numeric
Edit regex to check firewall-group
Diffstat (limited to 'interface-definitions/firewall.xml.in')
-rw-r--r-- | interface-definitions/firewall.xml.in | 3 |
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"> |