diff options
| author | Santosh P K <50885001+Spantik@users.noreply.github.com> | 2020-09-03 09:51:21 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-03 09:51:21 +0530 |
| commit | 371ded520bb3c0085ce6a17443fd2d0bbdda2c4a (patch) | |
| tree | c6348dcdde1737f8f38d27e1c41205fef24701ca /ospfd/ospf_zebra.c | |
| parent | 842b9211ac685148212db3ec9432c2db9cb2c7c9 (diff) | |
| parent | e641623d90130ff5bed36cd581e625cc7d6845ea (diff) | |
Merge pull request #6987 from Niral-Networks/acl_fix
lib, ospf : Fix when redist is performed with route-map using access-list
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); } |
