]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: ospf redistribute originating LSA internal connected routes 9363/head
authorMobashshera Rasool <mrasool@vmware.com>
Tue, 10 Aug 2021 16:24:47 +0000 (09:24 -0700)
committerMobashshera Rasool <mrasool@vmware.com>
Tue, 10 Aug 2021 16:41:14 +0000 (09:41 -0700)
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>
ospfd/ospfd.c

index 3226d66444c0d08bf65ccf9721ab65e007ad8de1..21fa62531187973b15274290ebca1cfa340ba538 100644 (file)
@@ -1130,8 +1130,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,
@@ -1139,8 +1139,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);
                                }