]> git.proxmox.com Git - mirror_frr.git/blame - staticd/static_debug.h
Merge pull request #7856 from patrasar/2555301
[mirror_frr.git] / staticd / static_debug.h
CommitLineData
31ddf3b7
MS
1/*
2 * Staticd debug related functions
3 * Copyright (C) 2019 Volta Networks Inc.
4 * Mark Stapp
5 *
8678d638 6 * This file is part of FRRouting (FRR).
31ddf3b7
MS
7 *
8 * GNU Zebra is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
11 * later version.
12 *
13 * GNU Zebra is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for 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
23#ifndef _STATIC_DEBUG_H
24#define _STATIC_DEBUG_H
25
26
27#include <zebra.h>
28
29#include "lib/debug.h"
30
31/* staticd debugging records */
f140bd50 32extern struct debug static_dbg_events;
b2f6ab67 33extern struct debug static_dbg_route;
31ddf3b7
MS
34
35/*
36 * Initialize staticd debugging.
37 *
38 * Installs VTY commands and registers callbacks.
39 */
40void static_debug_init(void);
41
42/*
43 * Print staticd debugging configuration.
44 *
45 * vty
46 * VTY to print debugging configuration to.
47 */
48int static_config_write_debug(struct vty *vty);
49
50/*
51 * Print staticd debugging configuration, human readable form.
52 *
53 * vty
54 * VTY to print debugging configuration to.
55 */
56int static_debug_status_write(struct vty *vty);
57
58/*
59 * Set debugging status.
60 *
61 * vtynode
62 * vty->node
63 *
64 * onoff
65 * Whether to turn the specified debugs on or off
66 *
67 * events
68 * Debug general internal events
69 *
70 */
b2f6ab67 71void static_debug_set(int vtynode, bool onoff, bool events, bool route);
31ddf3b7
MS
72
73
74#endif /* _STATIC_DEBUG_H */