summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_nb_state.c
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2020-07-02 07:36:51 +0200
committervdhingra <vdhingra@vmware.com>2020-07-16 17:40:42 +0200
commit755100ac8983324e02cca9e1ab50bca1ab2da4da (patch)
tree82f051868e1d186b7164788774ffe57858c34c5a /zebra/zebra_nb_state.c
parentstaticd : Configuration northbound implementation (diff)
downloadfrr-755100ac8983324e02cca9e1ab50bca1ab2da4da.tar.xz
frr-755100ac8983324e02cca9e1ab50bca1ab2da4da.zip
zebra: Moving afi-safi identity to lib
afi-safi identity handling should be in the common place. Signed-off-by: VishalDhingra <vdhingra@vmware.com>
Diffstat (limited to 'zebra/zebra_nb_state.c')
-rw-r--r--zebra/zebra_nb_state.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/zebra/zebra_nb_state.c b/zebra/zebra_nb_state.c
index 4374da360..b5fde5f03 100644
--- a/zebra/zebra_nb_state.c
+++ b/zebra/zebra_nb_state.c
@@ -185,9 +185,8 @@ int lib_vrf_zebra_ribs_rib_get_keys(struct nb_cb_get_keys_args *args)
args->keys->num = 2;
- snprintfrr(args->keys->key[0], sizeof(args->keys->key[0]), "%s:%s",
- "frr-zebra",
- zebra_afi_safi_value2identity(zrt->afi, zrt->safi));
+ snprintfrr(args->keys->key[0], sizeof(args->keys->key[0]), "%s",
+ yang_afi_safi_value2identity(zrt->afi, zrt->safi));
snprintfrr(args->keys->key[1], sizeof(args->keys->key[1]), "%u",
zrt->tableid);
@@ -205,7 +204,7 @@ lib_vrf_zebra_ribs_rib_lookup_entry(struct nb_cb_lookup_entry_args *args)
zvrf = zebra_vrf_lookup_by_id(vrf->vrf_id);
- zebra_afi_safi_identity2value(args->keys->key[0], &afi, &safi);
+ yang_afi_safi_identity2value(args->keys->key[0], &afi, &safi);
table_id = yang_str2uint32(args->keys->key[1]);
/* table_id 0 assume vrf's table_id. */
if (!table_id)