For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

GetWorking_1332's avatar
GetWorking_1332
Icon for Nimbostratus rankNimbostratus
Sep 30, 2013

Syntax 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

  • 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
        }
    }