summaryrefslogtreecommitdiffstats
path: root/isisd/isisd.c
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2018-11-13 17:33:49 +0100
committerEmanuele Di Pascale <emanuele@voltanet.io>2018-12-18 15:21:15 +0100
commitf084ea552361c94d008ed0bfe5c87224ff06a55d (patch)
treec0a342ca75d92c870b0541f818dccdaf68900c84 /isisd/isisd.c
parentisisd: retrofit 'router isis' and 'ip router isis' cmds (diff)
downloadfrr-f084ea552361c94d008ed0bfe5c87224ff06a55d.tar.xz
frr-f084ea552361c94d008ed0bfe5c87224ff06a55d.zip
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 <emanuele@voltanet.io>
Diffstat (limited to '')
-rw-r--r--isisd/isisd.c6
1 files changed, 4 insertions, 2 deletions
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);