summaryrefslogtreecommitdiffstats
path: root/isisd/isisd.c
diff options
context:
space:
mode:
authorEmanuele Di Pascale <emanuele@voltanet.io>2018-11-14 12:34:02 +0100
committerEmanuele Di Pascale <emanuele@voltanet.io>2018-12-18 15:23:49 +0100
commit22af6a806d75f603e54748bfc618f033319c5380 (patch)
tree8067eebd0d9d8234629846ede4f9c2154c77922a /isisd/isisd.c
parentisisd: retrofit the 'redistribute' command (diff)
downloadfrr-22af6a806d75f603e54748bfc618f033319c5380.tar.xz
frr-22af6a806d75f603e54748bfc618f033319c5380.zip
isisd: retrofit the 'topology' command
Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
Diffstat (limited to '')
-rw-r--r--isisd/isisd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/isisd/isisd.c b/isisd/isisd.c
index ee4f7e664..b431e3bbd 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -288,6 +288,7 @@ int isis_area_destroy(const char *area_tag)
return CMD_SUCCESS;
}
+#ifdef FABRICD
static void area_set_mt_enabled(struct isis_area *area, uint16_t mtid,
bool enabled)
{
@@ -313,6 +314,7 @@ static void area_set_mt_overload(struct isis_area *area, uint16_t mtid,
0);
}
}
+#endif /* ifdef FABRICD */
int area_net_title(struct vty *vty, const char *net_title)
{
@@ -1511,6 +1513,7 @@ DEFUN (no_net,
return area_clear_net_title(vty, argv[idx_word]->arg);
}
#endif /* ifdef FABRICD */
+#ifdef FABRICD
DEFUN (isis_topology,
isis_topology_cmd,
"topology " ISIS_MT_NAMES " [overload]",
@@ -1575,6 +1578,7 @@ DEFUN (no_isis_topology,
area_set_mt_overload(area, mtid, false);
return CMD_SUCCESS;
}
+#endif /* ifdef FABRICD */
void isis_area_lsp_mtu_set(struct isis_area *area, unsigned int lsp_mtu)
{
@@ -2190,9 +2194,10 @@ void isis_init()
install_element(ROUTER_NODE, &net_cmd);
install_element(ROUTER_NODE, &no_net_cmd);
#endif /* ifdef FABRICD */
+#ifdef FABRICD
install_element(ROUTER_NODE, &isis_topology_cmd);
install_element(ROUTER_NODE, &no_isis_topology_cmd);
-
+#endif /* ifdef FABRICD */
install_element(ROUTER_NODE, &log_adj_changes_cmd);
install_element(ROUTER_NODE, &no_log_adj_changes_cmd);