]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: avoid the redundant timers 17803/head
authoranlan_cs <anlan_cs@126.com>
Thu, 9 Jan 2025 08:36:12 +0000 (16:36 +0800)
committeranlan_cs <anlan_cs@126.com>
Fri, 10 Jan 2025 00:51:40 +0000 (08:51 +0800)
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 <anlan_cs@126.com>
ospfd/ospf_asbr.c

index aa11467027fdd9935b9b821c8e8489c44b325d14..978a6fcc13e8f5cecd1bcc7072760d8e61be8772 100644 (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__);