]> git.puffer.fish Git - mirror/frr.git/commit
[7.0] bgpd: Incorrect number of peers count in "show bgp ipv6 summary" output 3917/head
authorAkhilesh Samineni <akhilesh.samineni@broadcom.com>
Wed, 6 Mar 2019 18:14:14 +0000 (23:44 +0530)
committerAkhilesh Samineni <akhilesh.samineni@broadcom.com>
Wed, 6 Mar 2019 18:14:14 +0000 (23:44 +0530)
commit8222a033ee8cefd4fa0cb103682a294278a53990
tree1a3d8264cedb990311682f1029384c4b82ab2948
parentccbed70c5644a03224a073e5862fabf1fa03706a
[7.0] bgpd: Incorrect number of peers count in "show bgp ipv6 summary" output

The "show bgp ipv6 summary" output displays incorrect number of peers count.

sonic# show bgp ipv6 summary

IPv6 Unicast Summary:
BGP router identifier 10.1.0.1, local AS number 65100 vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 5, using 103 KiB of memory
Peer groups 1, using 64 bytes of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2003::1 4 65099 0 0 0 0 0 never Active
2088::1 4 65100 0 0 0 0 0 never Active
3021::2 4 65100 0 0 0 0 0 never Active

Total number of neighbors 3
sonic#
In the above output, the peers count displays as 5 but the actual peer count is 3, i.e.. 3 neighbors are activated in ipv6 unicast address family.
Displayed peer count (5) is the number of the neighbors activated in a BGP instance.

Fix : Now the peers count displays the number of neighbors activated per afi/safi.
After Fix:
sonic# show bgp ipv6 summary

IPv6 Unicast Summary:
BGP router identifier 10.1.0.1, local AS number 65100 vrf-id 0
BGP table version 0
RIB entries 0, using 0 bytes of memory
Peers 3, using 62 KiB of memory
Peer groups 1, using 64 bytes of memory

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
2003::1 4 65099 0 0 0 0 0 never Active
2088::1 4 65100 0 0 0 0 0 never Active
3021::2 4 65100 0 0 0 0 0 never Active

Total number of neighbors 3
sonic#

Signed-off-by: Akhilesh Samineni <akhilesh.samineni@broadcom.com>
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h
tests/topotests/all-protocol-startup/r1/show_bgp_ipv6_summary.ref