Forum Discussion
ML_108504
Nimbostratus
Apr 13, 2009iRule Editor can't find default_pool
Hi folks, I'm experimenting with some simple iRules (I thought) from devcentral examples. When I check the following iRule in the Editor it complains with:
line 5: [can't find pool] [pool defa...
ML_108504
Nimbostratus
Apr 14, 2009Thanks for the tips and discussion guys, here's what I've ended up with at the moment, it passes the syntax checker at least ..
I've added a check for < 1 active member in the bot pool with a corresponding event disable to hop out of the rule if there are no active members in the bot pool.
Is there a better/more effecient way to compose this iRule?
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
if { [active_members p_PUB_botfarm] < 1 } {
event disable
}
elseif { [matchclass [string tolower [HTTP::header User-Agent]] contains $::bots] } {
pool p_PUB_botfarm
} else {
pool $default_pool
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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