Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 the presence of a configuration block

Strict

 

Common use cases:

 TODO

The following are common scenarios where each match mode is particularly useful:

Loose Mode

  • Baseline configuration - Verify required NTP, AAA, logging, and other standard configuration is present.

  • Security hardening - Verify SSH, SNMP, management ACLs, and other security requirements are configured.

Sequential Mode

  • Firewall and ACL rules - Verify rules appear in the required order while allowing other rules between them.

  • Route maps - Verify route-map clauses and their associated configuration appear in the required sequence.

Strict Mode

  • Multiline MOTD banners - Verify the complete banner definition appears as a contiguous block.

  • Interface config blocks - Verify that each switchport has the required description and associated port-security configuration in the expected order without unrelated configuration between the lines.