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

Reply via email to