<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hi and Thanks Francis!</p>
<p>I had already tested "class guard" using member'<class>',
but can't get it work as i want. I send to you my config example:<br>
</p>
<p>I have a host on class "notice", but kea offer IP from
10.42/16...and i don't want give that IP...i haven't a subnet for
"notice" class<br>
<br>
"Dhcp4": {<br>
"client-classes": [<br>
{<br>
"name": "active"<br>
},<br>
{<br>
"name": "suspend"<br>
},<br>
{<br>
"name": "notice"<br>
}, {<br>
"name": "active-suspend",<br>
"test": "member('active') or member('suspend')",<br>
"only-if-required": true<br>
<br>
}<br>
],<br>
"subnet4": [<br>
{<br>
"subnet": "10.42.0.0\/16",<br>
"pools": [<br>
{<br>
"pool": "10.42.0.10 - 10.42.0.100"<br>
}<br>
],<br>
"require-client-classes": ["active-suspend"],<br>
// "client-class": "active-suspend", //I added this
line too in one of my test....but the host in "notice" class
still having ip from 10.42...<br>
.....<br>
</p>
<p><br>
</p>
<p>Is right? Can you help me?<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 21/1/19 a las 20:42, Francis Dupont
escribió:<br>
</div>
<blockquote type="cite"
cite="mid:20190121234248.7CAD3216C1C@bikeshed.isc.org">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">It's possible to match multiple classes for same subnet?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
=> No. The initial design proposed black/white lists (as in ISC DHCP)
but it was never implemented and the unique class guard is far simpler.
You can build the class guard using the member'<class>' token in a boolean
expression: it does the same without possible ambiguity.
Regards
Francis Dupont <a class="moz-txt-link-rfc2396E" href="mailto:fdupont@isc.org"><fdupont@isc.org></a>
</pre>
</blockquote>
</body>
</html>