-
Notifications
You must be signed in to change notification settings - Fork 666
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chassis] fix show bgp summary when no neighbors are present on one A…
…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
- Loading branch information
1 parent
a634b27
commit 428a5d9
Showing
4 changed files
with
161 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"ipv4Unicast":{ | ||
"routerId":"192.0.0.6", | ||
"as":65100, | ||
"vrfId":0, | ||
"vrfName":"default", | ||
"tableVersion":59923, | ||
"ribCount":163, | ||
"ribMemory":29992, | ||
"peerCount":3, | ||
"peerMemory":3704040, | ||
"peerGroupCount":3, | ||
"peerGroupMemory":128, | ||
"peers":{ | ||
"3.3.3.2":{ | ||
"hostname":"svcstr-sonic-lc1-1", | ||
"remoteAs":65100, | ||
"localAs":65100, | ||
"version":4, | ||
"msgRcvd":127, | ||
"msgSent":123, | ||
"tableVersion":0, | ||
"outq":0, | ||
"inq":0, | ||
"peerUptime":"00:05:26", | ||
"peerUptimeMsec":326000, | ||
"peerUptimeEstablishedEpoch":1707332746, | ||
"pfxRcd":16, | ||
"pfxSnt":12, | ||
"state":"Established", | ||
"peerState":"OK", | ||
"connectionsEstablished":1, | ||
"connectionsDropped":0, | ||
"desc":"ASIC1", | ||
"idType":"ipv4" | ||
}, | ||
"3.3.3.8":{ | ||
"hostname":"svcstr-sonic-lc2-1", | ||
"remoteAs":65100, | ||
"localAs":65100, | ||
"version":4, | ||
"msgRcvd":129, | ||
"msgSent":123, | ||
"tableVersion":0, | ||
"outq":0, | ||
"inq":0, | ||
"peerUptime":"00:05:26", | ||
"peerUptimeMsec":326000, | ||
"peerUptimeEstablishedEpoch":1707332746, | ||
"pfxRcd":18, | ||
"pfxSnt":12, | ||
"state":"Established", | ||
"peerState":"OK", | ||
"connectionsEstablished":1, | ||
"connectionsDropped":0, | ||
"desc":"svcstr-sonic-lc2-1-ASIC1", | ||
"idType":"ipv4" | ||
}, | ||
"10.0.0.1":{ | ||
"hostname":"ARISTA01T2", | ||
"remoteAs":65222, | ||
"localAs":65200, | ||
"version":4, | ||
"msgRcvd":4633, | ||
"msgSent":11029, | ||
"tableVersion":0, | ||
"outq":0, | ||
"inq":0, | ||
"peerUptime":"00:18:33", | ||
"peerUptimeMsec":326000, | ||
"peerUptimeEstablishedEpoch":1707332746, | ||
"pfxRcd":8514, | ||
"pfxSnt":12, | ||
"state":"Established", | ||
"peerState":"OK", | ||
"connectionsEstablished":1, | ||
"connectionsDropped":0, | ||
"desc":"ARISTA01T2", | ||
"idType":"ipv4" | ||
} | ||
|
||
}, | ||
"failedPeers":0, | ||
"displayedPeers": 5, | ||
"totalPeers":5, | ||
"dynamicPeers":0, | ||
"bestPath":{ | ||
"multiPathRelax":"true", | ||
"peerTypeRelax":true | ||
} | ||
} | ||
} |
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