Forum Discussion
Deb_Allen_18
Sep 22, 2006Historic F5 Account
hoolio is right, but you do sort of need to be a bit careful when using dynamic data to build a pool name, though.
Something like this would work, I think:
when HTTP_REQUEST {
extract the pool info from the URI
set uristring [findstr [HTTP::uri] "xx-" "/"]
check if the pool exists and has avail members
if {[active_members "testbed-$uristring"] > 0}{
pool testbed-$uristring
} else {
pool defaultpool
}
}
peace
/deb