Forum Discussion
Philippe_CLOUP_
Historic F5 Account
Mike_Maher
Nov 13, 2013Nimbostratus
Yes, I already tried adding that example below. I also tried multiple other ways of adding matched and changing the syntax but nothing seems to work. The other thing I find odd is that if I just try and put a simple iRule in to log what rule is being used I always get a blank log line.
when CLIENT_ACCEPTED {
set retries 0
}
when HTTP_REQUEST {
if {[POLICY::rules matched] eq "hqdesktop-securera-8000_class-policy-rule"}{
set backup_pool PHX-hqdesktop-8000.edwardjones.com_pool
}
if {[POLICY::rules matched] eq "desktop-securera-8000_class-policy-rule"} {
set backup_pool PHX-desktop-8000.edwardjones.com_pool
}
}
when LB_FAILED {
if { $retries < [active_members $backup_pool] } {
LB::reselect pool $backup_pool
incr retries
}
}