From: Shbinging Date: Tue, 22 Oct 2024 05:34:26 +0000 (+0000) Subject: ospfd:fix the bug that the empty area was not free after no area range command was... X-Git-Tag: base_10.3~313^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=baf604770e902bf5f07a83702060fa57e73d587d;p=matthieu%2Ffrr.git ospfd:fix the bug that the empty area was not free after no area range command was executed When we use the no area X.X.X.X range A.B.C.D/M command, if the area no longer has an interface to which it belongs, then the area should be deleted from the LSDB. This processing logic is consistent with instructions such as no network area and no area authentication. Signed-off-by: Shbinging --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 01cbfedc1c..3be3de24cf 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -748,6 +748,8 @@ DEFUN (no_ospf_area_range, ospf_area_range_unset(ospf, area, area->ranges, &p); + ospf_area_check_free(ospf, area_id); + return CMD_SUCCESS; }