]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
31ddf3b7 MS |
2 | /* |
3 | * Staticd debug related functions | |
4 | * Copyright (C) 2019 Volta Networks Inc. | |
5 | * Mark Stapp | |
31ddf3b7 MS |
6 | */ |
7 | ||
8 | #ifndef _STATIC_DEBUG_H | |
9 | #define _STATIC_DEBUG_H | |
10 | ||
31ddf3b7 MS |
11 | #include <zebra.h> |
12 | ||
13 | #include "lib/debug.h" | |
14 | ||
deca28a3 CH |
15 | #ifdef __cplusplus |
16 | extern "C" { | |
17 | #endif | |
18 | ||
31ddf3b7 | 19 | /* staticd debugging records */ |
f140bd50 | 20 | extern struct debug static_dbg_events; |
b2f6ab67 | 21 | extern struct debug static_dbg_route; |
b27499d6 | 22 | extern struct debug static_dbg_bfd; |
31ddf3b7 MS |
23 | |
24 | /* | |
25 | * Initialize staticd debugging. | |
26 | * | |
27 | * Installs VTY commands and registers callbacks. | |
28 | */ | |
29 | void static_debug_init(void); | |
30 | ||
31 | /* | |
32 | * Print staticd debugging configuration. | |
33 | * | |
34 | * vty | |
35 | * VTY to print debugging configuration to. | |
36 | */ | |
37 | int static_config_write_debug(struct vty *vty); | |
38 | ||
39 | /* | |
40 | * Print staticd debugging configuration, human readable form. | |
41 | * | |
42 | * vty | |
43 | * VTY to print debugging configuration to. | |
44 | */ | |
45 | int static_debug_status_write(struct vty *vty); | |
46 | ||
47 | /* | |
48 | * Set debugging status. | |
49 | * | |
50 | * vtynode | |
51 | * vty->node | |
52 | * | |
53 | * onoff | |
54 | * Whether to turn the specified debugs on or off | |
55 | * | |
56 | * events | |
57 | * Debug general internal events | |
58 | * | |
59 | */ | |
b27499d6 PG |
60 | void static_debug_set(int vtynode, bool onoff, bool events, bool route, |
61 | bool bfd); | |
31ddf3b7 | 62 | |
deca28a3 CH |
63 | #ifdef __cplusplus |
64 | } | |
65 | #endif | |
31ddf3b7 MS |
66 | |
67 | #endif /* _STATIC_DEBUG_H */ |