Mike_Lowell_456
Nov 03, 2004Historic F5 Account
how do I get "one of" functionality in version 9?
The manual suggests this rule:
START
iRule my_iRule
when CLIENT_ACCEPTED {
if { [IP::remote_addr] eq matchclass aol } {
pool aol_pool
} else {
pool all_pool
}
}
END
And besides the fact that the paranthases are wrong (whoops!) the rule doesn't seem to work. I get a syntax error when trying to load this in my rule:
START
rule routing_rule1 {
when HTTP_REQUEST {
if { matchclass [IP::remote_addr] blacklisted_clients } {
use pool pool_dummy
}
}
}
END
Where “blacklisted_clients” is a valid class list of client IP's, of course.
I heard some an F5 person that the “one of” operator was supposed to work in v9, but I can't find any reference to it in the manual, and I can't make it work for the life of me. Could someone post an example of a simple:
if ( http_uri contains one of myclass ) { use pool blah }
In BIG-IP v9 syntax?
Thanks!
a1l0s2k9