From 94299b8b7ed538488e2c6bb371076bf83e510160 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Tue, 13 Oct 2020 23:11:10 +0300 Subject: [PATCH] ospfd: don't remove interface config when removing router Signed-off-by: Igor Ryzhov --- ospfd/ospfd.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 31d8417eb6..97edc2f320 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -580,7 +580,6 @@ static void ospf_finish_final(struct ospf *ospf) struct route_node *rn; struct ospf_nbr_nbma *nbr_nbma; struct ospf_lsa *lsa; - struct interface *ifp; struct ospf_interface *oi; struct ospf_area *area; struct ospf_vl_data *vl_data; @@ -619,15 +618,6 @@ static void ospf_finish_final(struct ospf *ospf) list_delete(&ospf->vlinks); - /* Remove any ospf interface config params */ - FOR_ALL_INTERFACES (vrf, ifp) { - struct ospf_if_params *params; - - params = IF_DEF_PARAMS(ifp); - if (OSPF_IF_PARAM_CONFIGURED(params, if_area)) - UNSET_IF_PARAM(params, if_area); - } - /* Reset interface. */ for (ALL_LIST_ELEMENTS(ospf->oiflist, node, nnode, oi)) ospf_if_free(oi); -- 2.39.5