]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #11302 from punith-shivakumar/master
authorDonatas Abraitis <donatas@opensourcerouting.org>
Tue, 8 Nov 2022 19:28:30 +0000 (21:28 +0200)
committerGitHub <noreply@github.com>
Tue, 8 Nov 2022 19:28:30 +0000 (21:28 +0200)
ospf6d: add missing ABR task on interface start and change default task delay to 5

ospf6d/ospf6_interface.c
ospf6d/ospf6_nssa.h
ospfd/ospf_abr.h

index 155374d3f0b35f224d4ef84dc6e98c6976d823bd..8d79963c78d963b447706d85d383498719fec96b 100644 (file)
@@ -37,6 +37,7 @@
 #include "ospf6_route.h"
 #include "ospf6_area.h"
 #include "ospf6_abr.h"
+#include "ospf6_nssa.h"
 #include "ospf6_interface.h"
 #include "ospf6_neighbor.h"
 #include "ospf6_intra.h"
@@ -1736,8 +1737,10 @@ void ospf6_interface_start(struct ospf6_interface *oi)
        ospf6_interface_enable(oi);
 
        /* If the router is ABR, originate summary routes */
-       if (ospf6_check_and_set_router_abr(ospf6))
+       if (ospf6_check_and_set_router_abr(ospf6)) {
                ospf6_abr_enable_area(oa);
+               ospf6_schedule_abr_task(ospf6);
+       }
 }
 
 void ospf6_interface_stop(struct ospf6_interface *oi)
index 02234cc8bd91e12b89e2e34d60e532c8d30ec7af..3cc45d900dfb38e31df1e28317313ae528fa4ef3 100644 (file)
@@ -45,7 +45,7 @@ extern unsigned char config_debug_ospf6_nssa;
 #define OSPF6_LSA_APPROVED      0x08
 #define OSPF6_LSA_LOCAL_XLT     0x40
 
-#define OSPF6_ABR_TASK_DELAY    7
+#define OSPF6_ABR_TASK_DELAY    5
 
 int ospf6_area_nssa_no_summary_set(struct ospf6 *ospf6, struct in_addr area_id);
 int ospf6_area_nssa_unset(struct ospf6 *ospf6, struct ospf6_area *area);
index e15f4a6bf7b7b0f76f981e02b57b74ebffe1b0df..c523638fb3cac217db4c1c15b7051dd3ce62c71d 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _ZEBRA_OSPF_ABR_H
 #define _ZEBRA_OSPF_ABR_H
 
-#define OSPF_ABR_TASK_DELAY    7
+#define OSPF_ABR_TASK_DELAY    5
 
 #define OSPF_AREA_RANGE_ADVERTISE      (1 << 0)
 #define OSPF_AREA_RANGE_SUBSTITUTE     (1 << 1)