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
Apr 28, 2010I think the issue with using the $:: prefix for a datagroup is if you're trying to use a TCL list command with it. Instead you should use [class get v10_datagroup] to get the class contents as a list. I expect using $:: in class match or matchclass will just break CMP if the platform/module combo you're using supports it.
This should work fine in v10:
if { [class match [IP::remote_addr] equals allowed_clients] } {
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
