Hi Darren,

Yes I have read about concat but was unsure how to apply it.

I will try your example 🙂

Will let you know if that worked 🙂


regards


Ronald

________________________________
From: Kea-users <kea-users-boun...@lists.isc.org> on behalf of Darren Ankney 
<darren.ank...@gmail.com>
Sent: Friday, March 7, 2025 19:07
To: Kea user's list <kea-users@lists.isc.org>
Subject: Re: [Kea-users] need to use circuit-id in option

Hi Ronald,

I am uncertain if this can be used in the data field, but there is a
concat() in Kea:
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fkea.readthedocs.io%2Fen%2Fkea-2.6.1%2Farm%2Fclassify.html%23concat&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795020090%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=D6m6LQrkyRqy%2Fo1vVHtC8p9702UkrbJb0l5QYzECymc%3D&reserved=0<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://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795038215%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=5mTfEXjpoGUP8ABlNWRG88Ho3E7R44k9DFaLESC5f4E%3D&reserved=0<https://www.isc.org/contact/>
>  for more information.
>
> To unsubscribe visit 
> https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795050487%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=OfOiMwe0gFakbiIu2luLy1eDO2XZTdaIwHunhrfMMYE%3D&reserved=0<https://lists.isc.org/mailman/listinfo/kea-users>.
>
> Kea-users mailing list
> Kea-users@lists.isc.org
> https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795062499%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=J6qY2AfF9r414l29etxjQmNbktTK0IEYVuLShrJW%2Fv8%3D&reserved=0<https://lists.isc.org/mailman/listinfo/kea-users>
--
ISC funds the development of this software with paid support subscriptions. 
Contact us at 
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.isc.org%2Fcontact%2F&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795074102%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=SL7cUbiexBdm4k4o%2FBgSQ7n2dY7V6j6I8jnBZJb1YBw%3D&reserved=0<https://www.isc.org/contact/>
 for more information.

To unsubscribe visit 
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795085655%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=jEyPCMgbwz18uy7Mzlxm2dXk1ZfFneygSspIuKZEZXo%3D&reserved=0<https://lists.isc.org/mailman/listinfo/kea-users>.

Kea-users mailing list
Kea-users@lists.isc.org
https://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isc.org%2Fmailman%2Flistinfo%2Fkea-users&data=05%7C02%7Cronald.blaas%40ddfr.nl%7Caacb4ce9967d49dfc54408dd5da2fcc8%7C61b60fb772d74ba78225d9b5369d780a%7C0%7C0%7C638769676795097584%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=MY140dXQWXd4nj91Mmxd7o7T1gzB8yhCbJb6IxsDjoc%3D&reserved=0<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