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 <fdup...@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. -- 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