APM variable assign examples
Problem this snippet solves: APM variable assign is a powerful tool to manipulate APM variable during policy evaluation supporting tcl code.
On Devcentral answers, there are lots of variable assig...
Updated Jun 05, 2023
Version 2.0stan_piron
Cumulonimbus
Steph
Nimbostratus
Mar 06, 2019what would be the expression to check if the IP belongs to a specific subnet ? thx in advance
That does not work:
set current_ip [mcget session.user.clientip}] ;
if { $current_ip equals "172.20.0.0/16" } then {
return 1 ;
} else {
return 0 ;
} ;