Before:
```
$ vtysh -c 'show bgp l2vpn evpn route detail json'
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
<<<<<<<<<<<<<<<<<<<< empty line
{
...
"numPrefix":4,
"numPaths":4 <<<<< four paths = four empty lines
}
```
Contain as much "empty lines" before the JSON string as the number
of paths displayed.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
vty_out(vty, " Gateway IP %s", gwip_buf);
}
- if (safi == SAFI_EVPN)
+ if (safi == SAFI_EVPN && !json_path)
vty_out(vty, "\n");
/* Line1 display AS-path, Aggregator */
label = label_pton(&dest->local_label);
if (safi == SAFI_EVPN) {
-
if (!json) {
vty_out(vty, "BGP routing table entry for %s%s%pFX\n",
prd ? prefix_rd2str(prd, buf1, sizeof(buf1))