Forum Discussion
Wil_Schultz_101
Nimbostratus
Jul 02, 2007My iRule stopped working?!
I've got an irule that (to the best of my knowledge anyway) has been working for quite some time, for some strange reason part of it stopped working yesterday. Here is what it looks like:
when...
Deb_Allen_18
Jul 03, 2007Historic F5 Account
Logging will help you see what's going on.
(You shouldn't need to invert your first condition in the else clause -- it's implied when it failed the "if" part.)
I'd test with a simpler rule that includes logging at every decision point, then add conditions as necessary, again logging in each until you have it working the way you want. Start here:
when HTTP_REQUEST {
if {[matchclass [IP::remote_addr] == $::private_net]}{
log local0. "Matched on client IP [IP::remote_addr]"
pool my_pool
} else {
log local0. "No match on client IP [IP::remote_addr]"
pool myother_pool
}
}HTH
/deb
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