Forum Discussion

THE-F5_253023's avatar
THE-F5_253023
Icon for Nimbostratus rankNimbostratus
Dec 03, 2016

Request irule for select pool

Is there idea write irule for this case ?

if source client ip 1.1.1.1 select to pool A and then another source client to pool B

 

but i want a condition , if pool A status down Client IP 1.1.1.1 switch to pool B

 

and when pool A fallback is to available [Pool A up] The client 1.1.1.1 switch back to pool A

 

Thank a lot for the any answer

 

1 Reply

  • M_2's avatar
    M_2
    Icon for Altocumulus rankAltocumulus

    Hello John,

     

    Not pretty sure,can you try the below irule or tweak it any thing is wrong.

     

    when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr] equals 1.1.1.1] } { if { [active_members poolA] >= 1 } { pool poolA } else { pool poolB } } else { pool poolB } } SAM