diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-19 21:47:31 +0100 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-11-20 14:55:03 +0000 |
commit | 30bbf2278f2b30d4cb67331292c27d09f9a81bf0 (patch) | |
tree | 040497c258d79dfd0828874eaaf21dda8dbfbd07 /interface-definitions/include/interface | |
parent | f9b1323a1464af2da539bf279bec77fdea771b0c (diff) | |
download | vyos-1x-30bbf2278f2b30d4cb67331292c27d09f9a81bf0.tar.gz vyos-1x-30bbf2278f2b30d4cb67331292c27d09f9a81bf0.zip |
dhcp-client: T5760: add CLI option to pass user-class parameter
Example:
set interfaces ethernet eth0 dhcp-options user-class VyOS
or
set interfaces ethernet eth0 dhcp-options user-class 56:79:4f:53
(cherry picked from commit 260645d0c6ff078cc89601f3a586195902f9c18e)
Diffstat (limited to 'interface-definitions/include/interface')
-rw-r--r-- | interface-definitions/include/interface/dhcp-options.xml.i | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/interface-definitions/include/interface/dhcp-options.xml.i b/interface-definitions/include/interface/dhcp-options.xml.i index fff83fd5c..733512a98 100644 --- a/interface-definitions/include/interface/dhcp-options.xml.i +++ b/interface-definitions/include/interface/dhcp-options.xml.i @@ -43,6 +43,18 @@ </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> #include <include/interface/default-route-distance.xml.i> <leafNode name="reject"> |