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 06, 2023
Version 2.0Stanislas_Piro2
Cumulonimbus
Joined January 04, 2011
Steph
Mar 06, 2019Nimbostratus
what 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 ;
} ;