Merge pull request #16927 from FRRouting/mergify/bp/stable/9.1/pr-16913

bgpd: EVPN fix per rd specific type-2 json output (backport #16913)
This commit is contained in:
Donatas Abraitis 2024-10-14 08:28:21 +03:00 committed by GitHub
commit 3135d75976
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++; path_cnt++;
} }
if (json && path_cnt) { if (json) {
if (path_cnt) 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); json_object_int_add(json, "numPaths", path_cnt);
} else { } else {
vty_out(vty, "\nDisplayed %u paths for requested prefix\n", vty_out(vty, "\nDisplayed %u paths for requested prefix\n",