diff options
| author | Kaushik <kaushik@niralnetworks.com> | 2020-08-31 04:32:30 -0700 |
|---|---|---|
| committer | Kaushik <kaushik@niralnetworks.com> | 2020-09-02 02:44:25 -0700 |
| commit | e641623d90130ff5bed36cd581e625cc7d6845ea (patch) | |
| tree | 6ab30eaab1c0c8ee401fe7b31c9f3545b683a6a6 /ospfd/ospf_zebra.c | |
| parent | 1eb17c771b50dd78a5cf88622d37bd2b474d4475 (diff) | |
ospfd : Fix in lsa refresh when redist is done with route-map using access-list.
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>
Diffstat (limited to 'ospfd/ospf_zebra.c')
| -rw-r--r-- | ospfd/ospf_zebra.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index eb125394b8..8cf8430247 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -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); } |
