Forum Discussion
amoxi_100233
Nimbostratus
Apr 16, 2007Need help to convert Rules from BIG-IP v4 to v9
class cluster3_class {
"app=pp-"
"app=ers-engpptrans"
}
class cluster1_class {
"app=spt-"
}
rule Rule {
if (tolower(http_uri) contains one of cluster1_class or http_cookie("BIGipServercluster1_Pool")) {
use pool cluster1_pool
}
else if (tolower(http_uri) contains one of cluster3_class or http_cookie("BIGipServercluster3_Pool")) {
use pool cluster3_Pool
}
else {
use pool AllClusters
}
}
- This should get you started...
when HTTP_REQUEST { if { [matchclass [string tolower [HTTP::uri]] contains $::cluster1_class] or [HTTP::cookie exists "BIGipServercluster1_Pool"] } { pool cluster1_pool } elseif { [matchclass [string tolower [HTTP::uri]] contains $::cluster3_class] or [HTTP::cookie exists "BIGipServercluster3_Pool"] } { pool cluster3_Pool } else { pool AllClusters } }
- amoxi_100233
Nimbostratus
Thanks Joe. - Everything is documented over in the wiki along with code samples and tech tips.
http://devcentral.f5.com/Wiki/default.aspx/iRules/iRulesReference.html
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