Forum Discussion
RACQ_74493
Cirrus
Jan 04, 2011post 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.
13 Replies
- Chris_Miller
Altostratus
Simply add a "default" statement at the end of the rule.default { pool default_pool }
- hoolio
Cirrostratus
Just 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_74493
Cirrus
I really should reread my posts to ensure good english before I post!(How embarrassment) - The_Bhattman
Nimbostratus
Hi David, - RACQ_74493
Cirrus
Some 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_74493
Cirrus
Thank you Colin. - RACQ_74493
Cirrus
Bugger! - RACQ_74493
Cirrus
Hello Colin, - Chris_Miller
Altostratus
Posted 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