From a5ec72aa8cece4f33c24040ff7c527ba1f0baeb7 Mon Sep 17 00:00:00 2001 From: anlan_cs Date: Thu, 9 Jan 2025 16:36:12 +0800 Subject: [PATCH] ospfd: avoid the redundant timers Since the timer thread for ```OSPF_ROUTE_AGGR_DEL``` has been created, the subsequent "no summary-address" commands shouldn't trigger redundant timers. Signed-off-by: anlan_cs --- ospfd/ospf_asbr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ospfd/ospf_asbr.c b/ospfd/ospf_asbr.c index aa11467027..978a6fcc13 100644 --- a/ospfd/ospf_asbr.c +++ b/ospfd/ospf_asbr.c @@ -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__);