Conditions

Conditions in a policy are events that can trigger actions. Use the policy command with condition add to define the conditions in a policy. For example:

(config) # policy alias MapMonitor condition add PortDown param portId 2/3/q2

For example, refer to the template for the PortDown condition as follows:

The link of port <$portId$> is down for a period of [$period$] second(s).

In the example, the mandatory PortId keyword has been specified with a value of 2/3/q2.

There is also an optional period keyword that can be specified in the condition. For example:

(config) # policy alias MapMonitor condition add PortDown param portId 2/3/q2 param period 120

These examples define a port down condition for port 2/3/q2. When used in a policy, the condition in the first example will be met when the port is down. In the second example, the condition will be met when the port is down for a period of 120 seconds.

How to Specify Keywords in Conditions

The syntax for specifying keywords in conditions is described in the following sections: