diff options
author | Christian Breunig <christian@breunig.cc> | 2024-01-03 17:20:13 +0100 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-01-03 17:22:59 +0100 |
commit | 82b4b2db8fda51df172210f470e5825b91e81de4 (patch) | |
tree | c990896cebda663490052035d2fe379e6f02fb29 /interface-definitions/service_dhcp-server.xml.in | |
parent | c08fea7a5d98e1626788280ac51f7131f3f29308 (diff) | |
download | vyos-1x-82b4b2db8fda51df172210f470e5825b91e81de4.tar.gz vyos-1x-82b4b2db8fda51df172210f470e5825b91e81de4.zip |
xml: T5738: add constraint building block with alphanumeric, hypen, underscore and dot
Diffstat (limited to 'interface-definitions/service_dhcp-server.xml.in')
-rw-r--r-- | interface-definitions/service_dhcp-server.xml.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/service_dhcp-server.xml.in b/interface-definitions/service_dhcp-server.xml.in index e35d845f1..8e13f9372 100644 --- a/interface-definitions/service_dhcp-server.xml.in +++ b/interface-definitions/service_dhcp-server.xml.in @@ -38,7 +38,7 @@ <properties> <help>Peer name used to identify connection</help> <constraint> - <regex>[-_a-zA-Z0-9.]+</regex> + #include <include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i> </constraint> <constraintErrorMessage>Invalid failover peer name. May only contain letters, numbers and .-_</constraintErrorMessage> </properties> @@ -78,7 +78,7 @@ <properties> <help>Name of DHCP shared network</help> <constraint> - <regex>[-_a-zA-Z0-9.]+</regex> + #include <include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i> </constraint> <constraintErrorMessage>Invalid shared network name. May only contain letters, numbers and .-_</constraintErrorMessage> </properties> @@ -251,7 +251,7 @@ <properties> <help>DHCP lease range</help> <constraint> - <regex>[-_a-zA-Z0-9.]+</regex> + #include <include/constraint/alpha-numeric-hyphen-underscore-dot.xml.i> </constraint> <constraintErrorMessage>Invalid range name, may only be alphanumeric, dot and hyphen</constraintErrorMessage> </properties> |