diff options
author | paco <paco@voltanet.io> | 2018-06-13 12:25:45 +0200 |
---|---|---|
committer | paco <paco@voltanet.io> | 2018-06-13 12:25:45 +0200 |
commit | d6ceaca343d924627661a574b59400f54b9c6e98 (patch) | |
tree | 3e41d1ec77c14da4a1c5b59206da0f4394f7f6b9 /bgpd/bgp_vty.c | |
parent | Merge pull request #2298 from qlyoung/pipe-actions-vtysh (diff) | |
download | frr-d6ceaca343d924627661a574b59400f54b9c6e98.tar.xz frr-d6ceaca343d924627661a574b59400f54b9c6e98.zip |
bgpd: dead code (Coverity 1399246)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'bgpd/bgp_vty.c')
-rw-r--r-- | bgpd/bgp_vty.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c index d4ebd54e4..c1851a3e0 100644 --- a/bgpd/bgp_vty.c +++ b/bgpd/bgp_vty.c @@ -8016,16 +8016,11 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi, if (count) vty_out(vty, "\nTotal number of neighbors %d\n", count); else { - if (use_json) - vty_out(vty, - "{\"error\": {\"message\": \"No %s neighbor configured\"}}\n", - afi_safi_print(afi, safi)); - else - vty_out(vty, "No %s neighbor is configured\n", - afi_safi_print(afi, safi)); + vty_out(vty, "No %s neighbor is configured\n", + afi_safi_print(afi, safi)); } - if (dn_count && !use_json) { + if (dn_count) { vty_out(vty, "* - dynamic neighbor\n"); vty_out(vty, "%d dynamic neighbor(s), limit %d\n", dn_count, bgp->dynamic_neighbors_limit); |