Merging upstream version 1.2.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 11:55:22 +01:00
parent ae7b7df396
commit afeccccd6a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
154 changed files with 7346 additions and 5000 deletions

View file

@ -0,0 +1,54 @@
╭────────────────────── Settings ──────────────────────╮
│ - ANTA Inventory contains 5 devices (AsyncEOSDevice) │
│ - Tests catalog contains 9 tests │
╰──────────────────────────────────────────────────────╯
[10:53:11] INFO Preparing ANTA NRFU Run ... tools.py:294
INFO Connecting to devices ... tools.py:294
INFO Connecting to devices completed in: 0:00:00.053. tools.py:302
INFO Preparing the tests ... tools.py:294
INFO Preparing the tests completed in: 0:00:00.001. tools.py:302
INFO --- ANTA NRFU Run Information --- runner.py:276
Number of devices: 5 (5 established)
Total number of selected tests: 45
Maximum number of open file descriptors for the current ANTA process: 16384
---------------------------------
INFO Preparing ANTA NRFU Run completed in: 0:00:00.065. tools.py:302
INFO Running ANTA tests ... tools.py:294
[10:53:12] INFO Running ANTA tests completed in: 0:00:00.857. tools.py:302
INFO Cache statistics for 's1-spine1': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-spine2': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf1': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf2': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf3': 1 hits / 9 command(s) (11.11%) runner.py:75
• Running NRFU Tests...100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45/45 • 0:00:00 • 0:00:00
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ JSON results │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
[
{
"name": "s1-spine1",
"test": "VerifyNTP",
"categories": [
"system"
],
"description": "Verifies if NTP is synchronised.",
"result": "success",
"messages": [],
"custom_field": null
},
{
"name": "s1-spine1",
"test": "VerifyMlagConfigSanity",
"categories": [
"mlag"
],
"description": "Verifies there are no MLAG config-sanity inconsistencies.",
"result": "skipped",
"messages": [
"MLAG is disabled"
],
"custom_field": null
},
[...]

View file

@ -0,0 +1,9 @@
anta nrfu \
--username arista \
--password arista \
--inventory ./inventory.yml \
`# uncomment the next two lines if you have an enable password `\
`# --enable `\
`# --enable-password <password> `\
--catalog ./catalog.yml \
json

View file

@ -0,0 +1,47 @@
╭────────────────────── Settings ──────────────────────╮
│ - ANTA Inventory contains 5 devices (AsyncEOSDevice) │
│ - Tests catalog contains 9 tests │
╰──────────────────────────────────────────────────────╯
[10:53:01] INFO Preparing ANTA NRFU Run ... tools.py:294
INFO Connecting to devices ... tools.py:294
INFO Connecting to devices completed in: 0:00:00.058. tools.py:302
INFO Preparing the tests ... tools.py:294
INFO Preparing the tests completed in: 0:00:00.001. tools.py:302
INFO --- ANTA NRFU Run Information --- runner.py:276
Number of devices: 5 (5 established)
Total number of selected tests: 45
Maximum number of open file descriptors for the current ANTA process: 16384
---------------------------------
INFO Preparing ANTA NRFU Run completed in: 0:00:00.069. tools.py:302
INFO Running ANTA tests ... tools.py:294
[10:53:02] INFO Running ANTA tests completed in: 0:00:00.969. tools.py:302
INFO Cache statistics for 's1-spine1': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-spine2': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf1': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf2': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf3': 1 hits / 9 command(s) (11.11%) runner.py:75
• Running NRFU Tests...100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45/45 • 0:00:00 • 0:00:00
All tests results
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Device ┃ Test Name ┃ Test Status ┃ Message(s) ┃ Test description ┃ Test category ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ s1-spine1 │ VerifyMlagConfigSanity │ skipped │ MLAG is disabled │ Verifies there are no MLAG config-sanity │ MLAG │
│ │ │ │ │ inconsistencies. │ │
├───────────┼──────────────────────────┼─────────────┼────────────────────────────────────────────┼────────────────────────────────────────────┼───────────────┤
│ s1-spine1 │ VerifyEOSVersion │ failure │ device is running version │ Verifies the EOS version of the device. │ Software │
│ │ │ │ "4.32.2F-38195967.4322F (engineering │ │ │
│ │ │ │ build)" not in expected versions: │ │ │
│ │ │ │ ['4.25.4M', '4.26.1F', │ │ │
│ │ │ │ '4.28.3M-28837868.4283M (engineering │ │ │
│ │ │ │ build)'] │ │ │
├───────────┼──────────────────────────┼─────────────┼────────────────────────────────────────────┼────────────────────────────────────────────┼───────────────┤
[...]
├───────────┼──────────────────────────┼─────────────┼────────────────────────────────────────────┼────────────────────────────────────────────┼───────────────┤
│ s1-leaf3 │ VerifyTerminAttrVersion │ failure │ device is running TerminAttr version │ Verifies the TerminAttr version of the │ Software │
│ │ │ │ v1.34.0 and is not in the allowed list: │ device. │ │
│ │ │ │ ['v1.22.1'] │ │ │
├───────────┼──────────────────────────┼─────────────┼────────────────────────────────────────────┼────────────────────────────────────────────┼───────────────┤
│ s1-leaf3 │ VerifyZeroTouch │ success │ │ Verifies ZeroTouch is disabled │ Configuration │
└───────────┴──────────────────────────┴─────────────┴────────────────────────────────────────────┴────────────────────────────────────────────┴───────────────┘

View file

@ -0,0 +1,10 @@
anta nrfu \
--username arista \
--password arista \
--inventory ./inventory.yml \
`# uncomment the next two lines if you have an enable password `\
`# --enable` \
`# --enable-password <password>` \
--catalog ./catalog.yml \
`# table is default if not provided` \
table

View file

@ -0,0 +1,30 @@
╭────────────────────── Settings ──────────────────────╮
│ - ANTA Inventory contains 5 devices (AsyncEOSDevice) │
│ - Tests catalog contains 9 tests │
╰──────────────────────────────────────────────────────╯
[10:52:39] INFO Preparing ANTA NRFU Run ... tools.py:294
INFO Connecting to devices ... tools.py:294
INFO Connecting to devices completed in: 0:00:00.057. tools.py:302
INFO Preparing the tests ... tools.py:294
INFO Preparing the tests completed in: 0:00:00.001. tools.py:302
INFO --- ANTA NRFU Run Information --- runner.py:276
Number of devices: 5 (5 established)
Total number of selected tests: 45
Maximum number of open file descriptors for the current ANTA process: 16384
---------------------------------
INFO Preparing ANTA NRFU Run completed in: 0:00:00.068. tools.py:302
INFO Running ANTA tests ... tools.py:294
[10:52:40] INFO Running ANTA tests completed in: 0:00:00.863. tools.py:302
INFO Cache statistics for 's1-spine1': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-spine2': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf1': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf2': 1 hits / 9 command(s) (11.11%) runner.py:75
INFO Cache statistics for 's1-leaf3': 1 hits / 9 command(s) (11.11%) runner.py:75
• Running NRFU Tests...100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45/45 • 0:00:00 • 0:00:00
s1-spine1 :: VerifyEOSVersion :: FAILURE(device is running version "4.32.2F-38195967.4322F (engineering build)" not in expected versions: ['4.25.4M', '4.26.1F',
'4.28.3M-28837868.4283M (engineering build)'])
s1-spine1 :: VerifyTerminAttrVersion :: FAILURE(device is running TerminAttr version v1.34.0 and is not in the allowed list: ['v1.22.1'])
s1-spine1 :: VerifyZeroTouch :: SUCCESS()
s1-spine1 :: VerifyMlagConfigSanity :: SKIPPED(MLAG is disabled)

View file

@ -0,0 +1,9 @@
anta nrfu \
--username arista \
--password arista \
--inventory ./inventory.yml \
`# uncomment the next two lines if you have an enable password `\
`# --enable` \
`# --enable-password <password>` \
--catalog ./catalog.yml \
text

View file

@ -0,0 +1,24 @@
---
anta.tests.software:
- VerifyEOSVersion: # Verifies the device is running one of the allowed EOS version.
versions: # List of allowed EOS versions.
- 4.25.4M
- 4.26.1F
- '4.28.3M-28837868.4283M (engineering build)'
- VerifyTerminAttrVersion:
versions:
- v1.22.1
anta.tests.system:
- VerifyUptime: # Verifies the device uptime is higher than a value.
minimum: 1
- VerifyNTP:
anta.tests.mlag:
- VerifyMlagStatus:
- VerifyMlagInterfaces:
- VerifyMlagConfigSanity:
anta.tests.configuration:
- VerifyZeroTouch: # Verifies ZeroTouch is disabled.
- VerifyRunningConfigDiffs:

View file

@ -0,0 +1,20 @@
anta_inventory:
hosts:
- host: 192.168.0.10
name: s1-spine1
tags: ['fabric', 'spine']
- host: 192.168.0.11
name: s1-spine2
tags: ['fabric', 'spine']
- host: 192.168.0.12
name: s1-leaf1
tags: ['fabric', 'leaf']
- host: 192.168.0.13
name: s1-leaf2
tags: ['fabric', 'leaf']
- host: 192.168.0.14
name: s1-leaf3
tags: ['fabric', 'leaf']
- host: 192.168.0.15
name: s1-leaf3
tags: ['fabric', 'leaf']