<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I don't know, but honestly, in my case here, I've just included the "match if" from the subgroup again to include the device in the larger group and used comments to indicate what
that subgroup was.<br>
<br>
I presume you have something that needs to happen to members of some subgroups and something different that needs to happen to members of other subgroups, but you have something in common that needs to happen to all of them?<br>
<br>
Patrick<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF582211"><font color="#000000" face="Tahoma" size="2"><b>From:</b> dhcp-users-bounces@lists.isc.org [dhcp-users-bounces@lists.isc.org] on behalf of Bill Shirley [Bill@Henagar.PolymerIndustries.biz]<br>
<b>Sent:</b> Monday, September 29, 2014 3:28 PM<br>
<b>To:</b> Users of ISC DHCP<br>
<b>Subject:</b> Class matching<br>
</font><br>
</div>
<div></div>
<div><tt>Is there a way to include a device in a class based on its membership in another class?:<br>
<font color="#993300">class "Kyocera" {<br>
match if substring(hardware, 1,3) = 00:c0:ee;<br>
set member_of = "Kyocera";<br>
}<br>
class "Brother" {<br>
match if substring(hardware, 1,3) = 30:05:5C;<br>
set member_of = "Brother";<br>
}</font><br>
<br>
Such as:<br>
<font color="#993300">class "Printers" {<br>
match if (<br>
option server.class = "Kyocera"<br>
or option server.class = "Brother"<br>
);<br>
}</font><br>
if so, what do a replace "<font color="#993300">option server.class</font>" with?<br>
<br>
I've also tried using the variable "member_of" set above:<br>
<font color="#993300">class "Printers" {<br>
match if (<br>
member_of = "Kyocera"<br>
or member_of = "Brother"<br>
);<br>
}</font><br>
which doesn't work.<br>
<br>
TIA,<br>
Bill<br>
<br>
</tt></div>
</div>
</div>
</body>
</html>