From c455a1f71674300b8a74863ddfe6e551fe8fd252 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Tue, 9 Apr 2024 11:02:58 +0000 Subject: T6214: T6213: change constraint in order to not allow string starting with dot character; use such constraint in firewall group definitions. --- interface-definitions/firewall.xml.in | 26 ++++++++++++++-------- .../alpha-numeric-hyphen-underscore-dot.xml.i | 2 +- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/interface-definitions/firewall.xml.in b/interface-definitions/firewall.xml.in index 3219471b1..24e63c5ec 100644 --- a/interface-definitions/firewall.xml.in +++ b/interface-definitions/firewall.xml.in @@ -56,8 +56,9 @@ Firewall address-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot @@ -96,7 +97,7 @@ [a-zA-Z_][a-zA-Z0-9]?[\w\-\.]* - Name of domain-group can only contain alpha-numeric letters, hyphen, underscores and not start with numeric + Name of domain-group can only contain alphanumeric letters, hyphen, underscores and not start with numeric @@ -124,8 +125,9 @@ Firewall dynamic address group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot #include @@ -148,8 +150,9 @@ Firewall interface-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot @@ -177,8 +180,9 @@ Firewall ipv6-address-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot @@ -215,8 +219,9 @@ Firewall ipv6-network-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot #include @@ -248,8 +253,9 @@ Firewall mac-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot #include @@ -281,8 +287,9 @@ Firewall network-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot #include @@ -314,8 +321,9 @@ Firewall port-group - [a-zA-Z0-9][\w\-\.]* + #include + Name of firewall group can only contain alphanumeric letters, hyphen, underscores and dot #include diff --git a/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i b/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i index 7aeb85260..34c94e53c 100644 --- a/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i +++ b/interface-definitions/include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i @@ -1,3 +1,3 @@ -[-_a-zA-Z0-9.]+ +[-_a-zA-Z0-9][\w\-\.\+]* -- cgit v1.2.3