Connectivity
ANTA catalog for connectivity tests¶
Test functions related to various connectivity checks
VerifyLLDPNeighbors ¶
Bases: AntaTest
This test verifies that the provided LLDP neighbors are present and connected with the correct configuration.
Expected Results
- success: The test will pass if each of the provided LLDP neighbors is present and connected to the specified port and device.
- failure: The test will fail if any of the following conditions are met:
- The provided LLDP neighbor is not found.
- The system name or port of the LLDP neighbor does not match the provided information.
Source code in anta/tests/connectivity.py
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 |
|
Input ¶
Bases: Input
Source code in anta/tests/connectivity.py
91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
Neighbor ¶
Bases: BaseModel
LLDP neighbor
Source code in anta/tests/connectivity.py
95 96 97 98 99 100 101 102 103 |
|
VerifyReachability ¶
Bases: AntaTest
Test network reachability to one or many destination IP(s).
Expected Results
- success: The test will pass if all destination IP(s) are reachable.
- failure: The test will fail if one or many destination IP(s) are unreachable.
Source code in anta/tests/connectivity.py
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 |
|
Input ¶
Bases: Input
Source code in anta/tests/connectivity.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
Host ¶
Bases: BaseModel
Remote host to ping
Source code in anta/tests/connectivity.py
40 41 42 43 44 45 46 47 48 49 50 |
|
source
instance-attribute
¶
source: Union[IPv4Address, Interface]
IPv4 address source IP or Egress interface to use