Hi Gord,
You could use the One Time Conversion Utility (OTCU) to convert your 4.5.x configuration to 9.x. Try searching AskF5.com for OTCU to find the relevant 9.x release note description of the OTCU.
It may be faster to manually recreate your rules in the new TCL based format.
Here is an example for your rule above:
when HTTP_REQUEST {
if { [IP::addr [IP::remote_addr] equals 1.2.3.4] }{
pool CMS_GOOGLE_HTTP
}
elseif { [HTTP::cookie exists "author"] && [HTTP::cookie "author"] == "true"} {
pool CMS_AUTHOR_HTTP
}
else {
pool CMS_HTTP
}
}
If you have multiple IP addresses to evaluate, you might want to use a class (datagroup) and matches class:
class my_hosts_networks_class {
network 10.0.0.0 mask 255.0.0.0
host 192.168.0.100
}
if { [matchclass [IP::remote_addr] equals $::my_hosts_networks_class] } {
...
Aaron