From f084ea552361c94d008ed0bfe5c87224ff06a55d Mon Sep 17 00:00:00 2001 From: Emanuele Di Pascale Date: Tue, 13 Nov 2018 17:33:49 +0100 Subject: isisd: retrofit the 'net' command This is a simple command but with a complex callback, the only one in isisd which uses the resource allocation API implemented in the northbound (i.e. the PREPARE phase). Signed-off-by: Emanuele Di Pascale --- isisd/isisd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'isisd/isisd.c') diff --git a/isisd/isisd.c b/isisd/isisd.c index 3721dff3b..084cbf16c 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -1483,6 +1483,7 @@ DEFUN (no_router_openfabric, return isis_area_destroy(argv[idx_word]->arg); } #endif /* ifdef FABRICD */ +#ifdef FABRICD /* * 'net' command */ @@ -1509,7 +1510,7 @@ DEFUN (no_net, int idx_word = 2; return area_clear_net_title(vty, argv[idx_word]->arg); } - +#endif /* ifdef FABRICD */ DEFUN (isis_topology, isis_topology_cmd, "topology " ISIS_MT_NAMES " [overload]", @@ -2187,9 +2188,10 @@ void isis_init() install_element(CONFIG_NODE, &router_openfabric_cmd); install_element(CONFIG_NODE, &no_router_openfabric_cmd); #endif /* ifdef FABRICD */ +#ifdef FABRICD install_element(ROUTER_NODE, &net_cmd); install_element(ROUTER_NODE, &no_net_cmd); - +#endif /* ifdef FABRICD */ install_element(ROUTER_NODE, &isis_topology_cmd); install_element(ROUTER_NODE, &no_isis_topology_cmd); -- cgit v1.2.3