Forum Discussion
Rusty_Hale_8009
Nimbostratus
Jan 16, 2007I need help converting old 4.X rules into new 9.X irules
I have three rules that use classes defined in them. The classes are already built. I just need to convert the syntax to V9. I would appreciate any help on this. I am on a short timeline or I woul...
Jan 16, 2007
1:
when HTTP_REQUEST {
if { ([matchclass [HTTP::uri] contains $::MCR_MO_HighRateURI]) ||
([matchclass [IP::client_addr] equals $::NCR_MO_HighRateIP]) } {
pool Alamo_http_MO_robotic
} else {
pool Alamo_MO_Http
}
}2:
when HTTP_REQUEST {
if { [matchclass [IP::client_addr] equals $::HighRateIP_Exclude] } {
pool NCR_MO_HTTP
} elseif { ([matchclass [HTTP::uri] contains $::NCR_MO_HighRateURI]) ||
([matchclass [IP::client_addr] equals $::NCR_MO_HighRateIP]) } {
pool NCR_MO_HTTP_HighRate
} else {
pool NCR_MO_HTTP
}
}3:
when HTTP_REQUEST {
if { ([matchclass [HTTP::uri] contains $::MCR_MO_HighRateURI]) ||
([matchclass [IP::client_addr] equals $::NCR_MO_HighRateIP]) } {
pool NCR_MO_HTTPS_HighRate
} else {
pool NCR_MO_HTTPS
}
}Note: these aren't tested so you might want to make sure I got all the class and pool names correct but this should give you something to start with.
-Joe
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