George_33482
Mar 10, 2012Nimbostratus
iRule pool selection after checking
Hello,
Kindly i need some assistance to complete part of the iRule. i have a LC and i want to select a pool member based on source address. But first i want to check if the pool member is up before, otherwise i will select the whole default pool.
part of the iRule is:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
if {[check if the pool member 1.1.1.1 is up }{ ----------<<<<<< how to write it?
pool default_pool member 1.1.1.1
} else {
pool default_pool }
}
Do i need another function LB::SELECTED to make it work.
Regards,
George