[Kea-users] Option Class-Tagging Configuration
Isaac Brummel
ibrummel at xes-inc.com
Tue Jan 14 19:20:28 UTC 2025
Hello,
I'm trying to use the new "option class-tagging" feature from 2.7.4 to dynamically set boot-file-name to a different value for every subnet. I'm running into an issue where if I have two entries in the "option-data" one for legacy ipxe and one for EFI ipxe none get set, see the below config for an example. If I only set one such as only having the "ipxe_legacy" client class then it correctly sends the boot-file-name. Is there something I'm missing, or a better way to handle this?
"client-classes": [
{
"name": "ipxe_legacy",
"test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00000'"
},
{
"name": "ipxe_efi",
"test": "substring(option[60].hex,0,20) == 'PXEClient:Arch:00007'"
}
],
"subnet4": [
{
"id": 1,
"subnet": "10.10.10.0/24",
"calculate-tee-times": true,
"valid-lifetime": 60,
"ddns-qualifying-suffix": "kea-dev.com",
"client-classes": [],
"option-data": [],
"pools": [
{
"pool": "10.10.10.100 - 10.10.10.150",
"option-data": [
{
"client-classes": [
"ipxe_legacy"
],
"name": "boot-file-name",
"data": "ipxe/netboot.xyz.kpxe"
},
{
"client-classes": [
"ipxe_efi"
],
"name": "boot-file-name",
"data": "ipxe/netboot.xyz.efi"
},
{
"name": "routers",
"data": "10.10.10.1"
},
{
"name": "domain-name-servers",
"data": "10.10.10.1, 10.10.10.2"
}
]
}
]
}
]
Thanks,
Isaac Brummel
System Administrator
Extreme Engineering Solutions
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20250114/5cc91f64/attachment-0001.htm>
More information about the Kea-users
mailing list