Hi, With Kea 2.7.5 it is now possible to add a "client-classes" limit to the pool argument like this:
{ "pool": "172.27.140.2-172.27.140.10", "client-classes": ["k8s-node", "special-k8s-node"] }, { "pool": "172.27.140.20-172.27.140.30", "client-classes": ["not-k8s-node"]} This is nice, but I ran into an issue where when we mark these classes with "only-in-additional-list": true, they are only evaluated after a pool has been selected, thus these pools will never be chosen unless we remove the late evaluation from the class definitions (which would mean that all requests are classified, even though it is only relevant for a single subnet). My suggestion/request would be that these "only-in-additional-list" are evaluated at the level where the "evaluate-additional-classes" is defined. So if we have the following configuration: "subnet4": [{ "id": 1, "subnet": "172.27.140.0/26", "evaluate-additional-classes": [ "k8s-node", "special-k8s-node", "not-k8s-node" ], "pools": { ... } }] The classes defined in that list are evaluated when the subnet has been chosen, but before the actual pool has been chosen. I will attach a complete config file to provide more context to what I am trying to achieve, and I am looking forward to hear what you think of this. Best regards, Jonas
dhcp4.json
Description: application/json
-- 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