]> git.proxmox.com Git - mirror_frr.git/blame - isisd/isis_vty_fabricd.c
isisd: Make lspid_print non-static
[mirror_frr.git] / isisd / isis_vty_fabricd.c
CommitLineData
ef020087
CF
1/*
2 * IS-IS Rout(e)ing protocol - isis_vty_fabricd.c
3 *
4 * This file contains the CLI that is specific to OpenFabric
5 *
6 * Copyright (C) 2018 Christian Franke, for NetDEF, Inc.
7 *
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)
11 * any later version.
12 *
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
16 * more details.
17 *
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
21 */
22#include <zebra.h>
23
24#include "command.h"
25
26#include "isisd.h"
27#include "isis_vty_common.h"
92ed0cde
CF
28#include "fabricd.h"
29#include "isis_tlvs.h"
30
31DEFUN (fabric_tier,
32 fabric_tier_cmd,
33 "fabric-tier (0-14)",
34 "Statically configure the tier to advertise\n"
35 "Tier to advertise\n")
36{
37 VTY_DECLVAR_CONTEXT(isis_area, area);
38
39 uint8_t tier = atoi(argv[1]->arg);
40
41 fabricd_configure_tier(area, tier);
42 return CMD_SUCCESS;
43}
44
45DEFUN (no_fabric_tier,
46 no_fabric_tier_cmd,
47 "no fabric-tier [(0-14)]",
48 NO_STR
49 "Statically configure the tier to advertise\n"
50 "Tier to advertise\n")
51{
52 VTY_DECLVAR_CONTEXT(isis_area, area);
53
54 fabricd_configure_tier(area, ISIS_TIER_UNDEFINED);
55 return CMD_SUCCESS;
56}
ef020087
CF
57
58void isis_vty_daemon_init(void)
59{
92ed0cde
CF
60 install_element(ROUTER_NODE, &fabric_tier_cmd);
61 install_element(ROUTER_NODE, &no_fabric_tier_cmd);
ef020087 62}