<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi Kristian,</p>
<p>You can write and use a custom hook to personalize options for
each client (mac-address). Probably, there another way too.<br>
</p>
<p>Juan<br>
</p>
<div class="moz-signature">
<table width="351" cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="text-align:left;padding-bottom:10px"><br>
</td>
</tr>
<tr>
<td style="border-top:solid #000000 4px" height="14"><br>
</td>
</tr>
<tr>
<td style="vertical-align: top;
text-align:left;color:#000000;font-size:12px;font-family:Futura,
'Century Gothic', CenturyGothic, sans-serif;;
text-align:left"><br>
<br>
<br>
<br>
<table cellpadding="0" border="0">
<tbody>
<tr>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div class="moz-cite-prefix">El 23/1/19 a las 11:26, Kristian
Pedersen escribió:<br>
</div>
<blockquote type="cite"
cite="mid:15468de5-247a-ff9b-acc6-e57dbd045b4b@asom-net.dk">
<pre class="moz-quote-pre" wrap="">Hi KEA list,
I'm attempting to mirror this ISC DHCP construct, where the
bootfile-name is set based on the DHCP client mac-address:
subnet x.y.z.0 netmask 255.255.255.0 {
..
pool {
..
option bootfile-name = concat(
suffix (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)
);
}
}
How can I achieve something similar using KEA? We use this for per
modem/cpe configuration-files for docsis and other types of devices.
Defining a host entry for every modem/cpe is not really feasible.
I tried a construct similar to this, but could not get it working:
"subnet4": [
..
"option-data": [ {
"name": "boot-file-name",
"data": concat('foo', 'bar')
} ]
]
Kind regards,
</pre>
</blockquote>
</body>
</html>