Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] 'show ip bgp summary' command doesn't work when no peer-group is configured #3737

Closed
kalash-nexthop opened this issue Jan 28, 2025 · 0 comments · Fixed by #3739
Closed

Comments

@kalash-nexthop
Copy link
Contributor

kalash-nexthop commented Jan 28, 2025

BGP peer-groups are optional, and show ip bgp summary command should work when no peer-group is configured.

sonic(bash)$ show ip bgp summary
Usage: show ip bgp summary [OPTIONS]
Try "show ip bgp summary -h" for help.
Error: peerGroupCount missing in the bgp_summary

vtysh gives the expected output in this case:

sonic(bash)$ vtysh

Hello, this is FRRouting (version 10.0.1).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

2025/01/27 20:21:52 [YDG3W-JND95] FD Limit set: 1048576 is stupidly large.  Is this what you intended?  Consider using
 --limit-fds also limiting size to 100000
sonic# show ip bgp summary

IPv4 Unicast Summary:
BGP router identifier 10.0.0.3, local AS number 65001 VRF default vrf-id 0
BGP table version 48
RIB entries 3, using 384 bytes of memory
Peers 1, using 20 KiB of memory

Neighbor        V         AS   MsgRcvd   MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd   PfxSnt Desc
rtr1(10.1.0.1)  4      65100     14459     14624       48    0    0 3d18h59m            0        2 rtr1

Total number of neighbors 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant