summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2019-07-10 22:39:26 +0200
committerGitHub <noreply@github.com>2019-07-10 22:39:26 +0200
commit84f4f72638d7f82fbbcb65599d8a27e7ef88bc8c (patch)
treeb4814dfff03d7da450b663a1bb395e118f842e58
parentMerge pull request #4675 from mgsmith1000/bgp_restart_timer_inbound (diff)
parentbgpd: fix show bgp l2vpn evpn route json (diff)
downloadfrr-84f4f72638d7f82fbbcb65599d8a27e7ef88bc8c.tar.xz
frr-84f4f72638d7f82fbbcb65599d8a27e7ef88bc8c.zip
Merge pull request #4670 from chiragshah6/evpn_dev1
bgpd: fix show bgp l2vpn evpn route json
-rw-r--r--bgpd/bgp_evpn_vty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 44e9375dc..a22082c07 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -2480,7 +2480,9 @@ static void evpn_show_all_routes(struct vty *vty, struct bgp *bgp, int type,
bgp_evpn_show_route_header(vty, bgp,
tbl_ver,
json);
- vty_out(vty, "%19s Extended Community\n"
+ if (!json)
+ vty_out(vty,
+ "%19s Extended Community\n"
, " ");
header = 0;
}