summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_dplane.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2018-08-17 21:50:09 +0200
committerMark Stapp <mjs@voltanet.io>2018-10-25 14:57:04 +0200
commit1d11b21f33c41fca2d95e9e0a0b14608f429ef2b (patch)
tree7b141afc450f9dc95949b1ab2a53f38b35107de7 /zebra/zebra_dplane.h
parentzebra: update routing socket path (diff)
downloadfrr-1d11b21f33c41fca2d95e9e0a0b14608f429ef2b.tar.xz
frr-1d11b21f33c41fca2d95e9e0a0b14608f429ef2b.zip
zebra: add dplane show commands
Add first pass at show commands for the zebra dplane. Add some stats counters to show. Start prep for correct shutdown processing, and for multiple providers. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r--zebra/zebra_dplane.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h
index 88e671e61..aa7443cf8 100644
--- a/zebra/zebra_dplane.h
+++ b/zebra/zebra_dplane.h
@@ -182,6 +182,17 @@ enum zebra_dplane_result dplane_route_update(struct route_node *rn,
enum zebra_dplane_result dplane_route_delete(struct route_node *rn,
struct route_entry *re);
+/*
+ * Vty/cli apis
+ */
+int dplane_show_helper(struct vty *vty, bool detailed);
+int dplane_show_provs_helper(struct vty *vty, bool detailed);
+
+
+/*
+ * Dataplane providers: modules that consume dataplane events.
+ */
+
/* Support string name for a dataplane provider */
#define DPLANE_PROVIDER_NAMELEN 64
@@ -224,8 +235,15 @@ typedef int (*dplane_results_fp)(const dplane_ctx_h ctx);
int dplane_results_register(dplane_results_fp fp);
/*
- * Initialize the dataplane modules at zebra startup.
+ * Initialize the dataplane modules at zebra startup. This is currently called
+ * by the rib module.
*/
void zebra_dplane_init(void);
+/* Finalize/cleanup api, called quite late during zebra shutdown.
+ * Zebra expects to try to clean up all vrfs and all routes during
+ * shutdown, so the dplane must be available until very late.
+ */
+void zebra_dplane_finish(void);
+
#endif /* _ZEBRA_DPLANE_H */