diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-19 21:43:15 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-20 14:55:03 +0000 |
commit | f9b1323a1464af2da539bf279bec77fdea771b0c (patch) | |
tree | 253fc81209dc4855ba27e5f2d9a77d161492976e /interface-definitions/include/interface/dhcp-options.xml.i | |
parent | 0650054e646d5119040635fbd19ae15785c16aa8 (diff) | |
download | vyos-1x-f9b1323a1464af2da539bf279bec77fdea771b0c.tar.gz vyos-1x-f9b1323a1464af2da539bf279bec77fdea771b0c.zip |
dhcp-client: T5760: add constraints for dhclient string options
The string data type specifies either an NVT ASCII string enclosed in double
quotes, or a series of octets specified in hexadecimal, separated by colons.
For example:
set interfaces ethernet eth0 dhcp-options client-id CLIENT-FOO
or
set interfaces ethernet eth0 dhcp-options client-id 43:4c:49:45:54:2d:46:4f:4f
As of now there was no input validation performed.
(cherry picked from commit bed1cd01904ef89b5d31bd47de0f230214900f16)
Diffstat (limited to 'interface-definitions/include/interface/dhcp-options.xml.i')
-rw-r--r-- | interface-definitions/include/interface/dhcp-options.xml.i | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/dhcp-options.xml.i b/interface-definitions/include/interface/dhcp-options.xml.i index 8027769ff..fff83fd5c 100644 --- a/interface-definitions/include/interface/dhcp-options.xml.i +++ b/interface-definitions/include/interface/dhcp-options.xml.i @@ -7,6 +7,13 @@ <leafNode name="client-id"> <properties> <help>Identifier used by client to identify itself to the DHCP server</help> + <valueHelp> + <format>txt</format> + <description>DHCP option string</description> + </valueHelp> + <constraint> + #include <include/constraint/dhcp-client-string-option.xml.i> + </constraint> </properties> </leafNode> <leafNode name="host-name"> @@ -27,6 +34,13 @@ <leafNode name="vendor-class-id"> <properties> <help>Identify the vendor client type to the DHCP server</help> + <valueHelp> + <format>txt</format> + <description>DHCP option string</description> + </valueHelp> + <constraint> + #include <include/constraint/dhcp-client-string-option.xml.i> + </constraint> </properties> </leafNode> #include <include/interface/no-default-route.xml.i> |