Merge pull request #12684 from chiragshah6/fdev2

bgpd: evpn route detail json display non prett
This commit is contained in:
Donatas Abraitis 2023-01-25 10:30:10 +02:00 committed by GitHub
commit 88bcd9f7ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4807,8 +4807,15 @@ DEFUN(show_bgp_l2vpn_evpn_route,
evpn_show_all_routes(vty, bgp, type, json, detail);
if (uj)
if (uj) {
if (detail) {
vty_out(vty, "%s\n", json_object_to_json_string(json));
json_object_free(json);
} else {
vty_json(vty, json);
}
}
return CMD_SUCCESS;
}