<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
Hi Darren,
<div><br>
</div>
<div>I am using the latest dev Kea 2.7.7 version with RHEL9, the package for dhcp6 is isc-kea-dhcp6-2.7.7-isc20250326114722.el9.x86_64.rpm. Here’re my definition on the “device” class. I only have this client class defined, don’t have the “device_class2” client
class in definition. And I am using client-classes so that part is expected. </div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>{</div>
<div> "Dhcp6": {</div>
<div> "allocator": "iterative",</div>
<div> "calculate-tee-times": true,</div>
<div> "<b>client-classes</b>": [</div>
<div> {</div>
<div> "name": “<b>device</b>",</div>
<div> "option-data": [</div>
<div> {</div>
<div> "always-send": true,</div>
<div> "code": 34,</div>
<div> "csv-format": true,</div>
<div> "data": “xxxxxxxx",</div>
<div> "name": "syslog-servers",</div>
<div> "never-send": false,</div>
<div> "space": "vendor-4491"</div>
<div> },</div>
<div> {</div>
<div> "always-send": true,</div>
<div> "code": 37,</div>
<div> "csv-format": true,</div>
<div> "data": “xxxxxxxxx",</div>
<div> "name": "time-servers",</div>
<div> "never-send": false,</div>
<div> "space": "vendor-4491"</div>
<div> },</div>
<div> {</div>
<div> "always-send": true,</div>
<div> "code": 38,</div>
<div> "csv-format": true,</div>
<div> "data": "0",</div>
<div> "name": "time-offset",</div>
<div> "never-send": false,</div>
<div> "space": "vendor-4491"</div>
<div> },</div>
<div> {</div>
<div> "always-send": true,</div>
<div> "code": 61,</div>
<div> "csv-format": true,</div>
<div> "data": “xxxxx",</div>
<div> "name": "ccap-cores",</div>
<div> "never-send": false,</div>
<div> "space": "vendor-4491"</div>
<div> },</div>
<div> {</div>
<div> "always-send": true,</div>
<div> "code": 17,</div>
<div> "csv-format": false,</div>
<div> "data": "",</div>
<div> "name": "vendor-opts",</div>
<div> "never-send": false,</div>
<div> "space": "vendor-4491"</div>
<div> }</div>
<div> ],</div>
<div> "test": "substring(option[17].option[2].hex,0,3) == ‘<b>device</b>'"</div>
<div> }</div>
<div> ],</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br id="lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>On Apr 19, 2025, at 6:19 AM, Darren Ankney <darren.ankney@gmail.com> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div>Hi,<br>
<br>
Please share what version of Kea you are using. Not only did the<br>
class name change, but the statement became a list (client-class vs<br>
client-classes). Suspect you might be using a dev version as that<br>
feature has not been released in stable. There could be some bug<br>
there, though I am unsure why an _class2 would be added in this case.<br>
Do you have a "device" or "device_class2" defined in client-classes<br>
(not in the subnet but an actual class definition)?<br>
<br>
Thank you,<br>
Darren Ankney<br>
<br>
On Thu, Apr 17, 2025 at 5:23 PM tachibanashita@outlook.com<br>
<tachibanashita@outlook.com> wrote:<br>
<blockquote type="cite"><br>
Greetings,<br>
<br>
I have a subnet definition in my kea-dhcp6.conf, it inherited its configuration from a client class called “device”, then I gave it some customization configuration in the option-data section. After I used the config-write command to get the config from memory,
I noticed the client class of this subbed is no longer “device” but “device_class2”, even I never defined this client class. My guess is because of the customization data in option-data section, so kea realized its configuration is different from the original
client class “device”, and it gives a new name.<br>
<br>
Is this behavior expected? I think this could bring some troubles when we try to do automatization. Now after we use the subnet hook, we have to use the config-write command Darren mentioned to save the config changes from memory to harddisk. And now in the
new config file, we will have those “device_class2” client class which previously didn’t exist.<br>
<br>
<br>
Original config in kea-dhcp6.conf:<br>
<br>
{<br>
"id": 2,<br>
"subnet": "2100:100:10:10::1/64",<br>
"option-data": [<br>
{<br>
"space": "vendor-4491",<br>
"name": "cores",<br>
"code": 61,<br>
"data": "2100:100:10:10::10-2100:100:10:10::100",<br>
"always-send": true<br>
}<br>
],<br>
"pools": [<br>
{<br>
"pool": "2100:100:10:10::10-2100:100:10:10::100"<br>
}<br>
],<br>
"relay": {<br>
"ip-addresses": [ "2100:100:10:10::1" ]<br>
},<br>
"interface": "ens2",<br>
"client-class": “device",<br>
"allocator": "iterative"<br>
},<br>
<br>
<br>
After using config-write:<br>
{<br>
"allocator": "iterative",<br>
"calculate-tee-times": true,<br>
"client-classes": [ “device_class2" ],<br>
"id": 2,<br>
"interface": "ens2",<br>
"max-preferred-lifetime": 907200,<br>
"max-valid-lifetime": 1209600,<br>
"min-preferred-lifetime": 907200,<br>
"min-valid-lifetime": 1209600,<br>
"option-data": [<br>
{<br>
"always-send": true,<br>
"code": 61,<br>
"csv-format": true,<br>
"data": “2100:100:0:30:0:0:0:22",<br>
"name": "cores",<br>
"never-send": false,<br>
"space": "vendor-4491"<br>
}<br>
],<br>
"pd-allocator": "iterative",<br>
"pd-pools": [ ],<br>
"pools": [<br>
{<br>
"option-data": [ ],<br>
"pool": “2100:100:10:10::10-2100:100:10:10::100"<br>
}<br>
],<br>
"preferred-lifetime": 907200,<br>
"rapid-commit": false,<br>
"rebind-timer": 1058400,<br>
"relay": {<br>
"ip-addresses": [ "2100:100:10:10::1" ]<br>
},<br>
"renew-timer": 604800,<br>
"reservations": [ ],<br>
"store-extended-info": false,<br>
"subnet": "2100:100:10:10::1/64",<br>
"t1-percent": 0.5,<br>
"t2-percent": 0.8,<br>
"valid-lifetime": 1209600<br>
},<br>
--<br>
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br>
<br>
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
https://lists.isc.org/mailman/listinfo/kea-users<br>
</blockquote>
-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br>
<br>
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br>
<br>
Kea-users mailing list<br>
Kea-users@lists.isc.org<br>
https://lists.isc.org/mailman/listinfo/kea-users<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</body>
</html>