summaryrefslogtreecommitdiff
path: root/zebra/zebra_dplane.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@cisco.com>2024-04-05 13:32:08 -0400
committerMark Stapp <mjs@cisco.com>2024-04-09 08:59:13 -0400
commit9f285dd0bc0d95ebaea4ee92ef6ef8ef45649162 (patch)
tree1e6d69c46696b7472414a07a4dbab77b89f9b26c /zebra/zebra_dplane.h
parentf090079390dd8e1aaea288ec1b69f8e8bb22de1a (diff)
zebra: add dataplane API version value
Add a version value and accessor API for the zebra dataplane; plugins can test this to detect API changes. Signed-off-by: Mark Stapp <mjs@cisco.com>
Diffstat (limited to 'zebra/zebra_dplane.h')
-rw-r--r--zebra/zebra_dplane.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/zebra/zebra_dplane.h b/zebra/zebra_dplane.h
index 2f7d218508..060b1c8b9e 100644
--- a/zebra/zebra_dplane.h
+++ b/zebra/zebra_dplane.h
@@ -24,6 +24,13 @@
extern "C" {
#endif
+/* Retrieve the dataplane API version number; see libfrr.h to decode major,
+ * minor, sub version values.
+ * Plugins should pay attention to the major version number, at least, to
+ * be able to detect API changes that may not be backward-compatible.
+ */
+uint32_t zebra_dplane_get_version(void);
+
/* Key netlink info from zebra ns */
struct zebra_dplane_info {
ns_id_t ns_id;