diff options
| author | anlan_cs <anlan_cs@126.com> | 2025-01-09 16:36:12 +0800 |
|---|---|---|
| committer | anlan_cs <anlan_cs@126.com> | 2025-01-10 08:51:40 +0800 |
| commit | a5ec72aa8cece4f33c24040ff7c527ba1f0baeb7 (patch) | |
| tree | 11c9f3aeffbc876dda39fcb30d6b43daa0ca4f97 /ospfd | |
| parent | 3d7dbcf6c6fa18fc8b38debd8be4841a1ca867c5 (diff) | |
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 <anlan_cs@126.com>
Diffstat (limited to 'ospfd')
| -rw-r--r-- | ospfd/ospf_asbr.c | 3 |
1 files changed, 1 insertions, 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__); |
