Forum Discussion
smp_86112
Cirrostratus
Apr 28, 2010v9 matchclass and v10 class match iRule commands
I've got a v9 irule that takes action based on whether or not the client IP address is in a data class. The v9 iRule looks like this:
if { [matchclass [IP::remote_addr] equals $::allow...
brad_11480
Nimbostratus
Jul 13, 2010okay so when upgrading from v9 to v10 the class definitions are not altered?
at least that is what I have observed.
So in v9 i am using a 'findclass' command to return the value for a string.
does this still work when going to v10 or is a code change required??
class class_table {
{
"/testit pool_testit"
"/othertest pool_anothertest"
}
}
commands:
when HTTP_REQUEST {
set myURI [string tolower [URI::decode [HTTP::uri]]]
set target [findclass $myURI $::class_table ""]
:
so is the value of target returned in v10 the same as v9?
in v9 if $myURI is the value of /testit
$target would be pool_testit
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
