...
Match mode controls how multiple condition input lines are matched against the source:
Loose mode verifies that all input lines are present somewhere in the source. Their order is ignored, and any content may appear between matching lines in the source.
Sequential mode requires all input lines to appear in the source in the same order as entered. Additional text/lines may appear between them.
Strict mode requires input lines to appear in the same order as entered and consecutively in the source. No additional text or lines may appear between the matching lines.
Match Mode | Line order matters | Lines must be consecutive |
|---|---|---|
Loose | No | No |
Sequential | Yes | No |
Strict | Yes | Yes |
...
"Source contains" condition type:
Loose mode
Loose mode verifies that all input lines are present somewhere in the source. Their order is ignored, and any content may appear between matching lines in the source.
Example Input 1:
| Code Block | ||
|---|---|---|
| ||
description LAN hostname R1 |
...
The line description WAN does not exist in the source.
Sequential mode
Sequential mode requires all input lines to appear in the source in the same order as entered. Additional text/lines may appear between them.
Example Input 3:
| Code Block | ||
|---|---|---|
| ||
interface Ethernet1 ip address 10.0.0.1/24 |
...
The input lines appear in the source in reverse order.
Strict mode
Strict mode requires input lines to appear in the same order as entered and consecutively in the source. No additional text or lines may appear between the matching lines.
Example Input 5:
| Code Block | ||
|---|---|---|
| ||
interface Ethernet1 description Uplink ip address 10.0.0.1/24 |
...