Skip to content

Commit

Permalink
src - Fix issue with ospf adjacency (Fixes #68)
Browse files Browse the repository at this point in the history
  • Loading branch information
phibos committed Jun 10, 2024
1 parent 05ddc02 commit f59e6c4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions routeros_check/check/routing_ospf_neighbor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,23 @@ def __init__(
self.state: Optional[str] = None

self._routeros_metric_values = [
{"name": "adjacency", "type": self.parse_routeros_time_duration, "min": 0, "uom": "s"},
{"name": "state", "type": None},
{"name": "state-changes", "dst": "state_changes", "type": int},
{
"name": "adjacency",
"type": self.parse_routeros_time_duration,
"min": 0,
"uom": "s",
# on some devices, only available if state=Full
"missing_ok": True,
},
{
"name": "state",
"type": None,
},
{
"name": "state-changes",
"dst": "state_changes",
"type": int
},
]
if self.routeros_version < RouterOSVersion("7"):
self._routeros_metric_values += [
Expand Down

0 comments on commit f59e6c4

Please sign in to comment.