<div dir="ltr">Thanks, Darren Ankney, and Veronique Lefebure for the information and for sharing the sample example<br>and Francis Dupont for the information.<br><br>I am able to achieve my requirement now by <br>"client-classes": [<br>  {<br>    "name": "denyClients",<br>        "test": "hexstring(pkt4.mac, ':') == '11:22:33:44:ab:66' or hexstring(pkt4.mac, ':') == '3f:ff:ff:00:00:01' "<br>  },<br>  {<br>    "name": "allowClients",<br>    "test": "(not(member('denyClients')))"<br> }<br>]3f:ff:ff:00:00:01<br><br>pools": [<br>  {<br>    "pool": “12.3.0.0-12.3.0.254",<br>    "client-class": "allowClients"<br> .......<table cellpadding="0" role="presentation" style="border-collapse:collapse;margin-top:0px;width:auto;font-family:"Google Sans",Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14px;display:block;color:rgb(119,119,119)"><tbody style="display:block"><tr style="display:flex"><td style="white-space:nowrap;padding:0px;vertical-align:top;width:auto;line-height:20px;display:block;max-height:20px"><br></td></tr></tbody></table>Thanks <div>Kraishak</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 14, 2022 at 8:00 PM Kraishak Mahtha <<a href="mailto:kraishak.edu@gmail.com" target="_blank">kraishak.edu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All, <div><br></div><div>I am looking for the equivalent option of ISC dhcp subclass in kea-dhcp4 but I couldn't find any, I have a case where I need to decline dhcp-lease grants to given specific mac addresses so trying to match the same in kea-version but I  couldn't find any sub-class equivalent, can we add the specific data (here mac address as the members of the specific class) in kea<br><br>MY ISC DHCP config<br>class "denyClients" {<br>         match substring (hardware, 1, 6);<br>         deny booting;<br>}<br>subclass "denyClients" 11:22:33:44:ab:66;<br>subclass "denyClients" 11:22:33:43:ab:66;<br>subclass "denyClients" 11:22:33:42:ab:66;<br>subnet 12.0.0.0 netmask 255.255.255.0 {<br>pool {<br>          failover peer "Test";<br>               range 12.0.0.2 12.0.0.2;<br>              deny members of "denyClients";<br>}<br>           default-lease-time 3600;<br> option routers 12.0.0.1;<br> option subnet-mask 255.255.255.0;<br>}<br></div><div><br></div><div><br></div><div>Can anyone please advise or suggest how to add members to the DHCP class or the data for which the class should be applied</div><div><br></div><div>Thanks in Advance</div><div>Kraishak</div><div><br></div><div><br></div><div><br></div></div>
</blockquote></div>