From 9cb1914197d8021364217a2bfa555805f049a76f Mon Sep 17 00:00:00 2001 From: Acee Lindem Date: Fri, 14 Mar 2025 16:02:28 +0000 Subject: ospf6d: Disable and delete OSPFv3 areas that no longer have interfaces or configuration. This fix will delete an OSPFv3 area when all the interfaces and configuration (ranges, NSSA ranges, stub area, NSSA area, filter-list, import-list and export-list) have been removed. The changes provides a general solution to https://github.com/FRRouting/frr/issues/18324. Signed-off-by: Acee Lindem (cherry picked from commit 04994891fe164b4d5a2819d3bc90e5346f94dc53) --- ospf6d/ospf6_interface.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ospf6d/ospf6_interface.c') diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 7f813ce3cc..b578ed1e4c 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1822,6 +1822,9 @@ void ospf6_interface_stop(struct ospf6_interface *oi) if (oa->if_list->count == 0) { UNSET_FLAG(oa->flag, OSPF6_AREA_ENABLE); ospf6_abr_disable_area(oa); + + /* Delete area if no interfaces or configuration. */ + ospf6_area_no_config_delete(oa); } } -- cgit v1.2.3