-
Notifications
You must be signed in to change notification settings - Fork 684
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] fix show bgp summary when no neighbors are present on one ASIC #3158
Merged
arlakshm
merged 2 commits into
sonic-net:master
from
arlakshm:dev/aralakshm/bgp_show_bug
Feb 8, 2024
Merged
[chassis] fix show bgp summary when no neighbors are present on one ASIC #3158
arlakshm
merged 2 commits into
sonic-net:master
from
arlakshm:dev/aralakshm/bgp_show_bug
Feb 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
judyjoseph
approved these changes
Feb 7, 2024
@gechiang for vis |
MSFT ADO: 26741360 |
mssonicbld
pushed a commit
to mssonicbld/sonic-utilities
that referenced
this pull request
Feb 12, 2024
…SIC (sonic-net#3158) This PR sonic-net#3099 fixes the case where on chassis Linecard there are no BGP neighbors. However, if the Linecard has neighbors on one ASIC but not on other, the command show bgp summary displayed no neighbors. This PR fixes this. How I did it Add check in bgp_util to create empty peer list only once Add UT to cover this case
Cherry-pick PR to 202311: #3162 |
mssonicbld
pushed a commit
that referenced
this pull request
Feb 12, 2024
…SIC (#3158) This PR #3099 fixes the case where on chassis Linecard there are no BGP neighbors. However, if the Linecard has neighbors on one ASIC but not on other, the command show bgp summary displayed no neighbors. This PR fixes this. How I did it Add check in bgp_util to create empty peer list only once Add UT to cover this case
@StormLiangMS verified on 202305 branch. Please help with cherry-pick. |
mssonicbld
pushed a commit
to mssonicbld/sonic-utilities
that referenced
this pull request
Apr 26, 2024
…SIC (sonic-net#3158) This PR sonic-net#3099 fixes the case where on chassis Linecard there are no BGP neighbors. However, if the Linecard has neighbors on one ASIC but not on other, the command show bgp summary displayed no neighbors. This PR fixes this. How I did it Add check in bgp_util to create empty peer list only once Add UT to cover this case
Cherry-pick PR to 202305: #3291 |
mssonicbld
pushed a commit
that referenced
this pull request
Apr 26, 2024
…SIC (#3158) This PR #3099 fixes the case where on chassis Linecard there are no BGP neighbors. However, if the Linecard has neighbors on one ASIC but not on other, the command show bgp summary displayed no neighbors. This PR fixes this. How I did it Add check in bgp_util to create empty peer list only once Add UT to cover this case
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Approved for 202305 Branch
Approved for 202311 Branch
Chassis for 202205 Branch
included in chassis for 202205 branch
indicate that this PR got merged into the "chassis for 202205 branch"
Included in 202305 Branch
Included in 202311 Branch
Request for 202305 Branch
Request for 202311 Branch
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
This PR #3099 fixes the case where on chassis Linecard there are no BGP neighbors. However, if the Linecard has neighbors on one ASIC but not on other, the command
show bgp summary
displayed no neighbors. This PR fixes this.How I did it
Add check in bgp_util to create empty peer list only once
Add UT to cover this case
How to verify it
UT and on chassis LC
Wrong output
After fix