...
The source contains the line "description Uplink" between the two input lines. Strict mode therefore fails.
Choosing the Right Match Mode
...
Use case
...
Recommended mode
...
Verify several independent configuration lines exist in the source
...
Loose
...
Verify the presence and order of configuration commands in the source
...
Sequential
...
Verify an exact configuration block
...
Strict
Regex matching condition types:
The same three match modes apply when using regex matching condition types. Each regex line in the input is evaluated against lines in the source, and the match mode governs whether the matches must occur in order and whether intervening unmatched lines are permitted.
Choosing the Right Match Mode
Use case | Recommended mode |
|---|---|
Verify several independent configuration lines exist in the source | Loose |
Verify the presence and order of configuration commands in the source | Sequential |
Verify an exact configuration block | Strict |