From b799366d0a25c6153d1750210cbf90a1220876cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Sat, 13 Jan 2024 21:40:37 +0100 Subject: [PATCH] infamy: route: Add function to check if an area is NSSA --- test/infamy/route.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/infamy/route.py b/test/infamy/route.py index 50a4b12a..f2373850 100644 --- a/test/infamy/route.py +++ b/test/infamy/route.py @@ -79,3 +79,11 @@ def ospf_get_interface_type(target, area_id, ifname): def ospf_get_interface_passive(target, area_id, ifname): ospf_interface=_get_ospf_status_area_interface(target,area_id,ifname) return ospf_interface.get("passive", False) + +def ospf_is_area_nssa(target, area_id): + area=_get_ospf_status_area(target, area_id) + + if area.get("area-type", "") == "ietf-ospf:nssa-area": + return True + + return False