[Kea-users] host-name option12

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Kea-users] host-name option12

sven.roehrig

Hi,

 

is it possible to let kea create the hostname (option12) based on hardware address? In documentation I can not find substring, concat function except for client_class matching. I need to convert isc-dhcp host-name to kea.

 

host-name = concat ("lab-",(concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 1, 1))),2), suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 2, 1))),2), suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 3, 1))),2), suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 4, 1))),2), suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 5, 1))),2),  suffix (concat ("0", binary-to-ascii (16, 8, "", substring(hardware, 6, 1))),2)))

 

I tried

 

{

"name": "host-name",

"data": concat('lab-',substring(pkt4.mac,0,16))

}

 

without success.

 

Thank you in advance

Sven


_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] host-name option12

Francis Dupont
To set an option-data using an expression is not supported (I should say
not yet even I don't know when it will be implemented: only it won't be
in 1.5). To do this you need to write a hook code...

Regards

Francis Dupont <[hidden email]>
_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users
Reply | Threaded
Open this post in threaded view
|

Re: [Kea-users] host-name option12

sven.roehrig
Thats bad ☹ we would like to use kea as our isc-dhcp replacement for DOCSIS eMTA´s. The telephone part (MTA) is identified based on the FQDN. Is it possible to use expressions in dhcp-ddns?

Regards,

Sven
-----Ursprüngliche Nachricht-----
Von: Francis Dupont <[hidden email]>
Gesendet: Montag, 12. November 2018 14:29
An: [hidden email]
Cc: [hidden email]
Betreff: Re: [Kea-users] host-name option12

To set an option-data using an expression is not supported (I should say not yet even I don't know when it will be implemented: only it won't be in 1.5). To do this you need to write a hook code...

Regards

Francis Dupont <[hidden email]>

_______________________________________________
Kea-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/kea-users