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


--
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
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to