Forum Discussion
Ariel_Moreno_10
Nimbostratus
Dec 29, 2010iRule Switch default action
Folks.
I have a big iRule to distribute the connection between multiples pooles using URI regex, what I have realized that I did not added a "default:" statement trying to cause a connection...
Hi Ariel,
If you want to make per-HTTP request decisions, it's best to add a OneConnect profile. See this wiki page for details:
http://devcentral.f5.com/wiki/default.aspx/AdvDesignConfig/oneconnect.html
It's also a good practice to explicitly handle all cases within the iRule. So adding a default case to the switch statement would make sense.
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