...
Loose
Sequential
Strict
Loose mode - verifies that all input lines must be are present in the source. Their order does not matter, and additional lines may appear between them.
Sequential mode - verifies that all input lines must appear are present in the source in the same order as entered. Additional lines may appear between them.
Strict mode - verifies that all input lines must appear are present in the source in the same order as entered and consecutively in the source. No additional lines may appear between themthe matching lines.
Match mode | Line order matters | Lines must be consecutive |
|---|---|---|
Loose | No | No |
Sequential | Yes | No |
Strict | Yes | Yes |
...
Note: The Compliance module can validate MCP automation outputs in addition to device configurations. To validate an automation output, select Source → Mass Config Push Result on the Compliance preset screen. The same condition types and matching principles described in this article apply when evaluating automation output.
Loose mode:
Loose mode verifies that all input lines are present in the source. Their order does not matter, and additional lines may appear between them.
Source contains
The following examples demonstrate how Loose mode evaluates input lines when using the Source contains condition type.
...
The router ospf line matches the source, but hostname R[A-Z]+ regex does not match hostname R1. Because all input lines must match the source, the condition fails.
Sequential mode:
Sequential mode requires all input lines to be present in the source in the same order as entered. Additional lines may appear between them.
Source contains
The following examples demonstrate how Sequential mode evaluates input lines when using the Source contains condition type.
...
Both lines are present in the source, but they appear in the opposite order. Sequential mode therefore fails.
Strict mode:
Strict mode requires input lines to be present in the same order as entered and consecutively in the source. No additional lines may appear between the matching lines.
Source contains
The following examples demonstrate how Strict mode evaluates input lines when using the Source contains condition type.
...