<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi,</p>
    <p>Now that I got the confirmation that we cannot use ifelse in the
      host reservation, let me give more details about what we are
      looking for at the level of the client-class definition.</p>
    <p>(this refers to <a
href="https://lists.isc.org/mailman/htdig/kea-users/2021-July/003149.html">[Kea-users]
        Example for ifelse in host reservation or class (isc.org)</a> )<br>
    </p>
    <p>We have clients of 2 types: type1 and type2.</p>
    <p>Both types need to get, from the DHCP server, a different IP for
      "next-server" and for "Option 54": IP1 for type1, IP2 for type2. <br>
    </p>
    <p>But those options ("next-server" and "Option 54") should be sent
      to the clients ONLY when the clients send "PXEClient" in
      Vendor-Class Option 60 of their DHCPDISCOVER or DHCPREQUEST
      messages.</p>
    <p>How can we reach that, without having to make a test, in the
      class definition, on the mac address of the clients ?</p>
    <p>Implementing such a test on the mac addresses allows to reach the
      desired behaviour, but then we have several 100000 mac addresses
      to list in the test. This makes the configuration file 1) huge 2)
      unreadable 3) unacceptably slow to be validated, especially for
      ipv6.</p>
    <p>Also we cannot set the client-class in the host reservation
      because, in that case, the test is not evaluated (this is what we
      have observed), and consequently the options "next-server" and
      "option 54" are provided to the client *even* when DHCPDISCOVER or
      DHCPREQUEST messages do NOT contain the "PXEClient" string in
      Vendor-Class Option 60. <br>
    </p>
    <p>Thanks for your help.</p>
    <p>Veronique<br>
    </p>
    <p><br>
    </p>
    <p><br>
    </p>
    <pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;">

</pre>
  </body>
</html>