<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Maria,</p>
    <p>Hope you're doing well. Apologies for not responding earlier. We
      looked at the issue and it seems the code treated the client
      classes differently for options and fixed fields, such as
      boot-file-name. This problem manifested itself if a packet
      belonged to two classes and you had the values defined in both.
      Anyway, this has been fixed now and released in 1.9.5. Would you
      be willing to check if this updated behavior address your needs?
      Also, if you're interested, the improvements were done in ticket
      #1672. You can see the details here:
      <a class="moz-txt-link-freetext" href="https://gitlab.isc.org/isc-projects/kea/-/issues/1672">https://gitlab.isc.org/isc-projects/kea/-/issues/1672</a></p>
    <p>If it doesn't, can you open a new ticket for this?<br>
    </p>
    <p>Hope that helps,</p>
    <p>Tomek<br>
    </p>
    <div class="moz-cite-prefix">On 11.12.2020 17:42, Maria Hrabosova
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a59ed387-261f-6bd8-6082-f2172aae6489@cern.ch">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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"
          moz-do-not-send="true">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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
ISC funds the development of this software with paid support subscriptions. Contact us at <a class="moz-txt-link-freetext" href="https://www.isc.org/contact/">https://www.isc.org/contact/</a> for more information.

To unsubscribe visit <a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>.

Kea-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kea-users@lists.isc.org">Kea-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/kea-users">https://lists.isc.org/mailman/listinfo/kea-users</a>
</pre>
    </blockquote>
  </body>
</html>