]>
git.proxmox.com Git - mirror_frr.git/blob - pbrd/pbr_debug.h
3 * Copyright (C) 2018 Cumulus Networks, Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef __PBR_DEBUG_H__
21 #define __PBR_DEBUG_H__
27 /* PBR debugging records */
28 extern struct debug pbr_dbg_map
;
29 extern struct debug pbr_dbg_zebra
;
30 extern struct debug pbr_dbg_nht
;
31 extern struct debug pbr_dbg_event
;
34 * Initialize PBR debugging.
36 * Installs VTY commands and registers callbacks.
38 void pbr_debug_init(void);
41 * Set or unset flags on all debugs for pbrd.
47 * Whether to set or unset the specified flags
49 void pbr_debug_set_all(uint32_t flags
, bool set
);
52 * Config write helper.
58 * Whether we are writing to show run or saving config file
63 int pbr_debug_config_write_helper(struct vty
*vty
, bool config
);
66 * Print PBR debugging configuration.
69 * VTY to print debugging configuration to.
71 int pbr_debug_config_write(struct vty
*vty
);
73 #endif /* __PBR_DEBUG_H__ */