Performs a test on the name of the current operation. The type of test performed depends on the operator specified by the op attribute. The following table shows the type of test performed by each operator.
Operator |
Returns true when... |
---|---|
equal |
The name of the current operation is exactly equal to content of <if-operation>. Supports variable expansion. |
lt |
The name of the current operation is less than content of the condition when compared using the specified comparison mode. Supports variable expansion. |
gt |
The name of the current operation is greater than content of the condition when compared using the specified comparison mode. Supports variable expansion. |
not-equal |
Equal returns false. |
not-lt |
Less than returns false. |
not-gt |
Greater than returns false. |
<if-operation op="equal">add</if-operation>
#PCDATA
Attribute |
Possible Values |
Default Value |
---|---|---|
disabled |
true | false True if this element is disabled. |
false |
mode |
case| nocase | regex | scr-dn | dest-dn | numeric | octet Comparison mode if op implies a comparison. |
case |
notrace |
true | false True if this element should not be traced during execution of the policy. |
false |
op |
equal | lt | gt | not-equal | not-lt | not-gt Test operator. |
#REQUIRED |
( #PCDATA )