summaryrefslogtreecommitdiffstats
path: root/zebra/zserv.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2016-09-14 22:55:21 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 15:31:20 +0200
commit41675b4c5ed055e7a82e6d997ba38be512ebd335 (patch)
treecf7bb9515562d9e4ef3eb247eef5949988968f17 /zebra/zserv.h
parentMPLS: ignore hardware restrictions when --enable-cumulus is not given. (diff)
downloadfrr-41675b4c5ed055e7a82e6d997ba38be512ebd335.tar.xz
frr-41675b4c5ed055e7a82e6d997ba38be512ebd335.zip
zebra: install MPLS CLI commands only if MPLS is enabled.
To keep things simple, zebra's code should be the same whether MPLS is enabled or not. Then, when MPLS is not enabled, we just disable all MPLS CLI commands. This way we don't need to add a lot of #ifdef cruft in zebra's core, improving code readability. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r--zebra/zserv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h
index ce243dd6a..ceff6a96a 100644
--- a/zebra/zserv.h
+++ b/zebra/zserv.h
@@ -149,6 +149,9 @@ extern void kernel_terminate (struct zebra_ns *);
extern void zebra_route_map_init (void);
extern void zebra_snmp_init (void);
extern void zebra_vty_init (void);
+#if defined(HAVE_MPLS)
+extern void zebra_mpls_vty_init (void);
+#endif
extern int zsend_vrf_add (struct zserv *, struct zebra_vrf *);
extern int zsend_vrf_delete (struct zserv *, struct zebra_vrf *);