Hi Ronald,

I am uncertain if this can be used in the data field, but there is a
concat() in Kea:
https://kea.readthedocs.io/en/kea-2.6.1/arm/classify.html#concat

You can use a '+' sign as a shortcut so you might be able to do something like:

"data": "'s=xx.xx.xx.xxc='+option[82].option[1].hex"

but I've never tried to use these functions or packet contents in the
"data" field.

Thank you,
Darren Ankney

On Wed, Mar 5, 2025 at 4:04 AM DDFR | Ronald Blaas <ronald.bl...@ddfr.nl> wrote:
>
> Hi all,
>
> We recently switch a subnet from isc-dhcp to isc-kea
>
> There is one thing where I am unable to succeed.
>
> We need to sent some options to a device but ISC-DHCP is using concat and I 
> am unsure how to apply this is kea
>
> This is the relevant part:
>
> If substring (option host-name, 0, 6) = "geneos" {
>         option genexis.gaps = concat("s=xx.xx.xx.xx;c=", option 
> agent.circuit-id);
>
>
> What I have so far is:
>
>
>       {
>
>                     "name": "gaps",
>                     "space": "vendor-25167",
>                     "data": "s=xx.xx.xx.xx",
>                     "always-send": true
>               }
>
>
> I could use some help getting the circuit id in the data field.
>
>
> Kind regards
>
>
> Ronald
>
> --
> 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
-- 
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