You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dhcp-server: T3936: Added support for DHCP Option 82
This commit adds support in both the CLI and the underlying code for
DHCP Option 82 to be used to filter/route DHCP address assignments.
The primary use case for this is to support enterprise switches which
can "tag" DHCP requests with physical real world informaiton such as
which switch first saw the request and which port it originated from
(known in this context as remote-id and circuit-id). Once
client-classes have been defined they can be assigned to subnets or
ranges so that only certain addresses get assigned to specific
requests.
There is also a corresponding documentation update which pairs with
this code change.
Co-Authored-By: Daniil Baturin <[email protected]>
<help>Filters on the contents of the circuit-id sub option. Assumes ASCII text unless input starts with 0x in which case it is interpreted as raw hex</help>
30
+
</properties>
31
+
</leafNode>
32
+
<leafNodename="remote-id">
33
+
<properties>
34
+
<help>Filters on the contents of the remote-id sub option. Assumes ASCII text unless input starts with 0x in which case it is interpreted as raw hex</help>
35
+
</properties>
36
+
</leafNode>
37
+
</children>
38
+
</node>
39
+
</children>
40
+
</tagNode>
12
41
#include <include/generic-disable-node.xml.i>
13
42
<nodename="dynamic-dns-update">
14
43
<properties>
@@ -239,6 +268,14 @@
239
268
#include <include/dhcp/ping-check.xml.i>
240
269
#include <include/generic-description.xml.i>
241
270
#include <include/generic-disable-node.xml.i>
271
+
<leafNodename="client-class">
272
+
<properties>
273
+
<help>DHCP client class</help>
274
+
<completionHelp>
275
+
<path>service dhcp-server client-class</path>
276
+
</completionHelp>
277
+
</properties>
278
+
</leafNode>
242
279
<nodename="dynamic-dns-update">
243
280
<properties>
244
281
<help>Dynamically update Domain Name System (RFC4702)</help>
@@ -290,6 +327,14 @@
290
327
</properties>
291
328
<children>
292
329
#include <include/dhcp/option-v4.xml.i>
330
+
<leafNodename="client-class">
331
+
<properties>
332
+
<help>DHCP client class</help>
333
+
<completionHelp>
334
+
<path>service dhcp-server client-class</path>
335
+
</completionHelp>
336
+
</properties>
337
+
</leafNode>
293
338
<leafNodename="start">
294
339
<properties>
295
340
<help>First IP address for DHCP lease range</help>
0 commit comments