mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-24 17:52:19 +00:00
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:
commit
d6e4c5ef7c
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user