Skip to content

Commit

Permalink
infamy: Stability fix for getting OSPF status
Browse files Browse the repository at this point in the history
Always return {} if fail to get OSPF status, it may not have started
yet.
  • Loading branch information
mattiaswal committed Nov 14, 2024
1 parent c3bed2b commit 7d58db2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/infamy/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def _get_ospf_status(target):
rib = protos.get("control-plane-protocol", {})
for p in rib:
if p["type"] == "infix-routing:ospfv2":
return p.get("ospf") or p.get("ietf-ospf:ospf")
return p.get("ospf") or p.get("ietf-ospf:ospf", {})

return []
return {}


def _get_ospf_status_area(target, area_id):
Expand Down

0 comments on commit 7d58db2

Please sign in to comment.