summaryrefslogtreecommitdiff
path: root/interface-definitions/include/constraint
diff options
context:
space:
mode:
authorLucas <pinheirolucas@pm.me>2024-03-10 19:02:49 +0100
committerChristian Breunig <christian@breunig.cc>2024-03-10 20:34:58 +0100
commitbbee74c95e2b7565fed053d6e57134dfaf818c02 (patch)
tree2620190afcff390eea4f8f890e961dfd32271da7 /interface-definitions/include/constraint
parentc29023becfe26e19284d9520820f5c00eefd6527 (diff)
downloadvyos-1x-bbee74c95e2b7565fed053d6e57134dfaf818c02.tar.gz
vyos-1x-bbee74c95e2b7565fed053d6e57134dfaf818c02.zip
dhcp-client: T6093: extend regex for client class-id's with DOT
The regex used is not working if the string contains dots. Originally authored by: Lucas <pinheirolucas@pm.me> (cherry picked from commit c8670ae7941a8bac31e2174d4c6426b47272bfcc)
Diffstat (limited to 'interface-definitions/include/constraint')
-rw-r--r--interface-definitions/include/constraint/dhcp-client-string-option.xml.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/interface-definitions/include/constraint/dhcp-client-string-option.xml.i b/interface-definitions/include/constraint/dhcp-client-string-option.xml.i
index 88257a9bb..0e3fb8a96 100644
--- a/interface-definitions/include/constraint/dhcp-client-string-option.xml.i
+++ b/interface-definitions/include/constraint/dhcp-client-string-option.xml.i
@@ -1,4 +1,4 @@
<!-- include start from constraint/dhcp-client-string-option.xml.i -->
-<regex>[-_a-zA-Z0-9\s]+</regex>
+<regex>[-_a-zA-Z0-9.\s]+</regex>
<regex>([a-fA-F0-9][a-fA-F0-9]:){2,}[a-fA-F0-9][a-fA-F0-9]</regex>
<!-- include end -->