Debian Codegraph @

examples/tests.yaml

raw symbols SCIP
1 ---
2 anta.tests.aaa:
3 - VerifyAcctConsoleMethods:
4 # Verifies the AAA accounting console method lists for different accounting types (system, exec, commands, dot1x).
5 methods:
6 - local
7 - none
8 - logging
9 types:
10 - system
11 - exec
12 - commands
13 - dot1x
14 - VerifyAcctDefaultMethods:
15 # Verifies the AAA accounting default method lists for different accounting types (system, exec, commands, dot1x).
16 methods:
17 - local
18 - none
19 - logging
20 types:
21 - system
22 - exec
23 - commands
24 - dot1x
25 - VerifyAuthenMethods:
26 # Verifies the AAA authentication method lists for different authentication types (login, enable, dot1x).
27 methods:
28 - local
29 - none
30 - logging
31 types:
32 - login
33 - enable
34 - dot1x
35 - VerifyAuthzMethods:
36 # Verifies the AAA authorization method lists for different authorization types (commands, exec).
37 methods:
38 - local
39 - none
40 - logging
41 types:
42 - commands
43 - exec
44 - VerifyTacacsServerGroups:
45 # Verifies if the provided TACACS server group(s) are configured.
46 groups:
47 - TACACS-GROUP1
48 - TACACS-GROUP2
49 - VerifyTacacsServers:
50 # Verifies TACACS servers are configured for a specified VRF.
51 servers:
52 - 10.10.10.21
53 - 10.10.10.22
54 vrf: MGMT
55 - VerifyTacacsSourceIntf:
56 # Verifies TACACS source-interface for a specified VRF.
57 intf: Management0
58 vrf: MGMT
59 anta.tests.avt:
60 - VerifyAVTPathHealth:
61 # Verifies the status of all AVT paths for all VRFs.
62 - VerifyAVTRole:
63 # Verifies the AVT role of a device.
64 role: edge
65 - VerifyAVTSpecificPath:
66 # Verifies the Adaptive Virtual Topology (AVT) path.
67 avt_paths:
68 - avt_name: CONTROL-PLANE-PROFILE
69 vrf: default
70 destination: 10.101.255.2
71 next_hop: 10.101.255.1
72 path_type: direct
73 anta.tests.bfd:
74 - VerifyBFDPeersHealth:
75 # Verifies the health of BFD peers across all VRFs.
76 down_threshold: 2
77 - VerifyBFDPeersIntervals:
78 # Verifies the operational timers of BFD peer sessions.
79 bfd_peers:
80 # Multi-hop session in VRF default
81 - peer_address: 192.0.255.8
82 tx_interval: 3600
83 rx_interval: 3600
84 multiplier: 3
85 # Multi-hop session in VRF DEV
86 - peer_address: 192.0.255.7
87 vrf: DEV
88 tx_interval: 3600
89 rx_interval: 3600
90 multiplier: 3
91 # Single-hop session on local transport interface Ethernet3 in VRF PROD
92 - peer_address: 192.168.10.2
93 vrf: PROD
94 interface: Ethernet3
95 tx_interval: 1200
96 rx_interval: 1200
97 multiplier: 3
98 detection_time: 3600 # Optional
99 # IPv6 peers also supported
100 - peer_address: fd00:dc:1::1
101 tx_interval: 1200
102 rx_interval: 1200
103 multiplier: 3
104 detection_time: 3600 # Optional
105 - VerifyBFDPeersRegProtocols:
106 # Verifies the registered protocols of BFD peer sessions.
107 bfd_peers:
108 # Multi-hop session in VRF default
109 - peer_address: 192.0.255.8
110 protocols: [ bgp ]
111 # Multi-hop session in VRF DEV
112 - peer_address: 192.0.255.7
113 vrf: DEV
114 protocols: [ bgp, vxlan ]
115 # Single-hop session on local transport interface Ethernet3 in VRF PROD
116 - peer_address: 192.168.10.2
117 vrf: PROD
118 interface: Ethernet3
119 protocols: [ ospf ]
120 detection_time: 3600 # Optional
121 # IPv6 peers also supported
122 - peer_address: fd00:dc:1::1
123 protocols: [ isis ]
124 - VerifyBFDSpecificPeers:
125 # Verifies the state of BFD peer sessions.
126 bfd_peers:
127 # Multi-hop session in VRF default
128 - peer_address: 192.0.255.8
129 # Multi-hop session in VRF DEV
130 - peer_address: 192.0.255.7
131 vrf: DEV
132 # Single-hop session on local transport interface Ethernet3 in VRF PROD
133 - peer_address: 192.168.10.2
134 vrf: PROD
135 interface: Ethernet3
136 # IPv6 peers also supported
137 - peer_address: fd00:dc:1::1
138 anta.tests.configuration:
139 - VerifyRunningConfig:
140 # Verifies the running-config against a set of rules.
141 rules:
142
143 # ━━━ TOP-LEVEL COMMANDS ━━━
144 # When section is omitted, entries are checked against top-level
145 # commands of the running-config.
146
147 # exact (default mode) — command must exist verbatim
148 - entries:
149 - match: "aaa authorization exec default local"
150 description: "AAA authorization"
151
152 # exact + absent — command must NOT exist
153 - entries:
154 - match: "enable password"
155 absent: true
156 description: "No static enable password"
157
158 # contains — at least one command must contain this substring
159 - entries:
160 - match: "ntp server"
161 mode: contains
162 description: "NTP server configured"
163
164 # contains + absent — no command may contain this substring
165 - entries:
166 - match: "snmp-server community"
167 mode: contains
168 absent: true
169 description: "No SNMP community strings"
170
171 # regex — at least one command must match this pattern
172 - entries:
173 - match: "logging host \\S+"
174 mode: regex
175 description: "Remote syslog configured"
176
177 # regex + absent — no command may match this pattern
178 - entries:
179 - match: "username .* secret 0 "
180 mode: regex
181 absent: true
182 description: "No plaintext secrets"
183
184 # ━━━ SINGLE SECTION ━━━
185 # Target a specific running-config section. Each element uses exact key
186 # lookup first, falling back to a regex fullmatch.
187
188 # Multiple entries validated within the same section
189 - section: ["management api http-commands"]
190 entries:
191 - match: "no shutdown"
192 description: "eAPI enabled"
193 - match: "protocol http"
194 mode: contains
195 absent: true
196 description: "No plaintext HTTP"
197
198 # ━━━ THRESHOLD CHECKS ━━━
199 # Compare a captured numeric value against a bound.
200 # Requires mode: regex with a capture group.
201
202 # ge — captured value must be >= threshold
203 - section: ["interface Ethernet1"]
204 entries:
205 - match: "mtu (\\d+)"
206 mode: regex
207 description: "Uplink MTU"
208 threshold:
209 value: 1500
210 operator: ge
211
212 # eq — captured value must equal threshold (default operator)
213 - section: ["router bgp \\d+"]
214 entries:
215 - match: "graceful-restart restart-time (\\d+)"
216 mode: regex
217 description: "BGP graceful-restart timer"
218 threshold:
219 value: 300
220 operator: eq
221
222 # le — captured value must be <= threshold
223 - section: ["router bgp \\d+"]
224 entries:
225 - match: "maximum-paths (\\d+)"
226 mode: regex
227 description: "BGP ECMP paths"
228 threshold:
229 value: 4
230 operator: le
231
232 # ━━━ NESTED SECTIONS ━━━
233 # Navigate multiple nested sections of the running-config.
234
235 - section: ["management api http-commands", "vrf MGMT"]
236 entries:
237 - match: "no shutdown"
238 description: "eAPI enabled in MGMT VRF"
239
240 - section: ["router bgp \\d+", "address-family evpn"]
241 entries:
242 - match: "neighbor EVPN-OVERLAY-PEERS activate"
243
244 # ━━━ WILDCARD SECTIONS ━━━
245 # Regex patterns matching multiple sections. Each match
246 # produces its own independent atomic result.
247
248 # All Ethernet interfaces must have a description
249 - section: ["interface Ethernet\\d+"]
250 entries:
251 - match: "description"
252 mode: contains
253 description: "Ethernet description"
254
255 # All BGP VRFs must have a router-id
256 - section: ["router bgp \\d+", "vrf .*"]
257 entries:
258 - match: "router-id"
259 mode: contains
260 description: "BGP VRF router-id"
261
262 # Wildcard + threshold — fleet-wide MTU check
263 - section: ["interface Ethernet\\d+$"]
264 entries:
265 - match: "mtu (\\d+)"
266 mode: regex
267 description: "Global MTU policy"
268 threshold:
269 value: 1500
270 operator: ge
271
272 # ━━━ SECTION EXISTENCE CHECK ━━━
273 # Use entries: [] to verify a section exists without checking commands.
274
275 - section: ["router bgp \\d+"]
276 entries: []
277 - VerifyRunningConfigDiffs:
278 # Verifies there is no difference between the running-config and the startup-config.
279 - VerifyRunningConfigLines:
280 # Search the Running-Config for the given RegEx patterns.
281 regex_patterns:
282 - "^enable password.*$"
283 - "bla bla"
284 - VerifyZeroTouch:
285 # Verifies ZeroTouch is disabled.
286 anta.tests.connectivity:
287 - VerifyLLDPNeighbors:
288 # Verifies the connection status of the specified LLDP (Link Layer Discovery Protocol) neighbors.
289 require_fqdn: False
290 neighbors:
291 - port: Ethernet1
292 neighbor_device: DC1-SPINE1
293 neighbor_port: Ethernet1
294 - port: Ethernet2
295 neighbor_device: dc1-leaf2-server1
296 neighbor_port: iLO
297 - VerifyLLDPNeighbors:
298 require_fqdn: True
299 neighbors:
300 - port: Ethernet1
301 neighbor_device: DC1-SPINE1.local.com
302 neighbor_port: Ethernet1
303 - VerifyReachability:
304 # Test network reachability to one or many destination IP(s).
305 hosts:
306 - source: Management0
307 destination: 1.1.1.1
308 vrf: MGMT
309 df_bit: True
310 size: 100
311 reachable: true
312 - destination: 8.8.8.8
313 vrf: MGMT
314 df_bit: True
315 size: 100
316 - source: fd12:3456:789a:1::1
317 destination: fd12:3456:789a:1::2
318 vrf: default
319 df_bit: True
320 size: 100
321 reachable: false
322 anta.tests.cvx:
323 - VerifyActiveCVXConnections:
324 # Verifies the number of active CVX Connections.
325 connections_count: 100
326 - VerifyCVXClusterStatus:
327 # Verifies the CVX Server Cluster status.
328 role: Master
329 peer_status:
330 - peer_name : cvx-red-2
331 registration_state: Registration complete
332 - peer_name: cvx-red-3
333 registration_state: Registration error
334 - VerifyManagementCVX:
335 # Verifies the management CVX global status.
336 enabled: true
337 - VerifyMcsClientMounts:
338 # Verify if all MCS client mounts are in mountStateMountComplete.
339 - VerifyMcsServerMounts:
340 # Verify if all MCS server mounts are in a MountComplete state.
341 connections_count: 100
342 anta.tests.evpn:
343 - VerifyEVPNType5Routes:
344 # Verifies EVPN Type-5 routes for given IP prefixes and VNIs.
345 prefixes:
346 # At least one active/valid path across all RDs
347 - address: 192.168.10.0/24
348 vni: 10
349 # Specific routes each has at least one active/valid path
350 - address: 192.168.20.0/24
351 vni: 20
352 routes:
353 - rd: "10.0.0.1:20"
354 domain: local
355 - rd: "10.0.0.2:20"
356 domain: remote
357 # At least one active/valid path matching the nexthop
358 - address: 192.168.30.0/24
359 vni: 30
360 routes:
361 - rd: "10.0.0.1:30"
362 domain: local
363 paths:
364 - nexthop: 10.1.1.1
365 # At least one active/valid path matching nexthop and specific RTs
366 - address: 192.168.40.0/24
367 vni: 40
368 routes:
369 - rd: "10.0.0.1:40"
370 domain: local
371 paths:
372 - nexthop: 10.1.1.1
373 route_targets:
374 - "40:40"
375 anta.tests.field_notices:
376 - VerifyFieldNotice44Resolution:
377 # Verifies that the device is using the correct Aboot version per FN0044.
378 - VerifyFieldNotice72Resolution:
379 # Verifies if the device is exposed to FN0072, and if the issue has been mitigated.
380 anta.tests.flow_tracking:
381 - VerifyHardwareFlowTrackerStatus:
382 # Verifies the hardware flow tracking state.
383 trackers:
384 - name: FLOW-TRACKER
385 record_export:
386 on_inactive_timeout: 70000
387 on_interval: 300000
388 exporters:
389 - name: CV-TELEMETRY
390 local_interface: Loopback0
391 template_interval: 3600000
392 anta.tests.greent:
393 - VerifyGreenT:
394 # Verifies if a GreenT policy other than the default is created.
395 - VerifyGreenTCounters:
396 # Verifies if the GreenT counters are incremented.
397 anta.tests.hardware:
398 - VerifyAbsenceOfLinecards:
399 # Verifies that specific linecards are not present in the device inventory.
400 serial_numbers:
401 - VJM24220VJ1
402 - VJM24230VJ2
403 - VerifyAdverseDrops:
404 # Verifies there are no adverse drops exceeding defined thresholds.
405 thresholds: # Optional
406 minute: 3
407 ten_minute: 20
408 hour: 100
409 day: 500
410 week: 1000
411 always_fail_on_reassembly_errors: false
412 - VerifyChassisHealth:
413 # Verifies the health of the hardware chassis components.
414 - VerifyEnvironmentCooling:
415 # Verifies the status of power supply fans and all fan trays.
416 states:
417 - ok
418 - VerifyEnvironmentPower:
419 # Verifies the power supplies state and input voltage.
420 states:
421 - ok
422 min_input_voltage: 50 # Optional
423 min_count: 1 # Optional
424 - VerifyEnvironmentSystemCooling:
425 # Verifies the device's system cooling status.
426 - VerifyHardwareCapacityUtilization:
427 # Verifies hardware capacity utilization.
428 capacity_utilization_threshold: 90
429 strict_mode: true
430 - VerifyInventory:
431 # Verifies the physical hardware inventory of the device.
432 # Verify at least 2 power supplies are installed
433 # Strictly check that all fabric card slots are filled
434 # Other components types (fan trays, line cards, supervisors) are ignored
435 requirements:
436 power_supplies: 2
437 fabric_cards: all
438 - VerifyModuleStatus:
439 # Verifies the operational status and power stability of all modules in a modular chassis.
440 # To accept 'ok' or 'poweredOff' statuses for linecards
441 module_statuses:
442 - ok
443 - poweredOff
444 # To test a single-supervisor chassis
445 supervisor_mode: single
446 - VerifyPCIeErrors:
447 # Verifies PCIe device error counters.
448 thresholds: # Optional
449 correctable_errors: 10000
450 non_fatal_errors: 30
451 fatal_errors: 30
452 - VerifySupervisorRedundancy:
453 # Verifies the redundancy protocol configured on the active supervisor.
454 - VerifyTemperature:
455 # Verifies if the device temperature is within acceptable limits.
456 - VerifyTransceiversManufacturers:
457 # Verifies if all the transceivers come from approved manufacturers.
458 manufacturers:
459 - Arista Networks
460 - Arastra, Inc.
461 allow_not_present: true
462 - VerifyTransceiversTemperature:
463 # Verifies if all the transceivers are operating at an acceptable temperature.
464 anta.tests.interfaces:
465 - VerifyIPProxyARP:
466 # Verifies if Proxy ARP is enabled.
467 interfaces:
468 - Ethernet1
469 - Ethernet2
470 - VerifyIllegalLACP:
471 # Verifies there are no illegal LACP packets in port channels.
472 ignored_interfaces:
473 - Port-Channel1
474 - Port-Channel2
475 interfaces:
476 - Port-Channel10
477 - Port-Channel12
478 - VerifyInterfaceDiscards:
479 # Verifies that the interfaces packet discard counters are equal to zero.
480 interfaces:
481 - Ethernet1
482 - Port-Channel1
483 ignored_interfaces:
484 - Vxlan1
485 - Loopback0
486 - VerifyInterfaceErrDisabled:
487 # Verifies there are no interfaces in the errdisabled state.
488 interfaces:
489 - Ethernet1/1
490 ignored_interfaces:
491 - Ethernet1/5
492 - Ethernet1/6
493 - VerifyInterfaceErrors:
494 # Verifies that the interfaces error counters are equal to zero.
495 interfaces:
496 - Ethernet1/1
497 ignored_interfaces:
498 - Ethernet1/5
499 - Ethernet1/6
500 - VerifyInterfaceIPv4:
501 # Verifies the interface IPv4 addresses.
502 interfaces:
503 - name: Ethernet2
504 primary_ip: 172.30.11.1/31
505 secondary_ips:
506 - 10.10.10.1/31
507 - 10.10.10.10/31
508 - VerifyInterfaceUtilization:
509 # Verifies that the utilization of interfaces is below a certain threshold.
510 threshold: 70.0
511 ignored_interfaces:
512 - Ethernet1
513 - Port-Channel1
514 interfaces:
515 - Ethernet10
516 - Loopback0
517 - VerifyInterfacesBER:
518 # Verifies interfaces pre-FEC bit error rate (BER) and FEC uncorrected codewords.
519 interfaces:
520 - Ethernet1/1
521 - Ethernet2/1
522 max_ber_threshold: 1e-6
523 - VerifyInterfacesCounterDetails:
524 # Verifies the interfaces counter details.
525 interfaces: # Optionally target specific interfaces
526 - Ethernet1/1
527 - Ethernet2/1
528 ignored_interfaces: # OR ignore specific interfaces
529 - Management0
530 counters_threshold: 10
531 link_status_changes_threshold: 100
532 - VerifyInterfacesECNCounters:
533 # Verifies the interfaces ECN counters for all queues.
534 interfaces: # Optionally target specific interfaces
535 - Ethernet1/1
536 - Ethernet2/1
537 ignored_interfaces: # OR ignore specific interfaces
538 - Management0
539 counters_threshold: 0
540 - VerifyInterfacesEgressQueueDrops:
541 # Verifies interface egress queue drop counters.
542 interfaces:
543 - Et1
544 - Et2
545 traffic_classes:
546 - TC0
547 - TC3
548 drop_precedences:
549 - DP0
550 - VerifyInterfacesOpticsReceivePower:
551 # Verifies that the receive power levels of optical interface transceivers are within acceptable limits.
552 interfaces: # Optionally target specific interfaces
553 - Ethernet1/1
554 - Ethernet2/1
555 ignored_interfaces: # OR ignore specific interfaces
556 - Ethernet3/1
557 failure_margin: 2
558 ignore_shutdown_interfaces: true
559 - VerifyInterfacesOpticsTemperature:
560 # Verifies that the temperature of optical interface transceivers is within acceptable limits.
561 interfaces: # Optionally target specific interfaces
562 - Ethernet1/1
563 - Ethernet2/1
564 ignored_interfaces: # OR ignore specific interfaces
565 - Ethernet3/1
566 max_transceiver_temperature: 68
567 - VerifyInterfacesPFCCounters:
568 # Verifies the interfaces PFC frame send and receive counters.
569 interfaces: # Optionally target specific interfaces
570 - Ethernet1/1
571 - Ethernet2/1
572 ignored_interfaces: # OR ignore specific interfaces
573 - Management0
574 counters_threshold: 0
575 - VerifyInterfacesSpeed:
576 # Verifies the speed, lanes, auto-negotiation status, and mode as full duplex for interfaces.
577 interfaces:
578 - name: Ethernet2
579 auto: False
580 speed: 10
581 - name: Eth3
582 auto: True
583 speed: 100
584 lanes: 1
585 - name: Eth2
586 auto: False
587 speed: 2.5
588 - VerifyInterfacesStatus:
589 # Verifies the operational states of specified interfaces to ensure they match expected configurations.
590 interfaces:
591 - name: Ethernet1
592 status: up
593 - name: Port-Channel100
594 status: down
595 line_protocol_status: lowerLayerDown
596 - name: Ethernet49/1
597 status: adminDown
598 line_protocol_status: notPresent
599 - VerifyInterfacesTridentCounters:
600 # Verifies the Trident debug counters of all interfaces.
601 ignored_counters:
602 - nonCongestionDiscard
603 - rxFpDrop
604 - rxVlanDrop
605 packet_drop_threshold: 0
606 - VerifyInterfacesVoqAndEgressQueueDrops:
607 # Verifies interface ingress VOQ and egress queue drop counters.
608 interfaces:
609 - Et1
610 - Et2
611 traffic_classes:
612 - TC0
613 - TC3
614 - VerifyIpVirtualRouterMac:
615 # Verifies the IP virtual router MAC address.
616 mac_address: 00:1c:73:00:dc:01
617 - VerifyL2MTU:
618 # Verifies the L2 MTU of bridged interfaces.
619 mtu: 9214
620 ignored_interfaces:
621 - Ethernet2/1
622 - Port-Channel # Ignore all Port-Channel interfaces
623 specific_mtu:
624 - Ethernet1/1: 1500
625 - VerifyL3MTU:
626 # Verifies the L3 MTU of routed interfaces.
627 mtu: 1500
628 ignored_interfaces:
629 - Management # Ignore all Management interfaces
630 - Ethernet2.100
631 - Ethernet1/1
632 specific_mtu:
633 - Ethernet10: 9200
634 - VerifyLACPInterfacesStatus:
635 # Verifies the Link Aggregation Control Protocol (LACP) status of the interface.
636 interfaces:
637 - name: Ethernet1
638 portchannel: Port-Channel100
639 - VerifyLoopbackCount:
640 # Verifies the number of loopback interfaces and their status.
641 number: 3
642 - VerifyPortChannels:
643 # Verifies there are no inactive ports in port channels.
644 ignored_interfaces:
645 - Port-Channel1
646 - Port-Channel2
647 interfaces:
648 - Port-Channel11
649 - Port-Channel22
650 - VerifySVI:
651 # Verifies the status of all SVIs.
652 - VerifyStormControlDrops:
653 # Verifies there are no interface storm-control drop counters.
654 interfaces:
655 - Ethernet1
656 - Ethernet2
657 ignored_interfaces:
658 - Vxlan1
659 - Loopback0
660 anta.tests.lanz:
661 - VerifyLANZ:
662 # Verifies if LANZ is enabled.
663 anta.tests.logging:
664 - VerifyLoggingAccounting:
665 # Verifies if AAA accounting logs are generated.
666 - VerifyLoggingEntries:
667 # Verifies that log strings are present or absent in the logging buffer.
668 logging_entries:
669 - regex_match: ".*ACCOUNTING-5-EXEC: cvpadmin ssh.*"
670 last_number_messages: 30
671 severity_level: alerts
672 - regex_match:
673 - ".*SPANTREE-6-INTERFACE_ADD:.*"
674 - ".*ACCOUNTING-5-EXEC: cvpadmin ssh.*"
675 last_number_time_units: 3
676 time_unit: hours
677 severity_level: critical
678 fail_on_match: True
679 - VerifyLoggingErrors:
680 # Verifies there are no syslog messages with a severity of ERRORS or higher.
681 last_number_time_units: 10
682 time_unit: hours
683 - VerifyLoggingHostname:
684 # Verifies if logs are generated with the device FQDN.
685 severity_level: informational
686 - VerifyLoggingHosts:
687 # Verifies logging hosts (syslog servers) for a specified VRF.
688 hosts:
689 - 1.1.1.1
690 - 2.2.2.2
691 vrf: default
692 - VerifyLoggingLogsGeneration:
693 # Verifies if logs are generated.
694 severity_level: informational
695 - VerifyLoggingPersistent:
696 # Verifies if logging persistent is enabled and logs are saved in flash.
697 - VerifyLoggingSourceIntf:
698 # Verifies logging source-interface for a specified VRF.
699 interface: Management0
700 vrf: default
701 - VerifyLoggingTimestamp:
702 # Verifies if logs are generated with the appropriate timestamp.
703 severity_level: informational
704 - VerifySyslogLogging:
705 # Verifies if syslog logging is enabled.
706 anta.tests.mlag:
707 - VerifyMlagConfigSanity:
708 # Verifies there are no MLAG config-sanity inconsistencies.
709 - VerifyMlagDualPrimary:
710 # Verifies the MLAG dual-primary detection parameters.
711 detection_delay: 200
712 errdisabled: True
713 recovery_delay: 60
714 recovery_delay_non_mlag: 0
715 - VerifyMlagInterfaces:
716 # Verifies there are no inactive or active-partial MLAG ports.
717 - VerifyMlagPrimaryPriority:
718 # Verifies the configuration of the MLAG primary priority.
719 primary_priority: 3276
720 - VerifyMlagReloadDelay:
721 # Verifies the reload-delay parameters of the MLAG configuration.
722 reload_delay: 300
723 reload_delay_non_mlag: 330
724 - VerifyMlagStatus:
725 # Verifies the health status of the MLAG configuration.
726 anta.tests.multicast:
727 - VerifyIGMPSnoopingGlobal:
728 # Verifies the IGMP snooping global status.
729 enabled: True
730 - VerifyIGMPSnoopingVlans:
731 # Verifies the IGMP snooping status for the provided VLANs.
732 vlans:
733 10: False
734 12: False
735 anta.tests.path_selection:
736 - VerifyPathsHealth:
737 # Verifies the path and telemetry state of all paths under router path-selection.
738 - VerifySpecificPath:
739 # Verifies the DPS path and telemetry state of an IPv4 peer.
740 paths:
741 - peer: 10.255.0.1
742 path_group: internet
743 source_address: 100.64.3.2
744 destination_address: 100.64.1.2
745 anta.tests.profiles:
746 - VerifyTcamProfile:
747 # Verifies the device TCAM profile.
748 profile: vxlan-routing
749 - VerifyUnifiedForwardingTableMode:
750 # Verifies the device is using the expected UFT mode.
751 mode: 3
752 anta.tests.ptp:
753 - VerifyPtpGMStatus:
754 # Verifies that the device is locked to a valid PTP Grandmaster.
755 gmid: 0xec:46:70:ff:fe:00:ff:a9
756 - VerifyPtpLockStatus:
757 # Verifies that the device was locked to the upstream PTP GM in the last minute.
758 - VerifyPtpModeStatus:
759 # Verifies that the device is configured as a PTP Boundary Clock.
760 - VerifyPtpOffset:
761 # Verifies that the PTP timing offset is within +/- 1000ns from the master clock.
762 - VerifyPtpPortModeStatus:
763 # Verifies the PTP interfaces state.
764 anta.tests.routing.bgp:
765 - VerifyBGPAdvCommunities:
766 # Verifies the advertised communities of BGP peers.
767 bgp_peers:
768 - peer_address: 172.30.11.17
769 vrf: default
770 - peer_address: 172.30.11.21
771 vrf: MGMT
772 advertised_communities: ["standard", "extended"]
773 - peer_address: fd00:dc:1::1
774 vrf: default
775 # RFC5549
776 - interface: Ethernet1
777 vrf: default
778 advertised_communities: ["standard", "extended"]
779 - VerifyBGPExchangedRoutes:
780 # Verifies the advertised and received routes of BGP IPv4 peer(s).
781 check_active: True
782 bgp_peers:
783 - peer_address: 172.30.255.5
784 vrf: default
785 advertised_routes:
786 - 192.0.254.5/32
787 received_routes:
788 - 192.0.255.4/32
789 - peer_address: 172.30.255.1
790 vrf: default
791 advertised_routes:
792 - 192.0.255.1/32
793 - 192.0.254.5/32
794 - VerifyBGPNlriAcceptance:
795 # Verifies that all received NLRI are accepted for all AFI/SAFI configured for BGP peers.
796 bgp_peers:
797 - peer_address: 10.100.0.128
798 vrf: default
799 capabilities:
800 - ipv4Unicast
801 - peer_address: 2001:db8:1::2
802 vrf: default
803 capabilities:
804 - ipv6Unicast
805 - peer_address: fe80::2%Et1
806 vrf: default
807 capabilities:
808 - ipv6Unicast
809 # RFC 5549
810 - peer_address: fe80::2%Et1
811 vrf: default
812 capabilities:
813 - ipv6Unicast
814 - VerifyBGPPeerASNCap:
815 # Verifies the four octet ASN capability of BGP peers.
816 bgp_peers:
817 - peer_address: 172.30.11.1
818 vrf: default
819 - peer_address: fd00:dc:1::1
820 vrf: default
821 # RFC5549
822 - interface: Ethernet1
823 vrf: MGMT
824 - VerifyBGPPeerCount:
825 # Verifies the count of BGP peers for given address families.
826 address_families:
827 - afi: "evpn"
828 num_peers: 2
829 - afi: "ipv4"
830 safi: "unicast"
831 vrf: "PROD"
832 num_peers: 2
833 - afi: "ipv4"
834 safi: "unicast"
835 vrf: "default"
836 num_peers: 3
837 - afi: "ipv4"
838 safi: "multicast"
839 vrf: "DEV"
840 num_peers: 3
841 - VerifyBGPPeerDropStats:
842 # Verifies BGP NLRI drop statistics of BGP peers.
843 bgp_peers:
844 - peer_address: 172.30.11.1
845 vrf: default
846 drop_stats:
847 - inDropAsloop
848 - prefixEvpnDroppedUnsupportedRouteType
849 - peer_address: fd00:dc:1::1
850 vrf: default
851 drop_stats:
852 - inDropAsloop
853 - prefixEvpnDroppedUnsupportedRouteType
854 # RFC5549
855 - interface: Ethernet1
856 vrf: MGMT
857 drop_stats:
858 - inDropAsloop
859 - prefixEvpnDroppedUnsupportedRouteType
860 - VerifyBGPPeerGroup:
861 # Verifies BGP peer group of BGP peers.
862 bgp_peers:
863 - peer_address: 172.30.11.1
864 vrf: default
865 peer_group: IPv4-UNDERLAY-PEERS
866 - peer_address: fd00:dc:1::1
867 vrf: default
868 peer_group: IPv4-UNDERLAY-PEERS
869 # RFC5549
870 - interface: Ethernet1
871 vrf: MGMT
872 peer_group: IPv4-UNDERLAY-PEERS
873 - VerifyBGPPeerMD5Auth:
874 # Verifies the MD5 authentication and state of BGP peers.
875 bgp_peers:
876 - peer_address: 172.30.11.1
877 vrf: default
878 - peer_address: 172.30.11.5
879 vrf: default
880 - peer_address: fd00:dc:1::1
881 vrf: default
882 # RFC5549
883 - interface: Ethernet1
884 vrf: default
885 - VerifyBGPPeerMPCaps:
886 # Verifies the multiprotocol capabilities of BGP peers.
887 bgp_peers:
888 - peer_address: 172.30.11.1
889 vrf: default
890 strict: False
891 capabilities:
892 - ipv4 labeled-Unicast
893 - ipv4MplsVpn
894 - peer_address: fd00:dc:1::1
895 vrf: default
896 strict: False
897 capabilities:
898 - ipv4 labeled-Unicast
899 - ipv4MplsVpn
900 # RFC5549
901 - interface: Ethernet1
902 vrf: default
903 strict: False
904 capabilities:
905 - ipv4 labeled-Unicast
906 - ipv4MplsVpn
907 - VerifyBGPPeerRouteLimit:
908 # Verifies maximum routes and warning limit for BGP peers.
909 bgp_peers:
910 - peer_address: 172.30.11.1
911 vrf: default
912 maximum_routes: 12000
913 warning_limit: 10000
914 - peer_address: fd00:dc:1::1
915 vrf: default
916 maximum_routes: 12000
917 warning_limit: 10000
918 # RFC5549
919 - interface: Ethernet1
920 vrf: MGMT
921 maximum_routes: 12000
922 warning_limit: 10000
923 - VerifyBGPPeerRouteRefreshCap:
924 # Verifies the route refresh capabilities of BGP peers.
925 bgp_peers:
926 - peer_address: 172.30.11.1
927 vrf: default
928 - peer_address: fd00:dc:1::1
929 vrf: default
930 # RFC5549
931 - interface: Ethernet1
932 vrf: MGMT
933 - VerifyBGPPeerSession:
934 # Verifies the session state of BGP peers.
935 minimum_established_time: 10000
936 check_tcp_queues: false
937 bgp_peers:
938 - peer_address: 10.1.0.1
939 vrf: default
940 - peer_address: 10.1.0.2
941 vrf: default
942 - peer_address: 10.1.255.2
943 vrf: DEV
944 - peer_address: 10.1.255.4
945 vrf: DEV
946 - peer_address: fd00:dc:1::1
947 vrf: default
948 # RFC5549
949 - interface: Ethernet1
950 vrf: default
951 - interface: Vlan3499
952 vrf: PROD
953 - VerifyBGPPeerSessionRibd:
954 # Verifies the session state of BGP peers.
955 minimum_established_time: 10000
956 check_tcp_queues: false
957 bgp_peers:
958 - peer_address: 10.1.0.1
959 vrf: default
960 - peer_address: 10.1.255.4
961 vrf: DEV
962 - peer_address: fd00:dc:1::1
963 vrf: default
964 # RFC5549
965 - interface: Ethernet1
966 vrf: MGMT
967 - VerifyBGPPeerTtlMultiHops:
968 # Verifies BGP TTL and max-ttl-hops count for BGP peers.
969 bgp_peers:
970 - peer_address: 172.30.11.1
971 vrf: default
972 ttl: 3
973 max_ttl_hops: 3
974 - peer_address: 172.30.11.2
975 vrf: test
976 ttl: 30
977 max_ttl_hops: 30
978 - peer_address: fd00:dc:1::1
979 vrf: default
980 ttl: 30
981 max_ttl_hops: 30
982 # RFC5549
983 - interface: Ethernet1
984 vrf: MGMT
985 ttl: 30
986 max_ttl_hops: 30
987 - VerifyBGPPeerUpdateErrors:
988 # Verifies BGP update error counters of BGP peers.
989 bgp_peers:
990 - peer_address: 172.30.11.1
991 vrf: default
992 update_errors:
993 - inUpdErrWithdraw
994 - peer_address: fd00:dc:1::1
995 vrf: default
996 update_errors:
997 - inUpdErrWithdraw
998 # RFC5549
999 - interface: Ethernet1
1000 vrf: MGMT
1001 update_errors:
1002 - inUpdErrWithdraw
1003 - VerifyBGPPeersHealth:
1004 # Verifies the health of BGP peers for given address families.
1005 minimum_established_time: 10000
1006 address_families:
1007 - afi: "evpn"
1008 - afi: "ipv4"
1009 safi: "unicast"
1010 vrf: "default"
1011 - afi: "ipv6"
1012 safi: "unicast"
1013 vrf: "DEV"
1014 check_tcp_queues: false
1015 - VerifyBGPPeersHealthRibd:
1016 # Verifies the health of all the BGP peers.
1017 check_tcp_queues: True
1018 - VerifyBGPRedistribution:
1019 # Verifies BGP redistribution.
1020 vrfs:
1021 - vrf: default
1022 address_families:
1023 - afi_safi: ipv4multicast
1024 redistributed_routes:
1025 - proto: Connected
1026 include_leaked: True
1027 route_map: RM-CONN-2-BGP
1028 - proto: IS-IS
1029 include_leaked: True
1030 route_map: RM-CONN-2-BGP
1031 - afi_safi: IPv6 Unicast
1032 redistributed_routes:
1033 - proto: User # Converted to EOS SDK
1034 route_map: RM-CONN-2-BGP
1035 - proto: Static
1036 include_leaked: True
1037 route_map: RM-CONN-2-BGP
1038 - VerifyBGPRouteECMP:
1039 # Verifies BGP IPv4 route ECMP paths.
1040 route_entries:
1041 - prefix: 10.100.0.128/31
1042 vrf: default
1043 ecmp_count: 2
1044 - VerifyBGPRoutePaths:
1045 # Verifies BGP IPv4 route paths.
1046 route_entries:
1047 - prefix: 10.100.0.128/31
1048 vrf: default
1049 paths:
1050 - nexthop: 10.100.0.10
1051 origin: Igp
1052 - nexthop: 10.100.4.5
1053 origin: Incomplete
1054 - VerifyBGPSpecificPeers:
1055 # Verifies the health of specific BGP peer(s) for given address families.
1056 minimum_established_time: 10000
1057 address_families:
1058 - afi: "evpn"
1059 peers:
1060 - 10.1.0.1
1061 - 10.1.0.2
1062 - afi: "ipv4"
1063 safi: "unicast"
1064 peers:
1065 - 10.1.254.1
1066 - 10.1.255.0
1067 - 10.1.255.2
1068 - 10.1.255.4
1069 - VerifyBGPTimers:
1070 # Verifies the timers of BGP peers.
1071 bgp_peers:
1072 - peer_address: 172.30.11.1
1073 vrf: default
1074 hold_time: 180
1075 keep_alive_time: 60
1076 - peer_address: 172.30.11.5
1077 vrf: default
1078 hold_time: 180
1079 keep_alive_time: 60
1080 - peer_address: fd00:dc:1::1
1081 vrf: default
1082 hold_time: 180
1083 keep_alive_time: 60
1084 # RFC5549
1085 - interface: Ethernet1
1086 vrf: MGMT
1087 hold_time: 180
1088 keep_alive_time: 60
1089 - VerifyBgpRouteMaps:
1090 # Verifies BGP inbound and outbound route-maps of BGP peers.
1091 bgp_peers:
1092 - peer_address: 172.30.11.1
1093 vrf: default
1094 inbound_route_map: RM-MLAG-PEER-IN
1095 outbound_route_map: RM-MLAG-PEER-OUT
1096 - peer_address: fd00:dc:1::1
1097 vrf: default
1098 inbound_route_map: RM-MLAG-PEER-IN
1099 outbound_route_map: RM-MLAG-PEER-OUT
1100 # RFC5549
1101 - interface: Ethernet1
1102 vrf: MGMT
1103 inbound_route_map: RM-MLAG-PEER-IN
1104 outbound_route_map: RM-MLAG-PEER-OUT
1105 - VerifyEVPNType2Route:
1106 # Verifies the EVPN Type-2 routes for a given IPv4 or MAC address and VNI.
1107 vxlan_endpoints:
1108 - address: 192.168.20.102
1109 vni: 10020
1110 - address: aac1.ab5d.b41e
1111 vni: 10010
1112 anta.tests.routing.generic:
1113 - VerifyIPv4RouteNextHops:
1114 # Verifies the next-hops of the IPv4 prefixes.
1115 route_entries:
1116 - prefix: 10.10.0.1/32
1117 vrf: default
1118 strict: false
1119 nexthops:
1120 - 10.100.0.8
1121 - 10.100.0.10
1122 - VerifyIPv4RoutePresencePerPrefix:
1123 # Verifies that the provided IPv4 prefixes are present in the routing table.
1124 route_entries:
1125 - prefix: 10.10.0.1/32
1126 vrf: default
1127 - prefix: 10.100.0.12/31
1128 vrf: MGMT
1129 - prefix: 10.100.1.5/32
1130 vrf: data
1131 - VerifyIPv4RoutePresencePerVRF:
1132 # Verifies that the provided IPv4 prefixes are present in the routing table.
1133 route_entries:
1134 - prefix: 10.10.0.1/32
1135 vrf: default
1136 - prefix: 10.100.0.12/31
1137 vrf: MGMT
1138 - prefix: 10.100.1.5/32
1139 vrf: data
1140 - VerifyIPv4RouteType:
1141 # Verifies the route-type of the IPv4 prefixes.
1142 routes_entries:
1143 - prefix: 10.10.0.1/32
1144 vrf: default
1145 route_type: eBGP
1146 - prefix: 10.100.0.12/31
1147 vrf: default
1148 route_type: connected
1149 - prefix: 10.100.1.5/32
1150 vrf: default
1151 route_type: iBGP
1152 - VerifyRoutingProtocolModel:
1153 # Verifies the configured routing protocol model.
1154 model: multi-agent
1155 - VerifyRoutingStatus:
1156 # Verifies the routing status for IPv4/IPv6 unicast, multicast, and IPv6 interfaces (RFC5549).
1157 ipv4_unicast: True
1158 ipv6_unicast: True
1159 - VerifyRoutingTableEntry:
1160 # (Deprecated) Verifies that the provided routes are present in the routing table of a specified VRF.
1161 vrf: default
1162 routes:
1163 - 10.1.0.1
1164 - 10.1.0.2
1165 - VerifyRoutingTableSize:
1166 # Verifies the size of the IP routing table.
1167 minimum: 2
1168 maximum: 20
1169 - VerifyRoutingTableSize:
1170 minimum: 1
1171 maximum: 100
1172 vrfs:
1173 - vrf: default
1174 - vrf: MGMT
1175 route_sources:
1176 - source: static
1177 maximum: 10
1178 - vrf: EVPN_TENANT_A
1179 route_sources:
1180 - source: bgp
1181 minimum: 200
1182 maximum: 1000
1183 anta.tests.routing.isis:
1184 - VerifyISISGracefulRestart:
1185 # Verifies the IS-IS graceful restart feature.
1186 instances:
1187 - name: '1'
1188 vrf: default
1189 graceful_restart: True
1190 graceful_restart_helper: False
1191 - name: '2'
1192 vrf: default
1193 - name: '11'
1194 vrf: test
1195 graceful_restart: True
1196 - name: '12'
1197 vrf: test
1198 graceful_restart_helper: False
1199 - VerifyISISInterfaceMode:
1200 # Verifies IS-IS interfaces are running in the correct mode.
1201 interfaces:
1202 - name: Loopback0
1203 mode: passive
1204 - name: Ethernet2
1205 mode: passive
1206 level: 2
1207 - name: Ethernet1
1208 mode: point-to-point
1209 vrf: PROD
1210 - VerifyISISNeighborCount:
1211 # Verifies the number of IS-IS neighbors per interface and level.
1212 interfaces:
1213 - name: Ethernet1
1214 level: 1
1215 count: 2
1216 - name: Ethernet2
1217 level: 2
1218 count: 1
1219 - name: Ethernet3
1220 count: 2
1221 - VerifyISISNeighborState:
1222 # Verifies the health of IS-IS neighbors.
1223 check_all_vrfs: true
1224 - VerifyISISSegmentRoutingAdjacencySegments:
1225 # Verifies IS-IS segment routing adjacency segments.
1226 instances:
1227 - name: CORE-ISIS
1228 vrf: default
1229 segments:
1230 - interface: Ethernet2
1231 address: 10.0.1.3
1232 sid_origin: dynamic
1233 - VerifyISISSegmentRoutingDataplane:
1234 # Verifies IS-IS segment routing data-plane configuration.
1235 instances:
1236 - name: CORE-ISIS
1237 vrf: default
1238 dataplane: MPLS
1239 - VerifyISISSegmentRoutingTunnels:
1240 # Verify ISIS-SR tunnels computed by device.
1241 entries:
1242 # Check only endpoint
1243 - endpoint: 1.0.0.122/32
1244 # Check endpoint and via TI-LFA
1245 - endpoint: 1.0.0.13/32
1246 vias:
1247 - type: tunnel
1248 tunnel_id: ti-lfa
1249 # Check endpoint and via IP routers
1250 - endpoint: 1.0.0.14/32
1251 vias:
1252 - type: ip
1253 nexthop: 1.1.1.1
1254 anta.tests.routing.ospf:
1255 - VerifyOSPFMaxLSA:
1256 # Verifies all OSPF instances did not cross the maximum LSA threshold.
1257 - VerifyOSPFNeighborCount:
1258 # Verifies the number of OSPF neighbors in FULL state is the one we expect.
1259 number: 3
1260 - VerifyOSPFNeighborState:
1261 # Verifies all OSPF neighbors are in FULL state.
1262 - VerifyOSPFSpecificNeighbors:
1263 # Verifies OSPF specific neighbors.
1264 neighbors:
1265 - instance: 100
1266 vrf: default
1267 ip_address: 10.1.255.46
1268 local_interface: Ethernet2
1269 area_id: 0 # Support for decimal format
1270 state: full
1271 - instance: 200
1272 vrf: DEV
1273 ip_address: 10.9.1.1
1274 local_interface: Vlan911
1275 area_id: 0.0.0.1 # Support for IP address format
1276 state: 2Ways
1277 anta.tests.security:
1278 - VerifyAPIHttpStatus:
1279 # Verifies if eAPI HTTP server is disabled globally.
1280 - VerifyAPIHttpsSSL:
1281 # Verifies if the eAPI has a valid SSL profile.
1282 profile: default
1283 - VerifyAPIIPv4Acl:
1284 # Verifies if eAPI has the right number IPv4 ACL(s) configured for a specified VRF.
1285 number: 3
1286 vrf: default
1287 - VerifyAPIIPv6Acl:
1288 # Verifies if eAPI has the right number IPv6 ACL(s) configured for a specified VRF.
1289 number: 3
1290 vrf: default
1291 - VerifyAPISSLCertificate:
1292 # Verifies the eAPI SSL certificate expiry, common subject name, encryption algorithm and key size.
1293 certificates:
1294 - certificate_name: ARISTA_SIGNING_CA.crt
1295 expiry_threshold: 30
1296 common_name: AristaIT-ICA ECDSA Issuing Cert Authority
1297 encryption_algorithm: ECDSA
1298 key_size: 256
1299 - certificate_name: ARISTA_ROOT_CA.crt
1300 expiry_threshold: 30
1301 common_name: Arista Networks Internal IT Root Cert Authority
1302 encryption_algorithm: RSA
1303 key_size: 4096
1304 - VerifyBannerLogin:
1305 # Verifies the login banner of a device.
1306 login_banner: |2+
1307 # Copyright (c) 2023-2024 Arista Networks, Inc.
1308 # Use of this source code is governed by the Apache License 2.0
1309 # that can be found in the LICENSE file.
1310
1311 - VerifyBannerMotd:
1312 # Verifies the motd banner of a device.
1313 motd_banner: |2+
1314 # Copyright (c) 2023-2024 Arista Networks, Inc.
1315 # Use of this source code is governed by the Apache License 2.0
1316 # that can be found in the LICENSE file.
1317 - VerifyHardwareEntropy:
1318 # Verifies hardware entropy generation is enabled on device.
1319 - VerifyIPSecConnHealth:
1320 # Verifies all IPv4 security connections.
1321 - VerifyIPv4ACL:
1322 # Verifies the configuration of IPv4 ACLs.
1323 ipv4_access_lists:
1324 - name: default-control-plane-acl
1325 entries:
1326 - sequence: 10
1327 action: permit icmp any any
1328 - sequence: 20
1329 action: permit ip any any tracked
1330 - sequence: 30
1331 action: permit udp any any eq bfd ttl eq 255
1332 - name: LabTest
1333 entries:
1334 - sequence: 10
1335 action: permit icmp any any
1336 - sequence: 20
1337 action: permit tcp any any range 5900 5910
1338 - VerifySSHFIPSRestrictions:
1339 # Verifies that FIPS restrictions are enabled in management SSH.
1340 - VerifySSHIPv4Acl:
1341 # Verifies if the SSHD agent has IPv4 ACL(s) configured.
1342 number: 3
1343 vrf: default
1344 - VerifySSHIPv6Acl:
1345 # Verifies if the SSHD agent has IPv6 ACL(s) configured.
1346 number: 3
1347 vrf: default
1348 - VerifySSHStatus:
1349 # Verifies if the SSHD agent is disabled in the default VRF.
1350 - VerifySpecificIPSecConn:
1351 # Verifies the IPv4 security connections.
1352 ip_security_connections:
1353 - peer: 10.255.0.1
1354 - peer: 10.255.0.2
1355 vrf: default
1356 connections:
1357 - source_address: 100.64.3.2
1358 destination_address: 100.64.2.2
1359 - source_address: 172.18.3.2
1360 destination_address: 172.18.2.2
1361 - VerifyTelnetStatus:
1362 # Verifies if Telnet is disabled in the default VRF.
1363 anta.tests.services:
1364 - VerifyDNSLookup:
1365 # Verifies the DNS name to IP address resolution.
1366 domain_names:
1367 - arista.com
1368 - www.google.com
1369 - arista.ca
1370 - VerifyDNSServers:
1371 # Verifies if the DNS (Domain Name Service) servers are correctly configured.
1372 dns_servers:
1373 - server_address: 10.14.0.1
1374 vrf: default
1375 priority: 1
1376 - server_address: 10.14.0.11
1377 vrf: MGMT
1378 priority: 0
1379 - VerifyErrdisableRecovery:
1380 # Verifies the error disable recovery functionality.
1381 reasons:
1382 - reason: acl
1383 interval: 30
1384 status: Enabled
1385 - reason: bpduguard
1386 interval: 30
1387 status: Enabled
1388 - VerifyHostname:
1389 # Verifies the hostname of a device.
1390 hostname: s1-spine1
1391 anta.tests.snmp:
1392 - VerifySnmpContact:
1393 # Verifies the SNMP contact of a device.
1394 contact: [email protected]
1395 - VerifySnmpErrorCounters:
1396 # Verifies the SNMP error counters.
1397 error_counters:
1398 - inVersionErrs
1399 - inBadCommunityNames
1400 - VerifySnmpGroup:
1401 # Verifies the SNMP group configurations for specified version(s).
1402 snmp_groups:
1403 - group_name: Group1
1404 version: v1
1405 read_view: group_read_1
1406 write_view: group_write_1
1407 notify_view: group_notify_1
1408 - group_name: Group2
1409 version: v3
1410 read_view: group_read_2
1411 write_view: group_write_2
1412 notify_view: group_notify_2
1413 authentication: priv
1414 - VerifySnmpHostLogging:
1415 # Verifies SNMP logging configurations.
1416 hosts:
1417 - hostname: 192.168.1.100
1418 vrf: default
1419 - hostname: 192.168.1.103
1420 vrf: MGMT
1421 - VerifySnmpIPv4Acl:
1422 # Verifies if the SNMP agent has IPv4 ACL(s) configured.
1423 number: 3
1424 vrf: default
1425 - VerifySnmpIPv6Acl:
1426 # Verifies if the SNMP agent has IPv6 ACL(s) configured.
1427 number: 3
1428 vrf: default
1429 - VerifySnmpLocation:
1430 # Verifies the SNMP location of a device.
1431 location: New York
1432 - VerifySnmpNotificationHost:
1433 # Verifies the SNMP notification host(s) (SNMP manager) configurations.
1434 notification_hosts:
1435 - hostname: spine
1436 vrf: default
1437 notification_type: trap
1438 version: v1
1439 udp_port: 162
1440 community_string: public
1441 - hostname: 192.168.1.100
1442 vrf: default
1443 notification_type: trap
1444 version: v3
1445 udp_port: 162
1446 user: public
1447 - VerifySnmpPDUCounters:
1448 # Verifies the SNMP PDU counters.
1449 pdus:
1450 - outTrapPdus
1451 - inGetNextPdus
1452 - VerifySnmpSourceInterface:
1453 # Verifies SNMP source interfaces.
1454 interfaces:
1455 - interface: Ethernet1
1456 vrf: default
1457 - interface: Management0
1458 vrf: MGMT
1459 - VerifySnmpStatus:
1460 # Verifies if the SNMP agent is enabled.
1461 vrf: default
1462 - VerifySnmpUser:
1463 # Verifies the SNMP user configurations.
1464 snmp_users:
1465 - username: test
1466 group_name: test_group
1467 version: v3
1468 auth_type: MD5
1469 priv_type: AES-128
1470 anta.tests.software:
1471 - VerifyEOSExtensions:
1472 # Verifies that all EOS extensions installed on the device are enabled for boot persistence.
1473 - VerifyEOSVersion:
1474 # Verifies the EOS version of the device.
1475 versions:
1476 - 4.25.4M
1477 - 4.26.1F
1478 - VerifyTerminAttrVersion:
1479 # Verifies the TerminAttr version of the device.
1480 versions:
1481 - v1.13.6
1482 - v1.8.0
1483 anta.tests.stp:
1484 - VerifySTPBlockedPorts:
1485 # Verifies there is no STP blocked ports.
1486 - VerifySTPCounters:
1487 # Verifies there is no errors in STP BPDU packets.
1488 interfaces:
1489 - Ethernet10
1490 - Ethernet12
1491 ignored_interfaces:
1492 - Vxlan1
1493 - Loopback0
1494 - VerifySTPDisabledVlans:
1495 # Verifies the STP disabled VLAN(s).
1496 vlans:
1497 - 6
1498 - 4094
1499 - VerifySTPForwardingPorts:
1500 # Verifies that all interfaces are forwarding for a provided list of VLAN(s).
1501 vlans:
1502 - 10
1503 - 20
1504 - VerifySTPMode:
1505 # Verifies the configured STP mode for a provided list of VLAN(s).
1506 mode: rapidPvst
1507 vlans:
1508 - 10
1509 - 20
1510 - VerifySTPRootPriority:
1511 # Verifies the STP root priority for a provided list of VLAN or MST instance ID(s).
1512 priority: 32768
1513 instances:
1514 - 10
1515 - 20
1516 - VerifyStpTopologyChanges:
1517 # Verifies the number of changes across all interfaces in the Spanning Tree Protocol (STP) topology is below a threshold.
1518 threshold: 10
1519 anta.tests.stun:
1520 - VerifyStunClient:
1521 # (Deprecated) Verifies the translation for a source address on a STUN client.
1522 stun_clients:
1523 - source_address: 172.18.3.2
1524 public_address: 172.18.3.21
1525 source_port: 4500
1526 public_port: 6006
1527 - VerifyStunClientTranslation:
1528 # Verifies the translation for a source address on a STUN client.
1529 stun_clients:
1530 - source_address: 172.18.3.2
1531 public_address: 172.18.3.21
1532 source_port: 4500
1533 public_port: 6006
1534 - source_address: 100.64.3.2
1535 public_address: 100.64.3.21
1536 source_port: 4500
1537 public_port: 6006
1538 - VerifyStunServer:
1539 # Verifies the STUN server status is enabled and running.
1540 anta.tests.system:
1541 - VerifyAgentLogs:
1542 # Verifies there are no agent crash reports.
1543 - VerifyCPUUtilization:
1544 # Verifies that the CPU utilization of the device is within the configured threshold.
1545 threshold: 75.0
1546 period: 5
1547 - VerifyCoredump:
1548 # Verifies there are no core dump files.
1549 - VerifyFilePresence:
1550 # Verifies the presence of files on the device flash memory.
1551 filenames:
1552 - script.py
1553 check_peer_supervisor: true
1554 - VerifyFileSystemUtilization:
1555 # Verifies that no partition is utilizing more than 75% of its disk space.
1556 - VerifyFlashUtilization:
1557 # Verifies the free space on the flash drive is sufficient.
1558 max_utilization: 70
1559 check_peer_supervisor: True
1560 - VerifyMaintenance:
1561 # Verifies that the device is not currently under or entering maintenance.
1562 - VerifyMemoryUtilization:
1563 # Verifies whether the memory utilization is below 75%.
1564 - VerifyNTP:
1565 # Verifies if NTP is synchronised.
1566 - VerifyNTPAssociations:
1567 # Verifies the Network Time Protocol (NTP) associations.
1568 ntp_servers:
1569 - server_address: 1.1.1.1
1570 preferred: True
1571 stratum: 1
1572 - server_address: 2.2.2.2
1573 stratum: 2
1574 - server_address: 3.3.3.3
1575 stratum: 2
1576 - VerifyNTPAssociations:
1577 ntp_pool:
1578 server_addresses: [1.1.1.1, 2.2.2.2]
1579 preferred_stratum_range: [1,3]
1580 - VerifyReloadCause:
1581 # Verifies the last reload cause of the device.
1582 allowed_causes:
1583 - USER
1584 - FPGA
1585 - ZTP
1586 - USER_HITLESS
1587 - VerifyUptime:
1588 # Verifies the device uptime.
1589 minimum: 86400
1590 anta.tests.vlan:
1591 - VerifyDynamicVlanSource:
1592 # Verifies dynamic VLAN allocation for specified VLAN sources.
1593 sources:
1594 - evpn
1595 - mlagsync
1596 strict: False
1597 - VerifyVlanInternalPolicy:
1598 # Verifies the VLAN internal allocation policy and the range of VLANs.
1599 policy: ascending
1600 start_vlan_id: 1006
1601 end_vlan_id: 4094
1602 - VerifyVlanStatus:
1603 # Verifies the administrative status of specified VLANs.
1604 vlans:
1605 - vlan_id: 10
1606 status: suspended
1607 - vlan_id: 4094
1608 status: active
1609 anta.tests.vxlan:
1610 - VerifyVxlan1ConnSettings:
1611 # Verifies Vxlan1 source interface and UDP port.
1612 source_interface: Loopback1
1613 udp_port: 4789
1614 - VerifyVxlan1Interface:
1615 # Verifies the Vxlan1 interface status.
1616 - VerifyVxlan1VVTEPIPAddresses:
1617 # Verifies the VVTEP IP addresses.
1618 ipv4_address: 5.5.5.5
1619 ipv6_address: fd00:dc:1::1
1620 - VerifyVxlanConfigSanity:
1621 # Verifies there are no VXLAN config-sanity inconsistencies.
1622 - VerifyVxlanVniBinding:
1623 # Verifies the VNI-VLAN, VNI-VRF bindings of the Vxlan1 interface.
1624 bindings:
1625 10010: 10
1626 10020: 20
1627 500: PROD
1628 - VerifyVxlanVtep:
1629 # Verifies Vxlan1 VTEP peers.
1630 vteps:
1631 - 10.1.1.5
1632 - 10.1.1.6