1
0
Fork 0
anta/examples/README.md
Daniel Baumann 2044ea6182
Merging upstream version 1.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-05 11:54:55 +01:00

2.3 KiB

ANTA Example files

This section provides some examples about how to use ANTA as listed in the documentation.

Device Inventory

The file inventory.yaml is an example of device inventory.

Test Catalog

The file tests.yaml is an example of a test catalog. This file should contain all the tests implemented in anta.tests with arbitrary parameters.

Commands to get from snapshot

The file eos-commands.yaml is an example of input given with the --commands-list option to the anta exec snapshot command.

ANTA runner in Python

The file is an example demonstrating how to run ANTA using a Python script.

ANTA template for results rendering

This file is a simple Jinja2 file to customize ANTA CLI output as documented in cli documentation.

Merge multiple catalogs

This file is an example demonstrating how to merge multiple catalogs into a single catalog and save it to a file, as documented in usage test catalog.

Run multiple commands

This file is an example demonstrating how to run multiple commands on multiple devices, as documented in advanced usages.

Parse ANTA inventory file

This file is an example demonstrating how to parse an ANTA inventory file, as documented in advanced usages.