Merge pull request #17803 from anlancs/ospfd/fix-redundant-timers

ospfd: avoid the redundant timers
This commit is contained in:
Russ White 2025-01-14 10:17:20 -05:00 committed by GitHub
commit d982b1c785
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1145,8 +1145,7 @@ static void ospf_external_aggr_timer(struct ospf *ospf,
aggr->action = operation;
if (ospf->t_external_aggr) {
if (ospf->aggr_action == OSPF_ROUTE_AGGR_ADD) {
if (ospf->aggr_action == OSPF_ROUTE_AGGR_ADD || operation != OSPF_ROUTE_AGGR_ADD) {
if (IS_DEBUG_OSPF(lsa, EXTNL_LSA_AGGR))
zlog_debug("%s: Not required to restart timer,set is already added.",
__func__);