summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2024-02-13 16:10:48 +0000
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-02-13 16:36:15 +0000
commit8b72851f0fdc7f98f0fdb4e6a312f5752a798d67 (patch)
treea9fea94545cf13dbe52d39ddcbd051a3e439b1b9
parent70b08b1f6117ac7c3870f5081f110b726e5c98be (diff)
downloadvyos-1x-8b72851f0fdc7f98f0fdb4e6a312f5752a798d67.tar.gz
vyos-1x-8b72851f0fdc7f98f0fdb4e6a312f5752a798d67.zip
T5064: Firewall fix RegEx for for domain-group
Improve RegEx for firewall domain-groups. This domain group looks good, but the current RegEx validation fils: ``` set firewall group domain-group a_aa ``` (cherry picked from commit b67049edab41e8714aec087b81d589fdb03a350b)
-rw-r--r--interface-definitions/firewall.xml.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in
index 662ba24ab..51c6f0e21 100644
--- a/interface-definitions/firewall.xml.in
+++ b/interface-definitions/firewall.xml.in
@@ -94,7 +94,7 @@
<properties>
<help>Firewall domain-group</help>
<constraint>
- <regex>[a-zA-Z_][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>