summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShbinging <bingshui@smail.nju.edu.cn>2024-10-22 07:34:26 +0200
committerShbinging <bingshui@smail.nju.edu.cn>2024-10-22 07:34:36 +0200
commitbaf604770e902bf5f07a83702060fa57e73d587d (patch)
tree453263a6ee391002e9d1337432ab27d49e4705c0
parentMerge pull request #17169 from enkechen-panw/aigp-fix4 (diff)
downloadfrr-baf604770e902bf5f07a83702060fa57e73d587d.tar.xz
frr-baf604770e902bf5f07a83702060fa57e73d587d.zip
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 <bingshui@smail.nju.edu.cn>
-rw-r--r--ospfd/ospf_vty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index 01cbfedc1..3be3de24c 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;
}