ANTA catalog for Adaptive Virtual Topology (AVT) tests
VerifyAVTPathHealth ¶
Verifies the status of all Adaptive Virtual Topology (AVT) paths for all VRFs.
Expected Results
- Success: The test will pass if all AVT paths for all VRFs are active and valid.
- Failure: The test will fail if the AVT path is not configured or if any AVT path under any VRF is either inactive or invalid.
Examples
anta.tests.avt:
- VerifyAVTPathHealth:
Source code in anta/tests/avt.py
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 |
|
VerifyAVTRole ¶
Verifies the Adaptive Virtual Topology (AVT) role of a device.
Expected Results
- Success: The test will pass if the AVT role of the device matches the expected role.
- Failure: The test will fail if the AVT is not configured or if the AVT role does not match the expected role.
Examples
anta.tests.avt:
- VerifyAVTRole:
role: edge
Source code in anta/tests/avt.py
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 |
|
VerifyAVTSpecificPath ¶
Verifies the status and type of an Adaptive Virtual Topology (AVT) path for a specified VRF.
Expected Results
- Success: The test will pass if all AVT paths for the specified VRF are active, valid, and match the specified type (direct/multihop) if provided. If multiple paths are configured, the test will pass only if all the paths are valid and active.
- Failure: The test will fail if no AVT paths are configured for the specified VRF, or if any configured path is not active, valid, or does not match the specified type.
Examples
anta.tests.avt:
- VerifyAVTSpecificPath:
avt_paths:
- avt_name: CONTROL-PLANE-PROFILE
vrf: default
destination: 10.101.255.2
next_hop: 10.101.255.1
path_type: direct
Inputs¶
Name | Type | Description | Default |
---|---|---|---|
avt_paths |
list[AVTPaths]
|
List of AVT paths to verify.
|
- |
AVTPaths¶
Name | Type | Description | Default |
---|---|---|---|
vrf |
str
|
The VRF for the AVT path. Defaults to 'default' if not provided.
|
'default'
|
avt_name |
str
|
Name of the adaptive virtual topology.
|
- |
destination |
IPv4Address
|
The IPv4 address of the AVT peer.
|
- |
next_hop |
IPv4Address
|
The IPv4 address of the next hop for the AVT peer.
|
- |
path_type |
str | None
|
The type of the AVT path. If not provided, both 'direct' and 'multihop' paths are considered.
|
None
|
Source code in anta/tests/avt.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 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 |
|