summaryrefslogtreecommitdiff
path: root/pbrd/pbr_debug.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-04-03 16:46:11 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-17 18:43:47 -0400
commite14f43ccae1b4590e24ad4be57bd48f0a649de12 (patch)
tree0f600d8afae382c89508488f2ff592306b0adad5 /pbrd/pbr_debug.h
parent0f03639dedf5ef4242fb91b9b86903a3d179a17a (diff)
pbrd: move debug vty into pbr_vty.c
Dev docs say that CLI goes in _vty.c files Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_debug.h')
-rw-r--r--pbrd/pbr_debug.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/pbrd/pbr_debug.h b/pbrd/pbr_debug.h
index 2744724629..e72fb88beb 100644
--- a/pbrd/pbr_debug.h
+++ b/pbrd/pbr_debug.h
@@ -38,9 +38,29 @@ extern struct debug pbr_dbg_event;
void pbr_debug_init(void);
/*
- * Install PBR debugging VTY commands.
+ * Set or unset flags on all debugs for pbrd.
+ *
+ * flags
+ * The flags to set
+ *
+ * set
+ * Whether to set or unset the specified flags
+ */
+void pbr_debug_set_all(uint32_t flags, bool set);
+
+/*
+ * Config write helper.
+ *
+ * vty
+ * Vty to write to
+ *
+ * config
+ * Whether we are writing to show run or saving config file
+ *
+ * Returns:
+ * 0 for convenience
*/
-void pbr_debug_init_vty(void);
+int pbr_debug_config_write_helper(struct vty *vty, bool config);
/*
* Print PBR debugging configuration.