Forum Discussion
rodrigo_Benzaqu
Nimbostratus
Jun 07, 2007Help to convert an irule from 4.5 to 9
Guys, Tonight I´m planning to migrate from an old bigip540R to a 6400, so somebody can help to migrate the folowing rule ?
Maybe we can use switch instead of if and if
load balancing rules
rule Cache_Fetch {
if (http_uri starts_with "/jm/pms" or http_uri starts_with "/cgi/pms/") {
use pool PMS_java
}
else {
if (http_uri starts_with "/jm/img?") {
use pool IMG_POOL
}
else {
if (http_uri starts_with "/jm/" or http_uri starts_with "/jms/" or http_uri starts_with "/servlet/" or http_uri ends_with "
_JM" or http_uri ends_with "_JSEA" or http_uri starts_with "/dwr/") {
use pool Java_Servers
}
else {
if (http_uri contains "/ml/") {
use pool SQL_Servers
}
else {
use pool static_server
}
}
}
}
2 Replies
- Kenny_Van_73892
Nimbostratus
I just found out when I tried to use switch -glob and [string tolower [HTTP::uri]], the tolower doesn't work. Even though, the iRule Editor didn't complain any syntax error. - That should work fine. If you pass in your code, I'll take a look and test it out.
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