]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Remove `prefixReceivedCount` from JSON
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 3 Apr 2020 13:16:06 +0000 (16:16 +0300)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Fri, 3 Apr 2020 13:16:06 +0000 (16:16 +0300)
This is already covered by pfxRcd. Removed due to consistency
between CLI and JSON.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
bgpd/bgp_vty.c

index 9f4347e73620ddd5040de7e2bce30d86328a1c27..0569a770c2e2c1341380d0ba1649f394369a88df 100644 (file)
@@ -9053,13 +9053,6 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
                                peer_uptime(peer->uptime, timebuf, BGP_UPTIME_LEN,
                                            use_json, json_peer);
 
-                               /*
-                                * Adding "pfxRcd" field to match with the corresponding
-                                * CLI. "prefixReceivedCount" will be deprecated in
-                                * future.
-                                */
-                               json_object_int_add(json_peer, "prefixReceivedCount",
-                                                   peer->pcount[afi][pfx_rcd_safi]);
                                json_object_int_add(json_peer, "pfxRcd",
                                                    peer->pcount[afi][pfx_rcd_safi]);