diana_24252
Apr 22, 2010Nimbostratus
iRule with two IF statements is not working correctly
I have this iRule below and it does a good job on forwarding to pools POOL_PUB_MOSS and MyCampus_Pool, but not to the Offline_Pool when all servers are down or disabled. What do I need to change?
when HTTP_REQUEST {
if { [matchclass [HTTP::uri] starts_with $PRODMOSS] } {
if {[active_members POOL_PUB_MOSS] > 0 } {
pool POOL_PUB_MOSS
} else {
pool Offline_Pool
}
} else {
if {[active_members MyCampus_Pool] > 0 } {
pool MyCampus_Pool
} else {
pool Offline_Pool }
}
}
TY