| 1 |
This section describes all the available tests provided by the ANTA package. |
| 2 |
|
| 3 |
## Available Tests |
| 4 |
|
| 5 |
Here are the tests that we currently provide: |
| 6 |
|
| 7 |
- [AAA](../api/tests/aaa.md) |
| 8 |
- [Adaptive Virtual Topology](../api/tests/avt.md) |
| 9 |
- [BFD](../api/tests/bfd.md) |
| 10 |
- [Configuration](../api/tests/configuration.md) |
| 11 |
- [Connectivity](../api/tests/connectivity.md) |
| 12 |
- [CVX](../api/tests/cvx.md) |
| 13 |
- [EVPN](../api/tests/evpn.md) |
| 14 |
- [Field Notices](../api/tests/field_notices.md) |
| 15 |
- [Flow Tracking](../api/tests/flow_tracking.md) |
| 16 |
- [GreenT](../api/tests/greent.md) |
| 17 |
- [Hardware](../api/tests/hardware.md) |
| 18 |
- [Interfaces](../api/tests/interfaces.md) |
| 19 |
- [LANZ](../api/tests/lanz.md) |
| 20 |
- [Logging](../api/tests/logging.md) |
| 21 |
- [MLAG](../api/tests/mlag.md) |
| 22 |
- [Multicast](../api/tests/multicast.md) |
| 23 |
- [Profiles](../api/tests/profiles.md) |
| 24 |
- [PTP](../api/tests/ptp.md) |
| 25 |
- [Router Path Selection](../api/tests/path_selection.md) |
| 26 |
- [Routing Generic](../api/tests/routing.generic.md) |
| 27 |
- [Routing BGP](../api/tests/routing.bgp.md) |
| 28 |
- [Routing ISIS](../api/tests/routing.isis.md) |
| 29 |
- [Routing OSPF](../api/tests/routing.ospf.md) |
| 30 |
- [Security](../api/tests/security.md) |
| 31 |
- [Services](../api/tests/services.md) |
| 32 |
- [SNMP](../api/tests/snmp.md) |
| 33 |
- [Software](../api/tests/software.md) |
| 34 |
- [STP](../api/tests/stp.md) |
| 35 |
- [STUN](../api/tests/stun.md) |
| 36 |
- [System](../api/tests/system.md) |
| 37 |
- [VLAN](../api/tests/vlan.md) |
| 38 |
- [VXLAN](../api/tests/vxlan.md) |
| 39 |
|
| 40 |
!!! tip |
| 41 |
|
| 42 |
You can use `anta get tests` from the CLI to list all the tests available with an example. Refer to [documentation](../cli/get-tests.md) for more options. |
| 43 |
|
| 44 |
## Using the Tests |
| 45 |
|
| 46 |
All these tests can be imported in a [catalog](../usage-inventory-catalog.md) to be used by [the ANTA CLI](../cli/nrfu.md) or in your [own framework](../advanced_usages/as-python-lib.md). |
| 47 |
|
| 48 |
## Atomic result support |
| 49 |
|
| 50 |
Tests marked with the following badge in the documentation support **Atomic Results**: <img alt="Atomic support badge" src="https://img.shields.io/badge/Atomic%20result%20support-brightgreen?style=flat&logoSize=auto"> |
| 51 |
|
| 52 |
This means that when `anta nrfu <command>` is run with the `--expand` flag (currently supported for `table` and `text`), the report expands the test results to show one entry per input. |
| 53 |
|
| 54 |
For instance, consider the following inventory and catalog: |
| 55 |
|
| 56 |
```yaml title="inventory.yml" |
| 57 |
--- |
| 58 |
anta_inventory: |
| 59 |
hosts: |
| 60 |
- host: 10.42.42.42 |
| 61 |
name: pf1 |
| 62 |
``` |
| 63 |
|
| 64 |
```yaml title="catalog.yml" |
| 65 |
--- |
| 66 |
anta.tests.connectivity: |
| 67 |
- VerifyReachability: |
| 68 |
hosts: |
| 69 |
- destination: 8.8.8.8 |
| 70 |
vrf: MGMT |
| 71 |
- destination: 8.8.4.4 |
| 72 |
vrf: default |
| 73 |
``` |
| 74 |
|
| 75 |
**Normal Run:** |
| 76 |
|
| 77 |
{ loading=lazy width="1600" } |
| 78 |
|
| 79 |
**Expanded Run:** |
| 80 |
|
| 81 |
{ loading=lazy width="1600" } |
| 82 |
|
| 83 |
!!! warning |
| 84 |
|
| 85 |
If the command collection fails for any reason, the results for that test will not be expanded. |
| 86 |
This includes command collection failures based on [known EOS errors](../api/commands.md#anta.constants.KNOWN_EOS_ERRORS) tracked by ANTA. |
| 87 |
|
| 88 |
!!! info |
| 89 |
|
| 90 |
If you would like a test to support atomic results, please [open an issue on GitHub](https://github.com/aristanetworks/anta/issues) |