Hi
seems you forgot to close the switch statement right before the added $1 section. Below is the rearanged and already corrected code...
when HTTP_REQUEST {
if { [HTTP::cookie exists cookiecrisp] } {
switch [HTTP::cookie value cookiecrisp] {
"azul" {
if { [LB::status pool POOL-443 member 172.16.1.21 443] eq "up" } {
persist uie 1
pool POOL-443 member 172.16.1.21 443
} elseif { [LB::status pool POOL-443 member 172.16.1.22 443] eq "up" } {
pool POOL-443 member 172.16.1.22 443
} else {
pool POOL-443
}
}
"rojo" {
if { [LB::status pool POOL-443 member 172.16.1.23 443] eq "up" } {
persist uie 3
pool POOL-443 member 172.16.1.23 443
} elseif { [LB::status pool POOL-443 member 172.16.1.21 443] eq "up" } {
pool POOL-443 member 172.16.1.21 443
} else {
pool POOL-443
}
}
"amarillo" {
if { [LB::status pool POOL-443 member 172.16.1.22 443] eq "up" } {
persist uie angel
pool POOL-443 member 172.16.1.22 443
} elseif { [LB::status pool POOL-443 member 172.16.1.23 443] eq "up" } {
pool POOL-443 member 172.16.1.23 443
} else {
pool POOL-443
}
}
}
} else {
pool POOL-443
}
}
Cheers, Kai