Encapsulated match if
John Hascall
john at iastate.edu
Wed Mar 5 15:20:39 UTC 2008
> Or just had this stroke of inspiration using execute to run an external
> command:
> match if execute("expr",
> binary-to-ascii(10, 8, "-", option dhcp-parameter-request-list),
> ":", ".*-67");
I think that will fail should option 67 be the first or only
item in dhcp-parameter-request-list (which is probably unlikely).
Replacing ".*-67"
with ".*[^0-9]*67[^0-9]*"
would be 'more' correct.
John
PS, sounds like a 'requested' operator similar to the 'exists' operator
would be a nice feature for some future version...
More information about the dhcp-users
mailing list