]> git.puffer.fish Git - mirror/frr.git/commit
ospfd: Summarised External LSA is not flushed in one scenario 9433/head
authorMobashshera Rasool <mrasool@vmware.com>
Mon, 16 Aug 2021 11:27:45 +0000 (04:27 -0700)
committermergify-bot <noreply@mergify.io>
Wed, 18 Aug 2021 07:19:15 +0000 (07:19 +0000)
commit7295bf8889933695cab8fb0191fc068eacde28ac
treef2776d510c1fedccb1ef68fb6c62dec9e1ff294c
parentf1b92c6eac81b4e04be9e40ed2bc5791bb32da04
ospfd: Summarised External LSA is not flushed in one scenario

Fix CI Failure test_ospf_type5_summary_tc45_p0

Problem Statement:
==================
Summarised LSA is not flushed in OSPFv2 in below scenario:
1. Configure summary-address in ospfv2
2. redistribute static and connected.
3. Check the LSAs are received on neighbor.
4. Now remove all OSPFv2 configs, so neighbor will still have the summarised LSA.
5. Configure router ospf with redistribute static and connected.
6. Check the DB, summarised LSA is present although the configuration is not present.
7. Now configure the summary-address and remove the configuration after sometime.
8. The summarised LSA will be still present.

RCA:
==================
When self originated LSA is received from the neighbor and that
LSA is summarised one, the LSA is refreshed but a flag is not set
due to which it was not able to remove it later.

Fix:
==================
Set the originated flag when refreshing summarised LSA.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
(cherry picked from commit d2e8400570e350e73fd54e257f704a5ad6878d6a)
ospfd/ospf_flood.c
ospfd/ospf_lsa.c