blwavg_10621
Jan 19, 2014Nimbostratus
Client 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 $member test_member
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
{[LB::status pool $pool members $member]}
pool default_pool member $member
} else {
pool default_pool }
}
ERRORS:
- Rule [/Common/Client_select] error: /Common/Client_select:1: error: [command is not valid in the current scope][set $pool test_pool]
- /Common/Client_select:2: error: [command is not valid in the current scope][set $member test_member]
- /Common/Client_select:5: error: [undefined procedure: [LB::status pool $pool members $member]][{[LB::status pool $pool members $member]}]