Forum Discussion
Gordon_Wong_347
Nimbostratus
Jul 19, 2006Newbie to irules
Gents,
I am a total newbie to irules and my boss has asked me to convert our production bigip 4.5 irules to our lab bigip 9.2 irules...I searched this forum and saw a thread that no conversi...
hoolio
Cirrostratus
Jul 20, 2006Hi 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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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