Forum Discussion
Client Select iRule Failing to Compile
blwavg,
A couple of pointers. The set command is not quite right and needs to be after an event, so something like
when CLIENT_ACCEPTED {
set pool test_pool
set member test_member
Also, you're checking on a client address but it would be good to check if the pool member is up to. Something like:
if { ([IP::addr [IP::client_addr] equals 10.10.10.10]) && if { ([LB::status pool $pool member x.x.x.x 80] eq "up") }{
Notice I've added a port here (80) and entered an IP address (x.x.x.x) too.
Final two things. The member variable you set is fine in itself, however, the way you use it I don't think it will work. It should be an IP address, rather than test_member. You then add a port too to the pool command. An example:
pool default_pool member x.x.x.x 80
Any reason why you're using default_pool here but set a variable for test_pool?
Anyway, hope this helps you build a working iRule.
N
Recent Discussions
Related Content
* 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