summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_interface.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-03-19 20:44:07 -0400
committerGitHub <noreply@github.com>2025-03-19 20:44:07 -0400
commitfd2a3696b18ddb1fd35b27589f8de1dcdb7b83c0 (patch)
tree6d750c6756fe48aa9902e3ef837dee074696104c /ospf6d/ospf6_interface.c
parent79e8d2e836558114d0e035ebc22dcce705762d92 (diff)
parent9cb1914197d8021364217a2bfa555805f049a76f (diff)
Merge pull request #18425 from FRRouting/mergify/bp/stable/10.0/pr-18393
ospf6d: Disable and delete OSPFv3 areas that no longer have interfaces or configuration. (backport #18393)
Diffstat (limited to 'ospf6d/ospf6_interface.c')
-rw-r--r--ospf6d/ospf6_interface.c3
1 files changed, 3 insertions, 0 deletions
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);
}
}