Forum Discussion
Kent_Perrier_50
Mar 16, 2011Nimbostratus
Data Groups for dummies
Is there an article out there that I can use as a data groups for dummies guide?
Do to a bug in 10.2.0 irule array processing, I need to rewrite an irule to use data groups instead and I hav...
Colin_Walker_12
Mar 31, 2011Historic F5 Account
I believe the issue Aaron's outlining above, whether intentionally or not, is one major way in which class match and class search differ: order of operands.
class match [< options >] < item > < operator > < class >class search [< options >] < class > < operator > < item >Note that in the above the and positions are switched. This indicates an implicit difference in the way the lookup is performed. This is further outlined in the examples in the wiki:
* Example: o class match [HTTP::uri] ends_with image_class o read as, does the URI end with an element from image_class.
vs
* Example:
o class search blocked_paths starts_with [HTTP::uri] o read as, does blocked_paths contain an element that starts with the URI.
Note that in the search, you're searching the class for something that starts with the string, rather than comparing the string to each to see if it matches (or starts with) one of the contained class entries. This is a very important difference depending on circumstances.
Hopefully that makes sense. üòâ
Colin
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects