Forum Discussion
boneyard
Mar 07, 2012MVP
looking to optimize / generalize irule
i have an irule which selects a pool based on several known items (think: uri, client ip, port). i have many of these sets, so some strings and a poolname. currently this is all hard coded in the irul...
Hi Boneyard,
How about having a set of data groups with one per component you're checking (URI, client IP, port, etc) and then have one set of these data groups per virtual server. You could then prefix the data groups using the virtual server name:
vs1_uri_dg
vs1_ip_dg
vs1_port_dg
vs2_uri_dg
vs2_ip_dg
vs2_port_dg
You can get the current virtual server's name using [virtual name].
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