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
-- 
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

Reply via email to