Note: This feature is currently in beta and is available only to early adopters.
All condition All Compliance Condition types support three match modes:
...
Match mode determines how the order of the Condition input lines or regular expressions affects evaluation of the condition Condition against the selected sourceSource.
Mode | Order required | Content allowed between matches |
|---|---|---|
Loose | No | Yes |
Sequential | Yes | Yes |
Strict | Yes | No |
...
| Code Block | ||
|---|---|---|
| ||
hostname R1 interface Ethernet1 description Uplink ip address 10.0.0.1/24 interface Ethernet2 description LAN ip address 192.168.1.1/24 router ospf network 10.0.0.0/24 area 0 |
...
Suppose the Condition type is "Source contains" and the Condition input is:
| Code Block | ||
|---|---|---|
| ||
interface Ethernet1 ip address 10.0.0.1/24 |
...
The table below shows the Condition evaluation result status for each match mode using the example source and condition Condition input:
Match mode | Condition Status | Explanation |
|---|---|---|
Loose | Successful | Both lines exist in the source. |
Sequential | Successful | The lines appear in the correct order. |
Strict | Failed | The "description Uplink" line appears between them. |
...
Example Input 1:
| Code Block | ||
|---|---|---|
| ||
description LAN hostname R1 |
Result: Condition successful
...
Example Input 2:
| Code Block | ||
|---|---|---|
| ||
ip address 10.0.0.1/24 interface Ethernet1 |
Result: Condition failed
...