<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I have a question about reserving client classes to hosts. Let's
have two client classes and one host reservation as follows:</p>
<p><i>{</i><i><br>
</i><i> "name": "class1",</i><i><br>
</i><i> "boot-file-name": "file1",</i><i><br>
</i><i>},
</i></p>
<p><i>{</i><i><br>
</i><i>
"name": "class2",</i><i><br>
</i><i>
"boot-file-name": "file2",</i><i><br>
</i><i>
},</i></p>
<i>
</i>
<p><i>...</i><i><br>
</i></p>
<p><i>{</i><i><br>
</i><i> "hw-address": "aa:bb:cc:dd:ee:ff",</i><i><br>
</i><i> "client-classes": [</i><i><br>
</i><i> "class2"</i><i><br>
</i><i> ]</i><i><br>
</i><i>},</i></p>
<p>Intuitively, I would expect it to be enough to specify class2 in
the host reservation in order to make the host get the
boot-file-name from class2. But it gets it from class1. Inspired
by
<a class="moz-txt-link-freetext" href="http://kea-users.7364.n8.nabble.com/Kea-users-client-classes-for-a-particular-MAC-Address-of-a-CPE-td843.html">http://kea-users.7364.n8.nabble.com/Kea-users-client-classes-for-a-particular-MAC-Address-of-a-CPE-td843.html</a>,
I added the mac address of the host to the class test. Then the
client got the option from class2 as I wanted.<br>
</p>
<p>
</p>
<p><i>{</i><i><br>
</i><i>
"name": "class2",</i><i><br>
</i><i>
"test": "pkt4.mac == 0xaabbccddeeff",</i><i><br>
</i><i>
"boot-file-name": "file2",</i><i><br>
</i><i>
},</i></p>
<p>I've been wondering, what is the purpose of putting the client
class to the host reservation, if I have to put the client's MAC
address to the class test anyway. Can anyone clarify?</p>
<p>Thanks in advance.</p>
<p>Best regards,</p>
<p>Maria Hrabosova<br>
</p>
</body>
</html>