F5_LB_Eng
Dec 14, 2011Cirrostratus
Need Help on merging the 2 Irule
i want to merge the below 2 irule into one irule.
can any one help me on this.
rule abc_prod_api '{
when CLIENT_ACCEPTED { if { [[ IP::client_addr] equals 63.95.36.13] } { pool prod_res_comm_ssl_196 } elseif { [[ IP::client_addr] equals 216.195.77.144] } { pool prod_res_comm_ssl_199 } } }'
rule abc_prod_api {
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/mers/api*" {
persist none
pool prod_res_comm_ssl_api
}
default {
persist source_addr
pool prod_res_comm_ssl
}
}
}
}