Generic
ANTA catalog for routing-generic tests¶
Generic routing test functions
VerifyBFD ¶
Bases: AntaTest
Verifies there is no BFD peer in down state (all VRF, IPv4 neighbors).
Source code in anta/tests/routing/generic.py
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 |
|
test ¶
test() -> None
Run VerifyBFD validation
Source code in anta/tests/routing/generic.py
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
|
VerifyRoutingProtocolModel ¶
Bases: AntaTest
Verifies the configured routing protocol model is the one we expect. And if there is no mismatch between the configured and operating routing protocol model.
model(str): Expected routing protocol model (multi-agent or ribd). Default is multi-agent
Source code in anta/tests/routing/generic.py
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 |
|
test ¶
test(model: Optional[str] = 'multi-agent') -> None
Run VerifyRoutingProtocolModel validation
Source code in anta/tests/routing/generic.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
VerifyRoutingTableSize ¶
Bases: AntaTest
Verifies the size of the IP routing table (default VRF). Should be between the two provided thresholds.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
minimum(int) |
Expected minimum routing table (default VRF) size. |
required | |
maximum(int) |
Expected maximum routing table (default VRF) size. |
required |
Source code in anta/tests/routing/generic.py
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 |
|
test ¶
test(minimum: Optional[int] = None, maximum: Optional[int] = None) -> None
Run VerifyRoutingTableSize validation
Source code in anta/tests/routing/generic.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
|
Last update:
July 19, 2023