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

[chassis] show ip bgp summary fails on chassis linecards with no eBGP neighbors #3098

Closed
arlakshm opened this issue Dec 21, 2023 · 0 comments · Fixed by #3099
Closed

[chassis] show ip bgp summary fails on chassis linecards with no eBGP neighbors #3098

arlakshm opened this issue Dec 21, 2023 · 0 comments · Fixed by #3099

Comments

@arlakshm
Copy link
Contributor

Description

Steps to reproduce the issue

  1. On a Linecard with no eBGP neighbors run the command show ip bgp summary

Describe the results you received

The command errors out with this error

admin@sonic:~$ show ip bgp summary

IPv4 Unicast Summary:
asic0: BGP router identifier 10.212.65.8, local AS number 64902 vrf-id 0
BGP table version 2303
asic1: BGP router identifier 10.212.65.9, local AS number 64902 vrf-id 0
BGP table version 2887
RIB entries 2696, using 496064 bytes of memory
Peers 18, using 13334544 KiB of memory
Peer groups 4, using 256 bytes of memory


Usage: show ip bgp summary [OPTIONS]
Try "show ip bgp summary -h" for help.

Error: peers missing in the bgp_summary 

Describe the results you expected

The command should not error but instead display output as below

autotest@sonic:~$ show ip bgp summary

IPv4 Unicast Summary:
asic0: BGP router identifier 192.0.0.1, local AS number 65100 vrf-id 0
BGP table version 11
asic1: BGP router identifier 192.0.0.2, local AS number 65100 vrf-id 0
BGP table version 12
RIB entries 0, using 0 bytes of memory
Peers 0, using 0 KiB of memory
Peer groups 0, using 0 bytes of memory


Neighbhor    V    AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ    Up/Down    State/PfxRcd    NeighborName
-----------  ---  ----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------

Total number of neighbors 0
autotest@sonic:~$

Additional information you deem important (e.g. issue happens only occasionally)

Output of show version

on 202205 image

(paste your output here)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment