mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 15:58:18 +00:00
zebra: fix json for show evpn arp-cache vni vtep
The function zebra_vxlan_print_neigh_vni_vtep does not create a json object when json has been requested from the CLI and as a result it prints out the information in normal CLI format. Fix is to allocate the json object when required. Signed-off-by: Pat Ruddy <pat@voltanet.io>
This commit is contained in:
parent
f6be730827
commit
1cc5b09394
@ -6523,6 +6523,9 @@ void zebra_vxlan_print_neigh_vni_vtep(struct vty *vty, struct zebra_vrf *zvrf,
|
||||
if (!num_neigh)
|
||||
return;
|
||||
|
||||
if (use_json)
|
||||
json = json_object_new_object();
|
||||
|
||||
memset(&wctx, 0, sizeof(struct neigh_walk_ctx));
|
||||
wctx.zvni = zvni;
|
||||
wctx.vty = vty;
|
||||
|
Loading…
Reference in New Issue
Block a user