diff options
| author | Shbinging <bingshui@smail.nju.edu.cn> | 2024-10-15 07:26:50 +0000 |
|---|---|---|
| committer | Shbinging <bingshui@smail.nju.edu.cn> | 2024-10-15 08:10:52 +0000 |
| commit | af0d1355c7b0a7213f62cea7852ef3223d38c46f (patch) | |
| tree | 78da0ae430bdf677af88b986938c398e0aa2abee /ospfd | |
| parent | 5c194b36399afa3e90262234d9246e3383bbe015 (diff) | |
ospfd:fix the bug that the empty area was not free after the 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>
Diffstat (limited to 'ospfd')
| -rw-r--r-- | ospfd/ospf_vty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index b7261da261..34fd804ae8 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -781,6 +781,8 @@ DEFUN (no_ospf_area_range_substitute, ospf_area_range_substitute_unset(ospf, area, &p); + ospf_area_check_free(ospf, area_id); + return CMD_SUCCESS; } |
