2 * IS-IS Rout(e)ing protocol - isis_vty_fabricd.c
4 * This file contains the CLI that is specific to OpenFabric
6 * Copyright (C) 2018 Christian Franke, for NetDEF, Inc.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public Licenseas published by the Free
10 * Software Foundation; either version 2 of the License, or (at your option)
13 * This program is distributed in the hope that it will be useful,but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 * You should have received a copy of the GNU General Public License along
19 * with this program; see the file COPYING; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 #include "isis_vty_common.h"
29 #include "isis_tlvs.h"
34 "Statically configure the tier to advertise\n"
35 "Tier to advertise\n")
37 VTY_DECLVAR_CONTEXT(isis_area
, area
);
39 uint8_t tier
= atoi(argv
[1]->arg
);
41 fabricd_configure_tier(area
, tier
);
45 DEFUN (no_fabric_tier
,
47 "no fabric-tier [(0-14)]",
49 "Statically configure the tier to advertise\n"
50 "Tier to advertise\n")
52 VTY_DECLVAR_CONTEXT(isis_area
, area
);
54 fabricd_configure_tier(area
, ISIS_TIER_UNDEFINED
);
58 DEFUN (debug_fabric_flooding
,
59 debug_fabric_flooding_cmd
,
60 "debug openfabric flooding",
63 "Flooding optimization algorithm\n")
65 isis
->debugs
|= DEBUG_FABRICD_FLOODING
;
66 print_debug(vty
, DEBUG_FABRICD_FLOODING
, 1);
71 DEFUN (no_debug_fabric_flooding
,
72 no_debug_fabric_flooding_cmd
,
73 "no debug openfabric flooding",
77 "Flooding optimization algorithm\n")
79 isis
->debugs
&= ~DEBUG_FABRICD_FLOODING
;
80 print_debug(vty
, DEBUG_FABRICD_FLOODING
, 0);
86 void isis_vty_daemon_init(void)
88 install_element(ROUTER_NODE
, &fabric_tier_cmd
);
89 install_element(ROUTER_NODE
, &no_fabric_tier_cmd
);
90 install_element(ENABLE_NODE
, &debug_fabric_flooding_cmd
);
91 install_element(ENABLE_NODE
, &no_debug_fabric_flooding_cmd
);
92 install_element(CONFIG_NODE
, &debug_fabric_flooding_cmd
);
93 install_element(CONFIG_NODE
, &no_debug_fabric_flooding_cmd
);