Skip to content

Commit

Permalink
ospfd:fix the bug that the empty area was not free after no area rang…
Browse files Browse the repository at this point in the history
…e 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 <[email protected]>
  • Loading branch information
Shbinging committed Oct 22, 2024
1 parent 2f84a26 commit baf6047
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit baf6047

Please sign in to comment.