Arie
Nov 04, 2011Altostratus
IP::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?