]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: ospf redistribute originating LSA internal connected routes
authorMobashshera Rasool <mrasool@vmware.com>
Tue, 10 Aug 2021 16:24:47 +0000 (09:24 -0700)
committermergify-bot <noreply@mergify.io>
Fri, 13 Aug 2021 11:23:03 +0000 (11:23 +0000)
When OSPF is disabled on interface and enabled again, the IP which is
not matching the prefix-list is getting originated as External LSA.

Fixes: #9362
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
(cherry picked from commit e474c143738d07ffe3336ec6d2fafff905b2be66)

ospfd/ospfd.c

index e95ee55e68bdf8c8a4de4eb881f9eeb0ab3decee..8197e81603aa60c45e32374b10385db898f778d1 100644 (file)
@@ -1119,8 +1119,8 @@ static void update_redistributed(struct ospf *ospf, int add_to_ospf)
                                if (add_to_ospf) {
                                        if (ospf_external_info_find_lsa(ospf,
                                                                        &ei->p))
-                                               if (!ospf_distribute_check_connected(
-                                                           ospf, ei))
+                                               if (!ospf_redistribute_check(
+                                                           ospf, ei, NULL))
                                                        ospf_external_lsa_flush(
                                                                ospf, ei->type,
                                                                &ei->p,
@@ -1128,8 +1128,8 @@ static void update_redistributed(struct ospf *ospf, int add_to_ospf)
                                } else {
                                        if (!ospf_external_info_find_lsa(
                                                    ospf, &ei->p))
-                                               if (ospf_distribute_check_connected(
-                                                           ospf, ei))
+                                               if (ospf_redistribute_check(
+                                                           ospf, ei, NULL))
                                                        ospf_external_lsa_originate(
                                                                ospf, ei);
                                }