Neil,
This looks fine. However, I think you have something extra in here
that isn't needed. I think you can do it like this (i could be wrong
as i have not tested this):
"option-def": [
{
"name": "disable-netbios",
"code": 1,
"space": "vendor-encapsulated-options-space",
"type": "uint32"
}
],
"client-classes": [
{
"name": "MSFT_5_0",
"test": "option[60].hex == 'MSFT 5.0'",
"option-data": [
{
"name": "disable-netbios",
"code": 1,
"space": "vendor-encapsulated-options-space",
"data": "0002"
},
{
"name": "vendor-encapsulated-options"
}
]
}
]
I don't think you need the extra "option-data" specified outside of
the class. You DO need it in the class where you are specifying the
content of the option. Like I said, I could be wrong.
Thanks,
-Darren
On Fri, Mar 24, 2023 at 2:33 AM Neil Romig
wrote:
>
> Hi,
>
> As a new Kea user I have struggled to get to grips with DHCP option 43 and
> its usage! I'm looking for confirmation that I've done this in the best (or
> most efficient) way, so any comments would be
> gratefully received, and perhaps in posting this it will help someone else
> looking for the "recipe". The config I've added to kea-dhcp4.conf is:
>
> "option-def": [
> {
> "name": "disable-netbios",
> "code": 1,
> "space": "vendor-encapsulated-options-space",
> "type": "uint32"
> }
> ],
> "client-classes": [
> {
> "name": "MSFT_5_0",
> "test": "option[60].hex == 'MSFT 5.0'",
> "option-data": [
> {
> "name": "disable-netbios",
> "code": 1,
> "space": "vendor-encapsulated-options-space",
> "data": "0002"
> },
> {
> "name": "vendor-encapsulated-options"
> }
> ]
> }
> ],
> "option-data": [
> {
> "code": 43,
> "name": "vendor-encapsulated-options"
> },
> ],
>
> It looks to be working, and the log file shows the option sent:
>
> type=043, len=006:,
> options:
> type=001, len=004: 2 (uint32)
>
> Regards,
>
> Neil.
> --
> ISC funds the development of this software with paid support subscriptions.
> Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
--
ISC funds the development of this software with paid support subscriptions.
Contact us at https://www.isc.org/contact/ for more information.
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
Kea-users mailing list
Kea-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users