summaryrefslogtreecommitdiffstats
path: root/ospfd/ospfd.c
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2021-09-01 11:11:48 +0200
committerMobashshera Rasool <mrasool@vmware.com>2021-09-02 08:39:00 +0200
commit8fb693a4cd867f58fb316e5329e27605c2930a6e (patch)
tree22a8cc310e4af0ce10d17a060d6e89b9047963c6 /ospfd/ospfd.c
parentMerge pull request #9318 from Prerana-GB/ibgp_knob (diff)
downloadfrr-8fb693a4cd867f58fb316e5329e27605c2930a6e.tar.xz
frr-8fb693a4cd867f58fb316e5329e27605c2930a6e.zip
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>
Diffstat (limited to 'ospfd/ospfd.c')
-rw-r--r--ospfd/ospfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c
index 9a421de01..766be6077 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);