Hello,

In https://kea.readthedocs.io/en/latest/arm/hooks.html , the following example 
is given for libdhcp_flex_option.so:


{
   "Dhcp4": {
       "hooks-libraries": [
           {
               "library": "/usr/local/lib/libdhcp_flex_option.so",
               "parameters": {
                   "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 (does this even make sense, as option 67 is
the boot-file-name, probably used for PXE boot and BIOS/UEFI PXE does
not know the host name?). Is it possible to make (almost) the above 
work when host-name is part of the server answer?

Regards
  Christoph  

Attachment: signature.asc
Description: This is a digitally signed message part

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