Forum Discussion
GetWorking_1332
Nimbostratus
Sep 30, 2013Syntax error with irule
So I am trying to use an irule on an LTM - its already in use on another LTM pair but on an older version - wondering if there's a syntax issue. I'm running version BIG-IP 11.2.1 Build 862.0 Hotfix HF2
This rule is working in another data center on an older version, BIG-IP 9.3.1 Build 74.0 - can someone see any syntax issues with the rule (you have to assume these are valid pool names and "dev_asp_ends_with" is a datagroup.
when HTTP_REQUEST {
if { [string tolower [HTTP::path]] contains "communityserver" } {
use pool dev-blogs_7001
} elseif { [matchclass [HTTP::path] ends_with $::dev_asp_ends_with] } {
use pool dev-platform-web-partners_117
} else {
use pool dev-partnersIngCom_116
}
}
1 Reply
- Kevin_Stewart
Employee
Try this:
when HTTP_REQUEST { if { [string tolower [HTTP::path]] contains "communityserver" } { pool dev-blogs_7001 } elseif { [class match [HTTP::path] ends_with dev_asp_ends_with] } { pool dev-platform-web-partners_117 } else { pool dev-partnersIngCom_116 } }
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