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 15, 2009Actually, I'd like to use this one more, as I don't need to worry about health monitoring the default pool from the iRule, and don't need the default_pool variable.
I want this iRule to run only if a bot user-agent comes along, thoughts?
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 {
event disable
}
}
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