ADC

Classic expressions in advanced policy expressions

Warning

Classic policy expressions are no longer supported from Citrix ADC 12.0 build 56.20 onwards and as an alternative, Citrix recommends you to use Advanced policies.  For more information, see Configure advanced policy expressions: Get started.

Classic expressions describe basic characteristics of traffic. In some cases, you may want to use a classic expression in an Advanced policy expression are no longer supported from Citrix ADC 12.0 build 56.20 onwards and as an alternative, Citrix recommends you to use Advanced policies.  For more information, see Advanced Policies topic.  You can do so with the Advanced policy expression configuration tool. This can be helpful when manually migrating the older classic expressions to the Advanced policy.

Note that when you upgrade the Citrix ADC to version 9.0 or higher, Integrated Caching policies are automatically upgraded to Advanced policies, and the expressions in these policies are upgraded to the Advanced policies.

The following is the syntax for all Advanced policy expressions that use a classic expression:

SYS.EVAL_CLASSIC_EXPR(“expression”)

Note

The syntax and the metadata  for the SYS.EVAL_CLASSIC_EXPR expression is getting deprecated. You can manually convert or use nspepi tool to convert the Classic expression to advanced expression.

Following are examples of the SYS.EVAL_CLASSIC_EXPR(“expression”) expression:

sys.eval_classic_expr("req.ssl.client.cipher.bits > 1000")
sys.eval_classic_expr("url contains abc")
sys.eval_classic_expr("req.ip.sourceip == 10.102.1.61 -netmask 255.255.255.255")
sys.eval_classic_expr("time >= *:30:00GMT")
sys.eval_classic_expr("e1 || e2")
sys.eval_classic_expr("req.http.urllen > 50")
sys.eval_classic_expr("dayofweek == wedGMT")
<!--NeedCopy-->
Classic expressions in advanced policy expressions