From 8fb693a4cd867f58fb316e5329e27605c2930a6e Mon Sep 17 00:00:00 2001 From: Mobashshera Rasool Date: Wed, 1 Sep 2021 02:11:48 -0700 Subject: [PATCH] ospfd: Summary LSA is not originated when process is reset Problem Statement: ================== Summary LSA is not originated when router-id is modified or process is reset Root Cause Analysis: ==================== When router-id is modified or process is cleared, all the external LSAs are flushed then LSA is re-originated using ospf_external_lsa_rid_change When the LSAs are flushed, the aggregate flags are not reset. Fix: =============== Reset the aggregation flag when the LSAs are flushed. Signed-off-by: Mobashshera Rasool --- ospfd/ospfd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 9a421de017..766be60778 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -222,6 +222,9 @@ void ospf_process_refresh_data(struct ospf *ospf, bool reset) ospf_lsdb_delete_all(ospf->lsdb); } + /* Since the LSAs are deleted, need reset the aggr flag */ + ospf_unset_all_aggr_flag(ospf); + /* Delete the LSDB */ for (ALL_LIST_ELEMENTS(ospf->areas, node, nnode, area)) ospf_area_lsdb_discard_delete(area); -- 2.39.5