Forum Discussion
blwavg_10621
Nimbostratus
Jan 19, 2014Client Select iRule Failing to Compile
I am trying to have a source address go to a specific member if the node is up, if not then just be sent to the pool. I came up with this but ran into errors. Any ideas?
set $pool test_pool
set $m...
blwavg_10621
Nimbostratus
Jan 19, 2014I get REALLY close after some tweaking:
when CLIENT_ACCEPTED {
set pool test_pool
if { ([IP::addr [IP::client_addr] equals 10.10.2.20]) && if { ([LB::status pool $pool member 192.168.192.168 443] eq "up") }
pool $pool member 192.168.192.168 443
}else { pool $pool
}
}
I still get this error:
Rule [/Common/Client_select] error: /Common/Client_select:5: error: [parse error: extra characters after close-brace][else { pool $pool}]
I cannot for the life of me fine the extra character... I will keep trying to fix. I have copied and pasted from note pad and tried manually wiping out any erroneous characters with no luck.
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
