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...
hoolio
Cirrostratus
May 04, 2010Hi SMP,
The class contents aren't normally stored in the same order they are listed in the bigip.conf. That was supposed to be the literal log output, but I think I copied a line incorrectly. The first line should have $:: in the datagroup name. The first two log lines of the iRule were intended to show that you could access the datagroup by name with $:: as a prefix when not using TCL list commands. Doing so would break CMP compatibility for the VIP though, so it's better to not use $:: at all in 9.4.4 or higher.
Aaron
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
