[Kea-users] host-name option12

sven.roehrig at web.de sven.roehrig at web.de
Mon Nov 12 13:02:44 UTC 2018


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20181112/c6a7d6dc/attachment.htm>


More information about the Kea-users mailing list