Forum Discussion
wpduhe_174647
Nimbostratus
Oct 20, 201410.2.4 LB::reselect doesn't seem to work
I have the below iRule that will change the destination port to a specific node in a pool. The log messages show up in the /var/log/ltm file indicating that the "if" statement works and the variable...
wpduhe_174647
Nimbostratus
Oct 21, 2014Kudos to everyone here for these outstanding suggestions! Excellent work! Below is what I ultimately used to accomplish my goal.
when CLIENT_ACCEPTED {
set pick [LB::select]
set ip [lindex [split $pick " "] 3]
switch $ip {
10.234.133.221 {
node $ip [TCP::local_port]
persist uie "[IP::local_addr]:[TCP::local_port]"
}
10.234.133.222 {
node $ip [expr {[TCP::local_port] + 1}]
persist uie "[IP::local_addr]:[TCP::local_port]"
}
default {
do something
}
}
}
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
