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...
hooleylist
Mar 30, 2011Cirrostratus
No, it's not particularly intuitive, but the class match command will work:
Datagroup
class uri_prefixes_class {
{
"/foo1" { "pool1" }
"/foo2" { "pool2" }
}
}
iRule example
when RULE_INIT {
log local0. "\[class search -value uri_prefixes_class starts_with \"/foo123\"\]: [class search -value uri_prefixes_class starts_with "/foo123"]"
log local0. "\[class match -value \"/foo123\" starts_with uri_prefixes_class\]: [class match -value "/foo123" starts_with uri_prefixes_class]"
}
/var/log/ltm output:
< RULE_INIT >: [class search -value uri_prefixes_class starts_with "/foo123"]:
< RULE_INIT >: [class match -value "/foo123" starts_with uri_prefixes_class]: pool1
Aaron
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