ANTA catalog for flow tracking tests
Tests¶
Module related to the flow tracking tests.
VerifyHardwareFlowTrackerStatus ¶
Verifies the hardware flow tracking state.
This test performs the following checks:
- Confirms that hardware flow tracking is running.
- For each specified flow tracker:
- Confirms that the tracker is active.
- Optionally, checks the tracker interval/timeout configuration.
- Optionally, verifies the tracker exporter configuration
Expected Results
- Success: The test will pass if all of the following conditions are met:
- Hardware flow tracking is running.
- For each specified flow tracker:
- The flow tracker is active.
- The tracker interval/timeout matches the expected values, if provided.
- The exporter configuration matches the expected values, if provided.
- Failure: The test will fail if any of the following conditions are met:
- Hardware flow tracking is not running.
- For any specified flow tracker:
- The flow tracker is not active.
- The tracker interval/timeout does not match the expected values, if provided.
- The exporter configuration does not match the expected values, if provided.
Examples
anta.tests.flow_tracking:
- VerifyHardwareFlowTrackerStatus:
trackers:
- name: FLOW-TRACKER
record_export:
on_inactive_timeout: 70000
on_interval: 300000
exporters:
- name: CV-TELEMETRY
local_interface: Loopback0
template_interval: 3600000
Inputs¶
Name | Type | Description | Default |
---|---|---|---|
trackers |
list[FlowTracker]
|
List of flow trackers to verify.
|
- |
Source code in anta/tests/flow_tracking.py
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 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 |
|
Input models¶
Module containing input models for flow tracking tests.
Exporter ¶
Model representing the exporter used for flow record export.
Source code in anta/input_models/flow_tracking.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
FlowTracker ¶
Flow Tracking model representing the tracker details.
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name of the flow tracker.
|
- |
record_export |
RecordExport | None
|
Configuration for record export, specifying details about timeouts.
|
None
|
exporters |
list[Exporter] | None
|
A list of exporters associated with the flow tracker.
|
None
|
Source code in anta/input_models/flow_tracking.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
RecordExport ¶
Model representing the record export configuration for a flow tracker.
Source code in anta/input_models/flow_tracking.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|