KaiTT
Feb 17, 2021Nimbostratus
iRule LB_FAILED
I would like to configure iRule as below.
1) Configure to use the "VS_Any_Bypass" virtual server when the pool member is down
2) When IP addresses are added to the Data Group List, configure only those IP addresses to use the "VS_Any_Bypass" virtual server.
I made a sample policy, but I don't know if it's accurate.
=================================================
when LB_FAILED {
if { ([active_members Pool_WAF] < 1) or ([class match [IP::client_addr] equals bypass-sip]) } {
LB::detach
LB::reselect
virtual VS_Any_Bypass
}
}
=================================================
*Pool_WAF : Pool member
*bypass-sip : Data Group List
The type of virtual server to which this ireule is added is performance L4.
Thanks.