bcao_215270
Aug 07, 2018Nimbostratus
APM IP subnet expression failing to match
Trying to match client ip to IP subnets but can't seem to get the syntax right. I've tried the following expressions below, and a few others, but I keep getting a syntax error. Any help would be appreciated. Thanks.
expr { [IP::addr [mcget {session.user.clientip}] equals "10.10.10.0/24 or 172.16.0.0/27"] }
expr { [IP::addr [mcget {session.user.clientip}] equals "10.10.10.0/24"] or [IP::addr [mcget {session.user.clientip}] equals "172.16.0.0/27"] }