Match if substring ...
Matej
matej at matnet.net
Wed Jan 14 18:25:21 UTC 2009
Hi,
thank you both. Of course that was it :-)
With regards,
Matej Serc
matej at matnet.net
----- Original Message -----
From: "Alexander Clouter" <ac56 at soas.ac.uk>
To: "Matej" <matej at matnet.net>
Cc: <dhcp-users at lists.isc.org>; <dhcp-hackers at lists.isc.org>
Sent: Wednesday, January 14, 2009 7:18 PM
Subject: Re: Match if substring ...
> Hi,
>
> * Matej <matej at matnet.net> [2009-01-14 19:05:20+0100]:
>>
>> we have a problem where we must differentiate between different values
>> of vendor-class-identifiers and firmware versions for them. The
>> problem is that for every v-c-i there is only one right firmware. The
>> vendor-class-identifiers are for example "Firmware_1" and "Firmware_1b"
>>
>> The following class "happens" with both firmware versions
>>
>> class "something" {
>> match if ( substring (option vendor_class_identifier, 0, 10) =
>> "Firmware_1");
>> filename = "blahblah";
>> }
>>
>> which isn't what we want. Is there an option of some sort of exclusive
>> or / matching the entire vendor_class_identifier or something like that?
>>
> You should make this (from dhcpd.conf):
> ----
> class "wibble" {
> match if option vendor_class_identifier = "Firmware_1";
> filename = "wobble";
> }
> ----
>
> Cheers
>
> Alex
>
> --
> Alexander Clouter - Network Infrastructure Support Analyst, IT Department
> .sigmonster says: Q: How do you keep a moron in suspense?
>
More information about the dhcp-users
mailing list