can i use a wildcard " * " in a class statement ?

donovan jeffrey j donovan at beth.k12.pa.us
Tue Jun 22 17:29:34 UTC 2010


On Jun 22, 2010, at 12:39 PM, Steve van der Burg wrote:

> Search for "substring" in the email archives.

okay  do these sound look correct ?

class "ALCATEL-iptouch" {
        match if substring (option dhcp-client-identifier, 0, 15)="ALCATEL-iptouch"
}

or

class "ALCATEL-iptouch" {
        match if substring (hardware,1,3) = 00:08:9f;
}


is there an advantage to either if they both will do the same thing ? can i pipe these together ?

class "ALCATEL-iptouch" {
        match if substring (option dhcp-client-identifier, 0, 15)="ALCATEL-iptouch" ||
	match if substring (hardware,1,3) = 00:08:9f;
}


TIA
-j


> 
> donovan jeffrey j <donovan at beth.k12.pa.us> wrote:
>> Greetings
>> 
>> working with some Alcatel ip phones.
>> 
>> can i use a " * " in a class statement ?
>> 
>> example:
>> 
>> option dhcp-client-indetifier code 61 = " ALCATEL-iptouch-*";
> 
> 
> --------------------------------------------------------------------------------
> This information is directed in confidence solely to the person named above and may contain confidential and/or privileged material. This information may not otherwise be distributed, copied or disclosed. If you have received this e-mail in error, please notify the sender immediately via a return e-mail and destroy original message. Thank you for your cooperation.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
> 




More information about the dhcp-users mailing list