Forum Discussion
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
}
}
}
}
- Michael_YatesNimbostratusHi prasanna,
when HTTP_REQUEST { if { [IP::addr [IP::client_addr] equals 63.95.36.13 ] } { pool prod_res_comm_ssl_196 return } if { [IP::addr [IP::client_addr] equals 216.195.77.144 ] } { pool prod_res_comm_ssl_199 return } 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 } } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects