Merge pull request #16925 from FRRouting/mergify/bp/stable/10.1/pr-16913

bgpd: EVPN fix per rd specific type-2 json output (backport #16913)
This commit is contained in:
Donald Sharp 2024-09-25 17:56:06 -04:00 committed by GitHub
commit d6e4c5ef7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2820,9 +2820,9 @@ static void evpn_show_route_rd_macip(struct vty *vty, struct bgp *bgp,
path_cnt++;
}
if (json && path_cnt) {
if (json) {
if (path_cnt)
json_object_object_addf(json, json_paths, "%pFX", &p);
json_object_object_add(json, "paths", json_paths);
json_object_int_add(json, "numPaths", path_cnt);
} else {
vty_out(vty, "\nDisplayed %u paths for requested prefix\n",