Forum Discussion
RACQ_74493
Jan 04, 2011Cirrus
post about how to modify default pool behaviour
Hello,
I found a post on an irule to to send traffic to different pool based on URL and it also discussed how to change the behaviour of the default pool and I cannot find it.
I have an irule that has some 30 different pools and if none of the url matches occur I don't want to it go to the default pool on the VIP I need to send it to a naughty corner!
Can anyone assist?
Thanks
David.
- Chris_MillerAltostratusSimply add a "default" statement at the end of the rule.
default { pool default_pool }
- hoolioCirrostratusJust to clarify Chris' answer: assuming you're using a switch statement to check the URI you would add a default case to the switch to select a different default behavior than using the default pool:
- RACQ_74493CirrusI really should reread my posts to ensure good english before I post!(How embarrassment)
- The_BhattmanNimbostratusHi David,
- RACQ_74493CirrusSome elements have been removed to protect the innocent.
- Colin_Walker_12Historic F5 AccountOkay, to answer some of the questions:
when HTTP_REQUEST { set myPool "" set myPool [class search -value myClass starts_with [string tolower [HTTP::path]]] if {$myPool ne ""} pool $myPool } else { drop } }
class myClass { "/apps/applytojoin" := "lpl_site1_https_applytojoin" "/apps/applytonotjoin" := "lpl_site1_https_applytonotjoin" ... etc.
- RACQ_74493CirrusThank you Colin.
- RACQ_74493CirrusBugger!
- RACQ_74493CirrusHello Colin,
- Chris_MillerAltostratusPosted By RACQ on 01/06/2011 04:19 PM
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