mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
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:
commit
3135d75976
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user