mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-03 09:38:49 +00:00
bgpd: Print empty JSON {}
if no entries under show bgp ipv4 vpn json
Before this, the application fails that is parsing JSON (expecting). Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
6cf8a4bf42
commit
0224b3296c
@ -11719,6 +11719,9 @@ int bgp_show_table_rd(struct vty *vty, struct bgp *bgp, safi_t safi,
|
||||
vty_out(vty,
|
||||
"\nDisplayed %ld routes and %ld total paths\n",
|
||||
output_cum, total_cum);
|
||||
} else {
|
||||
if (use_json && output_cum == 0)
|
||||
vty_out(vty, "{}\n");
|
||||
}
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user