summaryrefslogtreecommitdiffstats
path: root/zebra/main.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-22 23:03:52 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-04-23 04:50:24 +0200
commit453844abd7bce28479d10490de513ca59cd0d490 (patch)
tree7396f2ff275f5e8186975d819b3cc75a4b3b34bc /zebra/main.c
parentzebra: clean up zapi organization (diff)
downloadfrr-453844abd7bce28479d10490de513ca59cd0d490.tar.xz
frr-453844abd7bce28479d10490de513ca59cd0d490.zip
zebra: use hooks for client lifecycle callbacks
zserv.c was using hardcoded callbacks to clean up various components when a client disconnected. Ergo zserv.c had to know about all these unrelated components that it should not care about. We have hooks now, let's use the proper thing instead. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/main.c')
-rw-r--r--zebra/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c
index 0b182253f..9a495c894 100644
--- a/zebra/main.c
+++ b/zebra/main.c
@@ -50,6 +50,7 @@
#include "zebra/zebra_mpls.h"
#include "zebra/label_manager.h"
#include "zebra/zebra_netns_notify.h"
+#include "zebra/zebra_rnh.h"
#define ZEBRA_PTM_SUPPORT
@@ -372,6 +373,9 @@ int main(int argc, char **argv)
/* Init label manager */
label_manager_init(lblmgr_path);
+ /* RNH init */
+ zebra_rnh_init();
+
frr_run(zebrad.master);
/* Not reached... */