Forum Discussion
James_Thomson
Employee
Dec 10, 2004mapclass2node
Along the same lines off an an earlier post by Natty about persistence. I'm trying to just read a cookie that is handed out by the server and persist a user on it. One example is where the cookie is s...
unRuleY_95363
Dec 10, 2004Historic F5 Account
It's pretty simple, though not configured quite the same as the select statement on the pool. Here's what to do:
class node_class {
"s1s1 10.11.1.10:80"
"s1s2 10.11.1.20:80"
}
rule direct_select {
when HTTP_REQUEST {
node [findclass [HTTP::cookie "server"] $::node_class " "]
}
}
The findclass command does pretty much the same thing as the mapclass2node, returning the latter portion of the matched class entry. The node command directly selects the node.
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