diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-25 09:30:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 09:30:10 +0100 |
commit | 88bcd9f7ae2a144b42f81c5dc71b22133cc5adb3 (patch) | |
tree | edc4ab6ed3db71b288c540354889b66db12467c4 /bgpd | |
parent | Merge pull request #12680 from mjstapp/fix_dplane_lists (diff) | |
parent | bgpd: evpn route detail json display non prett (diff) | |
download | frr-88bcd9f7ae2a144b42f81c5dc71b22133cc5adb3.tar.xz frr-88bcd9f7ae2a144b42f81c5dc71b22133cc5adb3.zip |
Merge pull request #12684 from chiragshah6/fdev2
bgpd: evpn route detail json display non prett
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_evpn_vty.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c index ca6f07940..3c7fb4cb1 100644 --- a/bgpd/bgp_evpn_vty.c +++ b/bgpd/bgp_evpn_vty.c @@ -4807,8 +4807,15 @@ DEFUN(show_bgp_l2vpn_evpn_route, evpn_show_all_routes(vty, bgp, type, json, detail); - if (uj) - vty_json(vty, json); + if (uj) { + if (detail) { + vty_out(vty, "%s\n", json_object_to_json_string(json)); + json_object_free(json); + } else { + vty_json(vty, json); + } + } + return CMD_SUCCESS; } |