Forum Discussion
Robert_47833
Sep 20, 2011Altostratus
how to merge these conditions to one :matches_regex
how to merge these conditions to one
if {$port == 443 and $uri matches_regex "^(/up)"} {
persist none
pool SRWD42-SLX
}
elseif {
$port == 443 and $uri matches_reg...
hooleylist
Sep 21, 2011Cirrostratus
I'd use a switch statement for this. It should be a lot more efficient than the regex checks.
if {[TCP::local_port] == 443}{
switch -glob -- [HTTP::uri] {
"/up*" -
"/auto/bu*" -
"/auto/Da*" {
persist none
pool SRWD42-SLX
}
default {
Take some default action?
}
}
}
Aaron
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