wpduhe_174647
Oct 20, 2014Nimbostratus
10.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 variables are set to the proper values. However, when the traffic is forwarded from the backside interface, the TCP port has not been incremented. I have contacted support and they confirm that this iRule works. Can anyone help?
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals 10.234.133.222] } {
set port [clientside {TCP::local_port}]
log local0.debug "Port = $port"
set new_port [expr {$port + 1}]
log local0.debug "New port is $new_port"
LB::reselect node 10.234.133.222 $new_port
}
}