Chuck_127210
Dec 08, 2006Nimbostratus
1 VS and 2 Pools
I'm new to IRULES and I'm having an issue with converting a 4.5 rule into a version 9 IRULE. Listed below is the 4.5 rule and below that the IRULE I created (which doesn't work). Any help would be appreciated.
4.5 rule
if (client_addr == 172.0.0.0 netmask 255.0.0.0) {
use pool Release2_DR_Pool
}
else if (client_addr == 10.144.0.0 netmask 255.255.0.0) {
use pool Release2_DR_Pool
}
else {
use pool Touchpoint_COB_Pool
}
9.1.2 IRULE
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 172.0.0.0/8] } {
pool Branchplatform_Citizens_pool
}
if { [IP::addr [IP::client_addr] equals 10.144.0.0/16] } {
pool Branchplatform_Citizens_pool
} else {
pool Branchplatform_COB_pool
}
}
Thanks in advance
Chuck