mirror_frr/tests
Akhilesh Samineni 210ec2a0d6 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>
2019-03-07 13:17:25 +05:30
..
bgpd bgpd: interface based peers should automatically override it's peer group 2019-01-25 20:40:05 -05:00
helpers Treewide: use ANSI function definitions 2019-01-24 11:21:59 +01:00
isisd tests: Verify correct operation of lsp_build_list_nonzero_ht 2018-11-12 12:24:10 +01:00
lib *: Rename backet to bucket 2019-02-25 16:22:36 +00:00
ospf6d build: non-recursive tests 2018-09-08 21:26:54 +02:00
topotests bgpd: Incorrect number of peers count in "show bgp ipv6 summary output 2019-03-07 13:17:25 +05:30
.gitignore tests: add C++ header compatibility smoke test 2019-02-11 22:34:12 -02:00
Makefile build: non-recursive tests 2018-09-08 21:26:54 +02:00
Makefile.in doc: move topotests docs to developers guide 2019-02-05 19:25:16 +00:00
pytest.ini tests: Exclude topotests from consideration 2018-11-27 20:22:10 -05:00
runtests.py tests: add pytest testrunners 2017-02-13 17:43:47 +01:00
subdir.am tests: add C++ header compatibility smoke test 2019-02-11 22:34:12 -02:00
test_lblmgr.c *: Replace zclient_new with zclient_new_notify 2018-11-12 09:16:23 -05:00