summaryrefslogtreecommitdiff
path: root/interface-definitions/include/interface
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-19 21:47:31 +0100
committerChristian Breunig <christian@breunig.cc>2023-11-19 21:47:31 +0100
commit260645d0c6ff078cc89601f3a586195902f9c18e (patch)
treec1f0e44978b0f3186d08344647088fb40ae6e1d4 /interface-definitions/include/interface
parentbed1cd01904ef89b5d31bd47de0f230214900f16 (diff)
downloadvyos-1x-260645d0c6ff078cc89601f3a586195902f9c18e.tar.gz
vyos-1x-260645d0c6ff078cc89601f3a586195902f9c18e.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
Diffstat (limited to 'interface-definitions/include/interface')
-rw-r--r--interface-definitions/include/interface/dhcp-options.xml.i12
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">