Forum Discussion
sb_2323_80570
Nimbostratus
May 07, 2010lb_selected and node
Hi,
My scenario, I have two irules in place. One that selects the pool and one that changes the destination tcp port based on a variable based on irule 2.
pool_xxxx1:2001
The first rule works fine but the second irule does not change the destination port, the variable $tcp_port can be any port, If add lb::reselect to the node entry it works fine but screws up persistency
when LB_SELECTED {
if {[IP::addr [LB::server addr] equals 1.1.1.1]}{
node 1.1.1.1 $tcp_port
}
if {[IP::addr [LB::server addr] equals 1.1.1.2]}{
node 1.1.1.2 $tcp_port
}
}
Could anyone advise as to where im going wrong please
- Michael_Yates
Nimbostratus
Have you verified that your Variable ($tcp_port) is available across your iRules? - sb_2323_80570
Nimbostratus
Hi, - spark_86682Historic F5 AccountYes, when you tell the LTM to load-balance to a node, you're overriding persistence, so a persist entry won't be created. You'll have to create it yourself with the persist add command. I believe that should work.
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