[Kea-users] Flex options hook library

Francis Dupont fdupont at isc.org
Wed Jun 4 08:38:27 UTC 2025


Christoph Pleger writes:
>                    "options": [
>                        {
>                            "code": 67,
>                            "add": "ifelse(option[host-
> name].exists,concat(option[host-name].text,'.boot'),'')"
>                        }
>                    ]
>
> I have tried almost exactly that, only adjusted the library location,
> and the result was that this only works when the host name is already
> part of the client request

=> not surprising as the test part of the ifelse asks for this...

> Is it possible to make (almost) the above work when host-name is
> part of the server answer?

=> yes but in fact in this case you should not need the flex-option hook
i.e. just boot-file-name option at the same time as the host-name one.

Regards

Francis Dupont <fdupont at isc.org>

PS: the main two usages of the flex-option is to translate ISC DHCP compute
option value feature (the example), and to override builtin option values
(e.g. subnet-mask). It is more for cases a standard config is not enough.


More information about the Kea-users mailing list