pmcf 6.53.7 → 6.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -132,7 +132,15 @@ export const networkAttributes = {
|
|
|
132
132
|
class: {
|
|
133
133
|
...string_attribute_writable,
|
|
134
134
|
name: "class",
|
|
135
|
-
values: new Set([
|
|
135
|
+
values: new Set([
|
|
136
|
+
"10GBASE-T",
|
|
137
|
+
"2500BASE-T",
|
|
138
|
+
"1000BASE-T",
|
|
139
|
+
"100BASE-T",
|
|
140
|
+
"10BASE-T",
|
|
141
|
+
"802.11AX",
|
|
142
|
+
"802.11BE" // WiFi 7
|
|
143
|
+
])
|
|
136
144
|
},
|
|
137
145
|
kind: {
|
|
138
146
|
...string_attribute_writable,
|
|
@@ -53,6 +53,7 @@ export class NetworkInterface extends SkeletonNetworkInterface {
|
|
|
53
53
|
private: true
|
|
54
54
|
},
|
|
55
55
|
hwaddr: { ...string_attribute_writable, name: "hwaddr" },
|
|
56
|
+
dhcpClientId: { ...string_attribute_writable, name: "dhcpClientId" },
|
|
56
57
|
destination: { ...string_attribute_writable, name: "destination" }
|
|
57
58
|
|
|
58
59
|
/*
|
|
@@ -149,6 +150,14 @@ export class NetworkInterface extends SkeletonNetworkInterface {
|
|
|
149
150
|
);
|
|
150
151
|
}
|
|
151
152
|
|
|
153
|
+
set dhcpClientId(value) {
|
|
154
|
+
this._dhcpClientId = value;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
get dhcpClientId() {
|
|
158
|
+
return this.attribute("_dhcpClientId");
|
|
159
|
+
}
|
|
160
|
+
|
|
152
161
|
set hwaddr(value) {
|
|
153
162
|
this._hwaddr = value;
|
|
154
163
|
}
|
package/src/services/kea.mjs
CHANGED
|
@@ -408,8 +408,17 @@ export class kea extends CoreService {
|
|
|
408
408
|
family == 6 ? { "ip-addresses": [addr] } : { "ip-address": addr };
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
let ids = { "hw-address": k };
|
|
412
|
+
|
|
413
|
+
if (family == 4) {
|
|
414
|
+
const dhcpClientId = networkInterface.dhcpClientId;
|
|
415
|
+
if (dhcpClientId) {
|
|
416
|
+
ids = { "client-id": dhcpClientId };
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
|
|
411
420
|
return {
|
|
412
|
-
|
|
421
|
+
...ids,
|
|
413
422
|
...ip,
|
|
414
423
|
hostname: networkInterface.domainName,
|
|
415
424
|
"client-classes": ["SKIP_DDNS"]
|