]>
git.proxmox.com Git - mirror_frr.git/blob - pbrd/pbr_debug.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2018 Cumulus Networks, Inc.
7 #ifndef __PBR_DEBUG_H__
8 #define __PBR_DEBUG_H__
14 /* PBR debugging records */
15 extern struct debug pbr_dbg_map
;
16 extern struct debug pbr_dbg_zebra
;
17 extern struct debug pbr_dbg_nht
;
18 extern struct debug pbr_dbg_event
;
21 * Initialize PBR debugging.
23 * Installs VTY commands and registers callbacks.
25 void pbr_debug_init(void);
28 * Set or unset flags on all debugs for pbrd.
34 * Whether to set or unset the specified flags
36 void pbr_debug_set_all(uint32_t flags
, bool set
);
39 * Config write helper.
45 * Whether we are writing to show run or saving config file
50 int pbr_debug_config_write_helper(struct vty
*vty
, bool config
);
53 * Print PBR debugging configuration.
56 * VTY to print debugging configuration to.
58 int pbr_debug_config_write(struct vty
*vty
);
60 #endif /* __PBR_DEBUG_H__ */