Using Reference Policies

Multiple policies that share the same conditions can be simplified by including the common conditions in a parent policy and any unique conditions in reference policies. During execution, the common conditions are only evaluated once.

For example, consider the following policies, which apply tiers to session requests. Each policy uses the same conditions, and the Policy Rules Engine evaluates the same conditions up to three times:

Bronze Policy
where the request is creating a new session
   and where the flow is an application flow
   and where the AF-Application-ID matches one of voip
   and where the tier is one of Bronze
apply bronze to request
accept message
Silver Policy
where the request is creating a new session
   and where the flow is an application flow
   and where the AF-Application-ID matches one of voip
   and where the tier is one of Silver
apply silver to request
accept message
Gold Policy
where the request is creating a new session
   and where the flow is an application flow
   and where the AF-Application-ID matches one of voip
   and where the tier is one of Gold
apply gold to request
accept message

The same results can be obtained using a parent policy and the reference policies Bronze Policy, Silver Policy, and Gold Policy contained in a policy group named Tier Policies:

where the request is creating a new session
   and where the flow is an application flow
   and where the AF-Application-ID matches one of voip
evaluate policy group Tier Policies
   Bronze Policy
   where the tier is one of Bronze
   apply bronze to request
   accept message
   Silver Policy
   where the tier is one of Silver
   apply silver to request
   accept message
   Gold Policy
   where the tier is one of Gold
   apply gold to request
   accept message