]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd : Fix in lsa refresh when redist is done with route-map using access-list. 6987/head
authorKaushik <kaushik@niralnetworks.com>
Mon, 31 Aug 2020 11:32:30 +0000 (04:32 -0700)
committerKaushik <kaushik@niralnetworks.com>
Wed, 2 Sep 2020 09:44:25 +0000 (02:44 -0700)
1. Minor change in distribute-list update timer based on lsa flag.

Co-authored-by: harios <hari@niralnetworks.com>
Signed-off-by: Kaushik <kaushik@niralnetworks.com>
ospfd/ospf_zebra.c

index eb125394b84ca1b0622e4e33c1533a009cd99985..8cf8430247acee86ec8644613cc01dd6005710ba 100644 (file)
@@ -1353,11 +1353,18 @@ static int ospf_distribute_list_update_timer(struct thread *thread)
                                                default_refresh = 1;
                                        else if (
                                                (lsa = ospf_external_info_find_lsa(
-                                                        ospf, &ei->p)))
-                                               ospf_external_lsa_refresh(
-                                                       ospf, lsa, ei,
-                                                       LSA_REFRESH_IF_CHANGED);
-                                       else
+                                                        ospf, &ei->p))) {
+                                               if (!CHECK_FLAG(
+                                                           lsa->flags,
+                                                           OSPF_LSA_IN_MAXAGE))
+                                                       ospf_external_lsa_refresh(
+                                                               ospf, lsa, ei,
+                                                               LSA_REFRESH_IF_CHANGED);
+                                               else
+                                                       ospf_external_lsa_refresh(
+                                                               ospf, lsa, ei,
+                                                               LSA_REFRESH_FORCE);
+                                       } else
                                                ospf_external_lsa_originate(
                                                        ospf, ei);
                                }