Generic
ANTA catalog for routing-generic tests¶
Generic routing test functions
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.
Source code in anta/tests/routing/generic.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 |
|
Input ¶
Bases: Input
Source code in anta/tests/routing/generic.py
33 34 35 |
|
model
class-attribute
instance-attribute
¶
model: Literal['multi-agent', 'ribd'] = 'multi-agent'
Expected routing protocol model
VerifyRoutingTableEntry ¶
Bases: AntaTest
This test verifies that the provided routes are present in the routing table of a specified VRF.
Expected Results
- success: The test will pass if the provided routes are present in the routing table.
- failure: The test will fail if one or many provided routes are missing from the routing table.
Source code in anta/tests/routing/generic.py
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 |
|
VerifyRoutingTableSize ¶
Bases: AntaTest
Verifies the size of the IP routing table (default VRF). Should be between the two provided thresholds.
Source code in anta/tests/routing/generic.py
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 |
|
Input ¶
Bases: Input
Source code in anta/tests/routing/generic.py
59 60 61 62 63 64 65 66 67 68 69 70 |
|
check_min_max ¶
check_min_max() -> AntaTest.Input
Validate that maximum is greater than minimum
Source code in anta/tests/routing/generic.py
65 66 67 68 69 70 |
|