Forum Discussion
Arie
Altostratus
Nov 04, 2011IP::client_addr / netmask addresses in Class (Data Group) - syntax problem
I have a class that contains a list of IP addresses with a netmask (/x). Initially I tried:
if { !( [ class match [IP::client_addr] equals class_CampusIPaddresses ] ) } {
However, that seems to work for 'straight' addresses only (i.e. without netmasks).
Assuming that I'd need to use IP::addr for the netmask match, I tried this:
if { !( [ class match [IP::addr [IP::client_addr]] equals class_CampusIPaddresses ] ) } {
The problem with that is that the editor complains "wrong args" when I try to save it.
Ideas?
6 Replies
No RepliesBe the first to reply
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