Generic
ANTA catalog for routing-generic tests¶
Generic routing test functions
verify_bfd(device, result)
async
¶
Verifies there is no BFD peer in down state (all VRF, IPv4 neighbors).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
device |
InventoryDevice
|
InventoryDevice instance containing all devices information. |
required |
Returns:
Type | Description |
---|---|
TestResult
|
TestResult instance with |
TestResult
|
|
TestResult
|
|
TestResult
|
|
TestResult
|
|
Source code in anta/tests/routing/generic.py
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 |
|
verify_routing_protocol_model(device, result, model='multi-agent')
async
¶
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.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
device |
InventoryDevice
|
InventoryDevice instance containing all devices information. |
required |
model(str) |
Expected routing protocol model (multi-agent or ribd). Default is multi-agent |
required |
Returns:
Type | Description |
---|---|
TestResult
|
TestResult instance with |
TestResult
|
|
TestResult
|
|
TestResult
|
|
TestResult
|
|
TestResult
|
|
Source code in anta/tests/routing/generic.py
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 |
|
verify_routing_table_size(device, result, minimum, maximum)
async
¶
Verifies the size of the IP routing table (default VRF). Should be between the two provided thresholds.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
device |
InventoryDevice
|
InventoryDevice instance containing all devices information. |
required |
minimum(int) |
Expected minimum routing table (default VRF) size. |
required | |
maximum(int) |
Expected maximum routing table (default VRF) size. |
required |
Returns:
Type | Description |
---|---|
TestResult
|
TestResult instance with |
TestResult
|
|
TestResult
|
|
TestResult
|
|
TestResult
|
|
TestResult
|
|
Source code in anta/tests/routing/generic.py
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 |
|