A policy label is
a user-defined bind point to which policies are bound. When a policy label is
invoked, all the policies bound to it are evaluated in the order of the
priority that you assigned to them. A policy label can include one or more
policies, each of which can be assigned its own result. A match on one policy
in the policy label can result in proceeding to the next policy, invoking a
different policy label or appropriate resource, or an immediate end to policy
evaluation and return of control to the policy that invoked the policy label.
You can create policy labels for default syntax policies only.
For information about policy labels, see the "Creating Policy
switching policy label consists of a name, a label type, and a list of policies
bound to the policy label. The policy label type specifies the protocol that
was assigned to the policies bound to the label. It must match the service type
of the content switching virtual server to which the policy that invokes the
policy label is bound. For example, you can bind TCP Payload policies to a
policy label of type TCP only. Binding TCP Payload policies to a policy label
of type HTTP is not supported.
Each policy in a
content switching policy label is associated with either a target (which is
equivalent to the action that is associated with other types of policies, such
as rewrite and responder policies) or a gotoPriorityExpression option and/or an
invoke option. That is, for a given policy in a content switching policy label,
you can specify a target, or you can set the gotoPriorityExpression option
and/or the invoke option. Additionally, if multiple policies evaluate to true,
only the target of the last policy that evaluates to true is considered.
You can use either
the NetScaler command line or the configuration utility to configure content
switching policy labels. In the NetScaler command-line interface (CLI), you
first create a policy label by using the add cs policylabel command. Then, you
bind policies to the policy label, one policy at a time, by using the bind cs
policylabel command. In the NetScaler configuration utility, you perform both
tasks in a single dialog box.