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 <mrasool@vmware.com>
This commit is contained in:
Mobashshera Rasool 2021-09-01 02:11:48 -07:00
parent e5fbfe01ae
commit 8fb693a4cd

View File

@ -222,6 +222,9 @@ void ospf_process_refresh_data(struct ospf *ospf, bool reset)
ospf_lsdb_delete_all(ospf->lsdb); 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 */ /* Delete the LSDB */
for (ALL_LIST_ELEMENTS(ospf->areas, node, nnode, area)) for (ALL_LIST_ELEMENTS(ospf->areas, node, nnode, area))
ospf_area_lsdb_discard_delete(area); ospf_area_lsdb_discard_delete(area);