Forum Discussion
sandiksk_35282
Altostratus
Jan 25, 2019irule not working as expected
I have an irule to look for specific attribute in http header , if it matches it need to go to the pool else to the default pool
when HTTP_REQUEST {
if { [HTTP::header "SOAPAction"] equals "; ...
jaikumar_f5
Noctilucent
Jan 26, 2019Hi sandiksk,
try out the below, haven't tested. But you'll get the point on how to fix this....
when HTTP_REQUEST {
switch -glob [HTTP::header "SOAPAction"] {
"http://www.tech.com/CustomerWebsite/Details" -
"http://www.tech.com/CustomerWebsite/Points" {
if { [active_members prod_ro] > 0 } {
pool prod_ro
} else {
pool prod_pool
}
}
"http://www.tech.com/CustomerInquiry/Balances" {
if { [active_members copient_prod_ro] > 0 } {
pool copient_prod_ro
} else {
pool prod_pool
}
}
default { pool prod_pool }
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
