diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2016-09-14 22:55:21 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-09-23 15:31:20 +0200 |
commit | 41675b4c5ed055e7a82e6d997ba38be512ebd335 (patch) | |
tree | cf7bb9515562d9e4ef3eb247eef5949988968f17 /zebra/main.c | |
parent | MPLS: ignore hardware restrictions when --enable-cumulus is not given. (diff) | |
download | frr-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/main.c')
-rw-r--r-- | zebra/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/main.c b/zebra/main.c index e06a17ca4..dd7e9d9ec 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -350,6 +350,9 @@ main (int argc, char **argv) zebra_debug_init (); router_id_cmd_init (); zebra_vty_init (); +#if defined(HAVE_MPLS) + zebra_mpls_vty_init (); +#endif access_list_init (); prefix_list_init (); #if defined (HAVE_RTADV) |