Skip to content

Commit

Permalink
Merge pull request #16913 from chiragshah6/evpn_dev4
Browse files Browse the repository at this point in the history
bgpd: EVPN fix per rd specific type-2 json output
  • Loading branch information
ton31337 authored Sep 25, 2024
2 parents 8d76a02 + ff008ce commit 51b19f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_evpn_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 51b19f9

Please sign in to comment.