summaryrefslogtreecommitdiff
path: root/ldpd/ldp_zebra.c
diff options
context:
space:
mode:
authorKaren Schoener <karen@voltanet.io>2020-12-09 12:09:18 -0500
committerKaren Schoener <karen@volta.io>2020-12-09 14:11:38 -0500
commit4d1e5644b737663f02db4601b4f6d837a4986ca0 (patch)
tree8b14dc431eb4da7d43313f866de8b07489bcdd2d /ldpd/ldp_zebra.c
parent327c3aad2a08021ef2e4239bd0df123fa2845fbd (diff)
ldpd, isisd, ospfd: Remove periodic ldp-sync hello message
Removing the obsolete ldp-sync periodic 'hello' message. When ldp-sync is configured, IGPs take action if the LDP process goes down. The IGPs have been updated to use the zapi client close callback to detect the LDP process going down. Signed-off-by: Karen Schoener <karen@voltanet.io>
Diffstat (limited to 'ldpd/ldp_zebra.c')
-rw-r--r--ldpd/ldp_zebra.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/ldpd/ldp_zebra.c b/ldpd/ldp_zebra.c
index df9832a281..a53854fa56 100644
--- a/ldpd/ldp_zebra.c
+++ b/ldpd/ldp_zebra.c
@@ -51,8 +51,6 @@ static void ldp_zebra_opaque_register(void);
static void ldp_zebra_opaque_unregister(void);
static int ldp_sync_zebra_send_announce(void);
static int ldp_zebra_opaque_msg_handler(ZAPI_CALLBACK_ARGS);
-static void ldp_sync_zebra_start_hello_timer(void);
-static int ldp_sync_zebra_hello(struct thread *thread);
static void ldp_sync_zebra_init(void);
static struct zclient *zclient;
@@ -176,39 +174,11 @@ stream_failure:
}
static void
-ldp_sync_zebra_start_hello_timer(void)
-{
- thread_add_timer_msec(master, ldp_sync_zebra_hello, NULL, 250, NULL);
-}
-
-static int
-ldp_sync_zebra_hello(struct thread *thread)
-{
- static unsigned int sequence = 0;
- struct ldp_igp_sync_hello hello;
-
- sequence++;
-
- hello.proto = ZEBRA_ROUTE_LDP;
- hello.sequence = sequence;
-
- zclient_send_opaque(zclient, LDP_IGP_SYNC_HELLO_UPDATE,
- (const uint8_t *) &hello, sizeof(hello));
-
- ldp_sync_zebra_start_hello_timer();
-
- return (0);
-}
-
-static void
ldp_sync_zebra_init(void)
{
ldp_sync_zebra_send_announce();
-
- ldp_sync_zebra_start_hello_timer();
}
-
static int
ldp_zebra_send_mpls_labels(int cmd, struct kroute *kr)
{