]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: install MPLS CLI commands only if MPLS is enabled.
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 14 Sep 2016 20:55:21 +0000 (17:55 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 23 Sep 2016 13:31:20 +0000 (09:31 -0400)
commit41675b4c5ed055e7a82e6d997ba38be512ebd335
treecf7bb9515562d9e4ef3eb247eef5949988968f17
parent1c1cf002a1e1975993e36c42daec14657e2bdc38
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>
vtysh/Makefile.am
zebra/Makefile.am
zebra/main.c
zebra/zebra_mpls_vty.c [new file with mode: 0644]
zebra/zebra_static.h
zebra/zebra_vty.c
zebra/zserv.h