Forum Discussion
Mike_Blue_30573
Nimbostratus
Feb 04, 2005IRule V4.x to 9.x conversion problem
I have tried over and over to convert this rule to V9. I get an
error saying that "Wrong of args". I am no irules expert obviusly.
I have been trying to walk through the TCL and Irule s...
unRuleY_95363
Feb 04, 2005Historic F5 Account
Cleaned up a little it would look like this:
when HTTP_REQUEST {
if { [domain [HTTP::host] 3] eq "stage.test.com" } {
pool test_http
} elseif { [domain [HTTP::host] 3] eq "stage1.test.com" } {
pool test_svra
} elseif { [domain [HTTP::host] 3] eq "stage2.test.com" } {
pool test_svrb
} else {
discard
}
}
Or using a Tcl switch statement you could do:
when HTTP_REQUEST {
switch [domain [HTTP::host] 3] {
stage.test.com { pool test_http }
stage1.test.com { pool test_svra }
stage2.test.com { pool test_svrb }
default { discard }
}
}
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
