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