diff options
author | Donald Sharp <sharpd@nvidia.com> | 2021-04-26 15:21:43 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2021-05-05 16:08:06 +0200 |
commit | 38078b1d5aa0119da762440e0187881dc9da9adf (patch) | |
tree | cfb31ec03bc6372386f0e4079baceb230d964804 /zebra | |
parent | zebra: Allow the zvrf to know it's vrf when allocing (diff) | |
download | frr-38078b1d5aa0119da762440e0187881dc9da9adf.tar.xz frr-38078b1d5aa0119da762440e0187881dc9da9adf.zip |
zebra: Add some ability to know what hash is for what vni
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/zebra_evpn.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/zebra/zebra_evpn.c b/zebra/zebra_evpn.c index 80e06d913..f5350c79a 100644 --- a/zebra/zebra_evpn.c +++ b/zebra/zebra_evpn.c @@ -1011,6 +1011,7 @@ zebra_evpn_t *zebra_evpn_lookup(vni_t vni) */ zebra_evpn_t *zebra_evpn_add(vni_t vni) { + char buffer[80]; struct zebra_vrf *zvrf; zebra_evpn_t tmp_zevpn; zebra_evpn_t *zevpn = NULL; @@ -1024,11 +1025,13 @@ zebra_evpn_t *zebra_evpn_add(vni_t vni) zebra_evpn_es_evi_init(zevpn); + snprintf(buffer, sizeof(buffer), "Zebra EVPN MAC Table vni: %u", vni); /* Create hash table for MAC */ - zevpn->mac_table = zebra_mac_db_create("Zebra EVPN MAC Table"); + zevpn->mac_table = zebra_mac_db_create(buffer); + snprintf(buffer, sizeof(buffer), "Zebra EVPN Neighbor Table vni: %u", vni); /* Create hash table for neighbors */ - zevpn->neigh_table = zebra_neigh_db_create("Zebra EVPN Neighbor Table"); + zevpn->neigh_table = zebra_neigh_db_create(buffer); return zevpn; } |