<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">It has been my experience so far that a
      device can be in more that one class.<br>
      [1:root@apinetstore dhcp]$ rpm -qa | grep dhcp<br>
      <font color="#993300">dhcp-4.2.5-23.fc19.x86_64<br>
        dhcp-libs-4.2.5-23.fc19.x86_64<br>
        dhcp-common-4.2.5-23.fc19.x86_64</font><br>
      <br>
      Example:<br>
      <font color="#993300">                pool {<br>
                                failover peer "dhcp-failover";<br>
                                set pool_type = "Printers";<br>
                                allow members of "Printers";<br>
                                allow members of "JetDirect";<br>
                                allow members of "Panasonic"; <br>
                                allow members of "Ricoh";<br>
                                allow members of "Canon";<br>
                                allow members of "Kyocera";   <br>
                                allow members of "Brother";<br>
                                deny members of "Pack.1";  <br>
                                deny members of "Pack.2";<br>
                                deny dynamic bootp clients;<br>
                        option routers                  10.96.0.9;<br>
                                range 10.98.128.1       10.98.128.253;<br>
                                range 10.98.129.1       10.98.129.253;<br>
                        }</font><br>
      <font color="#993300">                pool {<br>
                                failover peer "dhcp-failover";<br>
                                set pool_type = "Pack.1";<br>
                                allow members of "Pack.1";<br>
                                deny dynamic bootp clients;   <br>
                        option routers                  10.96.0.9;<br>
                                range 10.100.1.32       10.100.1.253;<br>
                        }</font><br>
      We have JetDirect printers on "Pack.1" that get a <font
        color="#993300"> range 10.100.1.32       10.100.1.253</font>
      address.<br>
      <br>
      <br>
      Bill<br>
      <br>
      On 9/29/2014 4:44 PM, Adam Moffett wrote:<br>
    </div>
    <blockquote cite="mid:5429C49E.6090402@plexicomm.net" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Perhaps my information is out of date, but last I knew a device
      couldn't actually belong to two classes.  <br>
      <br>
      I was once trying to do something similar to what you're doing
      with the printers, but you don't really know whether it will end
      up in the first class or the second, other than knowing it will
      only be in one of them.<br>
      <br>
      <div class="moz-cite-prefix"><br>
      </div>
      <blockquote
cite="mid:1D507D610594D14F86D40D77C17E9E661A0803C9@EXCHANGEDSB.ruralnex.com"
        type="cite">
        <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>
        <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> <a
                  moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a>
                [<a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:dhcp-users-bounces@lists.isc.org">dhcp-users-bounces@lists.isc.org</a>]
                on behalf of Bill Shirley [<a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:Bill@Henagar.PolymerIndustries.biz">Bill@Henagar.PolymerIndustries.biz</a>]<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><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>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
dhcp-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>