Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zclient->redistribute_route_ipv6_add = ldp_zebra_read_route;
zclient->redistribute_route_ipv6_del = ldp_zebra_read_route;
}
+
+void
+ldp_zebra_destroy(void)
+{
+ zclient_stop(zclient);
+ zclient_free(zclient);
+ zclient = NULL;
+}
free(iev_lde);
log_info("terminating");
+
+ vrf_terminate();
+ cmd_terminate();
+ vty_terminate();
+ ldp_zebra_destroy();
+ zprivs_terminate(&ldpd_privs);
+ thread_master_free(master);
+ closezlog(zlog_default);
+
exit(0);
}
extern struct thread_master *master;
/* ldp_zebra.c */
-void ldp_zebra_init(struct thread_master *);
+void ldp_zebra_init(struct thread_master *);
+void ldp_zebra_destroy(void);
/* compatibility */
#ifndef __OpenBSD__