diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-20 15:53:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-20 15:53:45 +0100 |
commit | 391bd40f863b490241c6101e6333ba1327f32586 (patch) | |
tree | c8779bec9ea2cc50af26ef7ac2e66d964e30577e /interface-definitions | |
parent | e92667504e0c503b7c0d125d89d8795d6b6d5876 (diff) | |
parent | 260645d0c6ff078cc89601f3a586195902f9c18e (diff) | |
download | vyos-1x-391bd40f863b490241c6101e6333ba1327f32586.tar.gz vyos-1x-391bd40f863b490241c6101e6333ba1327f32586.zip |
Merge pull request #2506 from c-po/t5760-dhcp-user-class
dhcp-client: T5760: add CLI option to pass user-class parameter
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/include/constraint/dhcp-client-string-option.xml.i | 4 | ||||
-rw-r--r-- | interface-definitions/include/interface/dhcp-options.xml.i | 26 |
2 files changed, 30 insertions, 0 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 new file mode 100644 index 000000000..76e0e5466 --- /dev/null +++ b/interface-definitions/include/constraint/dhcp-client-string-option.xml.i @@ -0,0 +1,4 @@ +<!-- include start from include/constraint/dhcp-client-string-option.xml.i --> +<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 --> diff --git a/interface-definitions/include/interface/dhcp-options.xml.i b/interface-definitions/include/interface/dhcp-options.xml.i index 8027769ff..733512a98 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,25 @@ <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> + <leafNode name="user-class"> + <properties> + <help>Identify to the DHCP server, user configurable option</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> |