need help converting the las part of the rue to 9.x

else if (client_addr == 64.191.196.54 netmask 255.255.255.0) {

use pool demo

}

else {

use pool Java

}

on the wiki it uses when but would n’t that start a new rule I need this in the elseif status the begining of the rule uses when http request.

Thanks

Al Tase

With your iRule I’m assuming you want to use pool demo for all addresses in the 64.191.196.* subnet. If that is the case this should do it:

...
} elseif { [IP::addr [IP::remote_addr]/24 equals 64.191.196.0] } {
  pool demo
} else {
  pool Java
}

-Joe