<div dir="ltr">Hi Simon,<div>class are already defined, can't change that. but maybe I can create a "master" class which will group all subclasses ?</div><div><br></div><div>all my classes are defined like this :</div><div><br></div><div>class "Alcatel-SIP" {<br> match if option vendor-class-identifier = "alcatel.sip.0";<br><br> vendor-option-space ALU;<br> option ALU.http-server-name = config-option VOIP.http-server-uri;<br> log(concat("[", binary-to-ascii(16, 8, ":", hardware), "] ", "BOOT Alcatel SIP"));<br>}<br></div><div>Regards</div><div>Cédric</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 9 nov. 2021 à 19:42, Simon Hobson <<a href="mailto:simon@thehobsons.co.uk">simon@thehobsons.co.uk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On 9 Nov 2021, at 08:21, BASSAGET Cédric <<a href="mailto:cedric.bassaget.ml@gmail.com" target="_blank">cedric.bassaget.ml@gmail.com</a>> wrote:<br>
> <br>
> Hello.<br>
> I have to configure a dhcp server wich will act as master for dozens of relays.<br>
> My basic pool config includes a lot of "allow members of" statements, like this :<br>
> <br>
> <br>
> subnet 192.168.2.0 netmask 255.255.255.0 {<br>
> option routers 192.168.2.1;<br>
> #option domain-name-servers 192.168.2.1;<br>
> #option bootfile-name = "snom821.htm";<br>
> pool {<br>
> range 192.168.2.100 192.168.2.200;<br>
> ### Assign who is going to use this pool<br>
> allow members of "voip-mac-address-prefix";<br>
> # allow localhost for NRPE<br>
> # allow members of "localhost";<br>
> # Aastra<br>
> allow members of "Aastra6730i";<br>
> allow members of "Aastra6731i";<br>
> allow members of "Aastra6739i";<br>
> allow members of "Aastra6751i";<br>
> allow members of "Aastra6753i";<br>
> allow members of "Aastra6755i";<br>
> allow members of "Aastra6757i";<br>
> # Snom<br>
> allow members of "Snom300";<br>
> allow members of "Snom320";<br>
> allow members of "Snom360";<br>
> allow members of "Snom370";<br>
> allow members of "Snom820";<br>
> ....<br>
> }<br>
> }<br>
<br>
Do you need to define the classes separately ? If not, then you could simplify things a lot :<br>
pool {<br>
range 192.168.2.100 192.168.2.200;<br>
allow members of "Aastra";<br>
allow members of "Snom";<br>
....<br>
}<br>
<br>
Simon<br>
<br>
_______________________________________________<br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div>