Match if substring ...
Alexander Clouter
ac56 at soas.ac.uk
Wed Jan 14 18:18:15 UTC 2009
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-hackers
mailing list