Execute Based Class Matching
David W. Hankins
David_Hankins at isc.org
Mon Jan 19 19:30:58 UTC 2009
On Sat, Jan 17, 2009 at 05:56:15PM +0000, Patricio Latini wrote:
> What do you mean with subclasses? Do you think that i can give different parameters depending a subclass match?
Classes are searched linearly, one at a time, each boolean executable
expression evaluated in series. Because a client can be a memory of
multiple classes, the list search is not aborted early on the first
match, so you don't even get any "N/2" averaging.
Subclasses, on the other hand, are a hash table lookup, first
evaluating the key specified in the parent class 'match' clause,
and then hashing it to seek subclasses.
I'm a bit fuzzy now on what you were looking to do with the classes,
but I had the understanding you might have a large number of class
structures. I was asking if you had given any thought to organizing
a large number of subclasses under a smaller number of classes.
And yes, you can scope configuration inside the subclass.
David W. Hankins "If you don't do it right the first time,
Software Engineer you'll just have to do it again."
Internet Systems Consortium, Inc. -- Jack T. Hankins
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 194 bytes
Desc: not available
More information about the dhcp-users