]> git.proxmox.com Git - mirror_frr.git/blobdiff - isisd/isisd.c
Merge pull request #12819 from isabelladeleon12/isis_load_config_before_lsp_gen
[mirror_frr.git] / isisd / isisd.c
index d9f8a262cb0a8e77d0fb8ee9a5078063678324e1..852d7b88e89a42e9983e0f92847668ad551f9458 100644 (file)
@@ -87,6 +87,9 @@ static struct isis_master isis_master;
 /* ISIS process wide configuration pointer to export. */
 struct isis_master *im;
 
+/* ISIS config processing thread */
+struct thread *t_isis_cfg;
+
 #ifndef FABRICD
 DEFINE_HOOK(isis_hook_db_overload, (const struct isis_area *area), (area));
 #endif /* ifndef FABRICD */
@@ -3234,6 +3237,16 @@ void isis_area_overload_on_startup_set(struct isis_area *area,
        }
 }
 
+void config_end_lsp_generate(struct isis_area *area)
+{
+       if (listcount(area->area_addrs) > 0) {
+               if (CHECK_FLAG(area->is_type, IS_LEVEL_1))
+                       lsp_generate(area, IS_LEVEL_1);
+               if (CHECK_FLAG(area->is_type, IS_LEVEL_2))
+                       lsp_generate(area, IS_LEVEL_2);
+       }
+}
+
 /*
  * Returns the path of the file (non-volatile memory) that contains restart
  * information.