Forum Discussion
xett_113697
Nimbostratus
Nov 26, 2007Updating Persistence from an iRule
I'm trying to find a way to update my persistence from a URL parameter. Here is my problem:
Lets say I have a pool called test-pool. In that pool I have server1, server2, server3. I need ...
xett_113697
Nimbostratus
Nov 27, 2007This is the error I get when I try to update the iRule:
01070151:3: Rule [persist_to_server] error:
line 5: [wrong args] [URI::query [HTTP::uri] f5host]
Here is the iRule:
when HTTP_REQUEST {
set requested_host ""
log local0. "URI: [HTTP::uri]"
log local0. "Parsed value: [URI::query [HTTP::uri] f5host]"
switch $requested_host {
"" {
pool my-pool
}
"long" {
node 10.0.0.10
}
"orbw" {
node 10.0.0.11
}
default {
pool my-pool
}
}
}
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
