[Kea-users] Flex options hook library

Peter Davies peterd at isc.org
Wed Jun 4 14:27:40 UTC 2025


Hi Christoph,
  If you are handling PXE clients, using the vendor client class would probably be 
best.
But if you do want to change an option value based on the content of a request, you 
could test the vendor class contents.
ie.: 
      "hooks-libraries": [ {
               "library": "/usr/local/lib/libdhcp_flex_option.so",
               "parameters": {
                   "options": [
                       {
                           "code": 67,
                           "supersede": "ifelse(substring(option[60].hex,0,20) == 'PXEClient:Arch:00007', concat('pxe-x00007','.boot'),'')"
                       }
                   ]
               }
           }
       ],

/Peter


More information about the Kea-users mailing list