Forum Discussion
Shawn_89418
Jun 11, 2012Nimbostratus
irule to select from multiple pools?
Can you select a pool based on what comes after the fqdn? For instance
For UAT Site -
https://uat.site1.com/blah1 (/blah1 goes to application 1)
https://uat.site1.com/blah2 ...
hooleylist
Jun 11, 2012Cirrostratus
Hi Shawn,
You can do this with a switch statement or if you have a lot (dozens or more) mappings, you could create a string data group with directory to pool mappings as name=value pairs and then use the class command to perform the lookup.
See the switch and class command pages for details:
https://devcentral.f5.com/wiki/iRules.switch.ashx
https://devcentral.f5.com/wiki/iRules.class.ashx
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