summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 08:36:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 08:36:50 +0000
commit7763cc454d686d51bf2e0ccc1f2ccf7d62a0d625 (patch)
treef36d2006dd01bd01a069956741d831d9d5633377 /examples
parentAdding debian version 0.13.0-1. (diff)
downloadanta-7763cc454d686d51bf2e0ccc1f2ccf7d62a0d625.tar.xz
anta-7763cc454d686d51bf2e0ccc1f2ccf7d62a0d625.zip
Merging upstream version 0.14.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/README.md6
-rw-r--r--examples/tests.yaml66
2 files changed, 56 insertions, 16 deletions
diff --git a/examples/README.md b/examples/README.md
index 5c24087..3a166e2 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -1,12 +1,12 @@
## Device Inventory
-The file [inventory.yaml](inventory.yaml) is an example of [device inventory](https://www.anta.ninja/usage-inventory-catalog/#create-an-inventory-file).
+The file [inventory.yaml](inventory.yaml) is an example of [device inventory](https://www.anta.ninja/stable/usage-inventory-catalog/#create-an-inventory-file).
## Test Catalog
-The file [tests.yaml](tests.yaml) is an example of a [test catalog](https://www.anta.ninja/usage-inventory-catalog/#test-catalog).
+The file [tests.yaml](tests.yaml) is an example of a [test catalog](https://www.anta.ninja/stable/usage-inventory-catalog/#test-catalog).
This file should contain all the tests implemented in [anta.tests](../anta/tests) with arbitrary parameters.
## eos-commands.yaml file
-The file [eos-commands.yaml](eos-commands.yaml) is an example of input given with the `--commands-list` option to the [anta exec snapshot](https://www.anta.ninja/cli/exec/#collect-a-set-of-commands) command.
+The file [eos-commands.yaml](eos-commands.yaml) is an example of input given with the `--commands-list` option to the [anta exec snapshot](https://www.anta.ninja/stable/cli/exec/#collect-a-set-of-commands) command.
diff --git a/examples/tests.yaml b/examples/tests.yaml
index 6b5875f..e4445aa 100644
--- a/examples/tests.yaml
+++ b/examples/tests.yaml
@@ -1,7 +1,7 @@
---
anta.tests.aaa:
- VerifyTacacsSourceIntf:
- intf: Management0
+ intf: Management1
vrf: default
- VerifyTacacsServers:
servers:
@@ -79,10 +79,10 @@ anta.tests.configuration:
anta.tests.connectivity:
- VerifyReachability:
hosts:
- - source: Management0
+ - source: Management1
destination: 1.1.1.1
vrf: MGMT
- - source: Management0
+ - source: Management1
destination: 8.8.8.8
vrf: MGMT
- VerifyLLDPNeighbors:
@@ -98,6 +98,10 @@ anta.tests.field_notices:
- VerifyFieldNotice44Resolution:
- VerifyFieldNotice72Resolution:
+anta.tests.greent:
+ - VerifyGreenT:
+ - VerifyGreenTCounters:
+
anta.tests.hardware:
- VerifyTransceiversManufacturers:
manufacturers:
@@ -117,18 +121,19 @@ anta.tests.hardware:
anta.tests.interfaces:
- VerifyInterfaceUtilization:
+ threshold: 70.0
- VerifyInterfaceErrors:
- VerifyInterfaceDiscards:
- VerifyInterfaceErrDisabled:
- VerifyInterfacesStatus:
interfaces:
- - interface: Ethernet1
- state: up
- - interface: Port-Channel100
- state: down
+ - name: Ethernet1
+ status: up
+ - name: Port-Channel100
+ status: down
line_protocol_status: lowerLayerDown
- - interface: Ethernet49/1
- state: adminDown
+ - name: Ethernet49/1
+ status: adminDown
line_protocol_status: notPresent
- VerifyStormControlDrops:
- VerifyPortChannels:
@@ -144,8 +149,8 @@ anta.tests.interfaces:
- Ethernet1: 2500
- VerifyIPProxyARP:
interfaces:
- - Ethernet1
- - Ethernet2
+ - Ethernet1/1
+ - Ethernet2/1
- VerifyL2MTU:
mtu: 1500
ignored_interfaces:
@@ -155,7 +160,7 @@ anta.tests.interfaces:
- Ethernet1/1: 1500
- VerifyInterfaceIPv4:
interfaces:
- - name: Ethernet2
+ - name: Ethernet2/1
primary_ip: 172.30.11.0/31
secondary_ips:
- 10.10.10.0/31
@@ -163,10 +168,13 @@ anta.tests.interfaces:
- VerifyIpVirtualRouterMac:
mac_address: 00:1c:73:00:dc:01
+anta.tests.lanz:
+ - VerifyLANZ:
+
anta.tests.logging:
- VerifyLoggingPersistent:
- VerifyLoggingSourceIntf:
- interface: Management0
+ interface: Management1
vrf: default
- VerifyLoggingHosts:
hosts:
@@ -208,6 +216,14 @@ anta.tests.profiles:
- VerifyTcamProfile:
profile: vxlan-routing
+anta.tests.ptp:
+ - VerifyPtpModeStatus:
+ - VerifyPtpGMStatus:
+ gmid: 0xec:46:70:ff:fe:00:ff:a9
+ - VerifyPtpLockStatus:
+ - VerifyPtpOffset:
+ - VerifyPtpPortModeStatus:
+
anta.tests.security:
- VerifySSHStatus:
- VerifySSHIPv4Acl:
@@ -264,6 +280,17 @@ anta.tests.security:
action: permit icmp any any
- sequence: 20
action: permit tcp any any range 5900 5910
+ - VerifyIPSecConnHealth:
+ - VerifySpecificIPSecConn:
+ ip_security_connections:
+ - peer: 10.255.0.1
+ - peer: 10.255.0.2
+ vrf: default
+ connections:
+ - source_address: 100.64.3.2
+ destination_address: 100.64.2.2
+ - source_address: 172.18.3.2
+ destination_address: 172.18.2.2
anta.tests.services:
- VerifyHostname:
@@ -331,6 +358,18 @@ anta.tests.stp:
- 10
- 20
+anta.tests.stun:
+ - VerifyStunClient:
+ stun_clients:
+ - source_address: 172.18.3.2
+ public_address: 172.18.3.21
+ source_port: 4500
+ public_port: 6006
+ - source_address: 100.64.3.2
+ public_address: 100.64.3.21
+ source_port: 4500
+ public_port: 6006
+
anta.tests.system:
- VerifyUptime:
minimum: 86400
@@ -475,3 +514,4 @@ anta.tests.routing:
- VerifyOSPFNeighborState:
- VerifyOSPFNeighborCount:
number: 3
+ - VerifyOSPFMaxLSA: