summaryrefslogtreecommitdiff
path: root/zebra/zebra_nb.h
diff options
context:
space:
mode:
authorChirag Shah <chirag@cumulusnetworks.com>2020-05-12 14:09:57 -0700
committerChirag Shah <chirag@cumulusnetworks.com>2020-05-12 14:31:37 -0700
commit77f4028e503aa76ea5a06f2393b7607b6bcf5da9 (patch)
tree55ac4325f06818d64aecdaa1b3b2b3b1f3390dfd /zebra/zebra_nb.h
parentdb856683559935952edaf90079fa0e45cb4cefe6 (diff)
zebra: afi-safi identity to value apis
Helper APIs to convert afi-safi identity to values. Signed-off-by: Renato Westphal <renato@opensourcerouting.org> Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_nb.h')
-rw-r--r--zebra/zebra_nb.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/zebra_nb.h b/zebra/zebra_nb.h
index b880dea357..15350eb53b 100644
--- a/zebra/zebra_nb.h
+++ b/zebra/zebra_nb.h
@@ -26,6 +26,10 @@ extern "C" {
extern const struct frr_yang_module_info frr_zebra_info;
+/* helper functions */
+const char *zebra_afi_safi_value2identity(afi_t afi, safi_t safi);
+void zebra_afi_safi_identity2value(const char *key, afi_t *afi, safi_t *safi);
+
/* prototypes */
int get_route_information_rpc(struct nb_cb_rpc_args *args);
int get_v6_mroute_info_rpc(struct nb_cb_rpc_args *args);