[Kea-users] Configuring flex_options hook for a suboption

Rahul Sundaresan rahul at rsun.dev
Thu May 26 00:55:50 UTC 2022


I solved this by using Kea 2.1.5 using the subhooks option in the 
flex_options hook which was introduced in the newer versions of Kea.

On 5/24/2022 14:56, Rahul Sundaresan wrote:
> Hello,
>
> I'm using Kea in a ZTP provisioning scenario for Juniper devices. I 
> want Kea to send Option 43 suboption 1 with the value 
> "/config/{SERIAL_NUMBER}" as a DHCP response to the Juniper device.
>
>
> How do I specify that this should be a sub option for option 43?
>
> I'm using Kea 2.0.1
>
>
> I have loaded the hook library and under parameters I'm configuring 
> like so:
>
>
> options:[
>
>     {
>
>        "code": 1,
>
>         "space": "junos-ztp-options",
>
>         "add": "concat('/config/', option[61].text)"
>
>     }
>
> ]
>
> Yet The juniper device still  showsthat the config file is not 
> specified. However other options such as image upgradeURL specified as 
> suboptions work just fine!
>
> Thank you
>
>


More information about the Kea-users mailing list