deantotham_2141
Jul 04, 2007Nimbostratus
two whens?
Is there a way to have two when condition statements in the same iRule.
I.e.
I am happy using this statement for regional IP source redirects
when CLIENT_ACCEPTED { if { [IP::addr [IP::client_addr]/24 equals 10.223.34.0] } { pool gw-pool member 10.223.32.1 } elseif { [IP::addr [IP::client_addr]/24 equals 10.236.36.0] } { pool gw-pool member 10.223.36.1 } else { Your other conditions, if necessary }}
But I would love to add a LB_Failed in there too!
so the logic would be when IP is acknowledged before redirecting to local gw-pool member check if gw-pool member is up if not send elsewhere.