ML_108504
Apr 13, 2009Nimbostratus
iRule 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 default_pool]
I assumed that the 'default_pool' string corresponded to, effectively, a variable representing the default pool for the virtual running the iRule. I want to write this iRule once and apply it to dozens of virtuals, obviously I don't want an individual iRule for each pool, what am I missing? (Hopefully something simple and obvious).
when HTTP_REQUEST {
if { [matchclass [string tolower [HTTP::header User-Agent]] contains $::bots] } {
pool p_PUB_botfarm
} else {
pool default_pool
}
}
Save the noob! (thank you)