#include "ospfd/ospf_ase.h"
#include "ospfd/ospf_ldp_sync.h"
#include "ospfd/ospf_gr.h"
+#include "ospfd/ospf_apiserver.h"
DEFINE_QOBJ_TYPE(ospf);
}
ospf_external_lsa_rid_change(ospf);
+
+#ifdef SUPPORT_OSPF_API
+ ospf_apiserver_clients_notify_router_id_change(router_id);
+#endif
}
ospf->inst_shutdown = 0;
ospf_opaque_type11_lsa_init(new);
- SET_FLAG(new->config, OSPF_SEND_EXTRA_DATA_TO_ZEBRA);
-
QOBJ_REG(new, ospf);
new->fd = -1;
}
/* Timer thread for G-R */
-static int ospf_deferred_shutdown_timer(struct thread *t)
+static void ospf_deferred_shutdown_timer(struct thread *t)
{
struct ospf *ospf = THREAD_ARG(t);
ospf_deferred_shutdown_finish(ospf);
-
- return 0;
}
/* Check whether deferred-shutdown must be scheduled, otherwise call
ospf_ldp_sync_if_init(oi);
/*
- * if router_id is not configured, dont bring up
+ * if router_id is not configured, don't bring up
* interfaces.
* ospf_router_id_update() will call ospf_if_update
* whenever r-id is configured instead.
void ospf_master_init(struct thread_master *master)
{
- memset(&ospf_master, 0, sizeof(struct ospf_master));
+ memset(&ospf_master, 0, sizeof(ospf_master));
om = &ospf_master;
om->ospf = list_new();