Haruto_Hashizum
Nov 01, 2017Nimbostratus
Where does this iRule end?
If client accsess the virtual server that has the iRule below with URI "/aaa/", which is the endpoint of this iRule A or B? I'm worried about that this rule excecute "LB::detach" .
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/aaa/*" {
if { [active_members Pool_aaa] > 0 } {
else {
pool Pool_sorry
}
A→}
"*/bbb/*" {
if { [active_members Pool_bbb] > 0 } {
else {
pool Pool_sorry
}
}
LB::detach
switch -glob [string tolower [HTTP::uri]] {
"*/ccc/*" {
if { [active_members Pool_ccc] > 0 } {
if { [HTTP::cookie exists "CCC"] } {
persist uie [HTTP::cookie "CCC"]
pool Pool_ccc
}
else {
pool Pool_ccc
}
}
else {
pool Pool_sorry
}
}
default {
if { [active_members Pool_default] > 0 } {
pool Pool_default
}
else {
pool Pool_sorry
}
}
B→}