Forum Discussion
Tom_B_90541
Mar 26, 2012Nimbostratus
irule too long
Greetings all. 9.4.X irule issue. We seem to have hit the character limit (KB SOL9204). Our irule looks like this:
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/test"} {pool pTest}...
hooleylist
Mar 26, 2012Cirrostratus
Hi Tom,
The best option would be to move the hostname to pool name mappings to a data group. In 9.4.x you could use findclass to look up the requested host header in the data group and return the pool name.
https://devcentral.f5.com/wiki/iRules.findclass.ashx
A less ideal option would be to replace the if/elseif/elseif.../else chain with a switch statement. This should save you some characters in the iRule.
https://devcentral.f5.com/wiki/iRules.switch.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