Forum Discussion
Chris_Phillips
Nimbostratus
Sep 24, 2013Merging multiple classes
Howdy,
I've an irule which is referencing a list of URI's stored in a class, doing a starts_with match on it.
is there any way to take multiple classes and merge them dynamically (probably ...
Kevin_Stewart
Employee
Sep 24, 2013But a list can't be used with a single match operation right?
I'd argue that a list is actually more flexible than a data group:
http://www.tcl.tk/man/tcl8.4/TclCmd/lsearch.htm
So say you had a few simple single-value data groups. Example:
dgl_test_1
"/test1" := ""
"/test2" := ""
"/test3" := ""
"/test4" := ""
dgl_test_2
"/foo1" := ""
"/foo2" := ""
"/foo3" := ""
"/foo4" := ""
dgl_test_3
"/bar1" := ""
"/bar2" := ""
"/bar3" := ""
"/bar4" := ""
And an iRule that did something like this:
when CLIENT_ACCEPTED {
set uri_list "[class get dgl_test_1] [class get dgl_test_2] [class get dgl_test_3]"
}
** notice the space between the [class get ] commands.
This would give you a single list of URIs that you could sort or search.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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