summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2019-07-10 13:39:26 -0700
committerGitHub <noreply@github.com>2019-07-10 13:39:26 -0700
commit84f4f72638d7f82fbbcb65599d8a27e7ef88bc8c (patch)
treeb4814dfff03d7da450b663a1bb395e118f842e58
parentfa683238113181fe7a83161ce02725e6abee0eaf (diff)
parentc684d47726fcdca52b84b743a29a1aa303e97b4f (diff)
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 44e9375dc9..a22082c072 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;
}