You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
749 B
26 lines
749 B
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c
|
|
index 74a5674..aec9037 100644
|
|
--- a/ospfd/ospf_spf.c
|
|
+++ b/ospfd/ospf_spf.c
|
|
@@ -48,7 +48,10 @@
|
|
#include "ospfd/ospf_sr.h"
|
|
#include "ospfd/ospf_ti_lfa.h"
|
|
#include "ospfd/ospf_errors.h"
|
|
+
|
|
+#ifdef SUPPORT_OSPF_API
|
|
#include "ospfd/ospf_apiserver.h"
|
|
+#endif
|
|
|
|
/* Variables to ensure a SPF scheduled log message is printed only once */
|
|
|
|
@@ -1897,7 +1900,9 @@ static void ospf_spf_calculate_schedule_worker(struct thread *thread)
|
|
/* Update all routers routing table */
|
|
ospf->oall_rtrs = ospf->all_rtrs;
|
|
ospf->all_rtrs = all_rtrs;
|
|
+#ifdef SUPPORT_OSPF_API
|
|
ospf_apiserver_notify_reachable(ospf->oall_rtrs, ospf->all_rtrs);
|
|
+#endif
|
|
|
|
/* Free old ABR/ASBR routing table */
|
|
if (ospf->old_rtrs)
|