-
Notifications
You must be signed in to change notification settings - Fork 680
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[201911][multi asic] show ip bgp summary changes for bgp mon (#1483)
The sonic-net/sonic-buildimage#6920 adds support of adding BGP monitor session on one of the backend ASICs of Multi ASIC platforms. This PR enchances the show ip bgp summary command to display this session Also added unit tests for 'show ip bgp summary' for multi asic platforms
- Loading branch information
Showing
13 changed files
with
836 additions
and
145 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
78 changes: 78 additions & 0 deletions
78
sonic-utilities-tests/mock_tables/asic0/ipv4_bgp_summary.json
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,78 @@ | ||
{ | ||
"ipv4Unicast": { | ||
"routerId": "10.1.0.32", | ||
"as": 65100, | ||
"vrfId": 0, | ||
"vrfName": "default", | ||
"tableVersion": 12172, | ||
"ribCount": 12751, | ||
"ribMemory": 2346184, | ||
"peerCount": 4, | ||
"peerMemory": 83680, | ||
"peerGroupCount": 4, | ||
"peerGroupMemory": 256, | ||
"peers": { | ||
"10.1.0.2": { | ||
"remoteAs": 65100, | ||
"version": 4, | ||
"msgRcvd": 0, | ||
"msgSent": 0, | ||
"tableVersion": 0, | ||
"outq": 0, | ||
"inq": 0, | ||
"peerUptime": "never", | ||
"peerUptimeMsec": 0, | ||
"prefixReceivedCount": 0, | ||
"pfxRcd": 0, | ||
"state": "Active", | ||
"connectionsEstablished": 0, | ||
"connectionsDropped": 0, | ||
"idType": "ipv4" | ||
}, | ||
"10.0.0.1": { | ||
"remoteAs": 65200, | ||
"version": 4, | ||
"msgRcvd": 3191, | ||
"msgSent": 5, | ||
"tableVersion": 0, | ||
"outq": 0, | ||
"inq": 0, | ||
"peerUptime": "00:01:29", | ||
"peerUptimeMsec": 89000, | ||
"peerUptimeEstablishedEpoch": 1614894400, | ||
"prefixReceivedCount": 6370, | ||
"pfxRcd": 6370, | ||
"pfxSnt": 1, | ||
"state": "Established", | ||
"connectionsEstablished": 1, | ||
"connectionsDropped": 0, | ||
"idType": "ipv4" | ||
}, | ||
"10.0.0.5": { | ||
"remoteAs": 65200, | ||
"version": 4, | ||
"msgRcvd": 3191, | ||
"msgSent": 5, | ||
"tableVersion": 0, | ||
"outq": 0, | ||
"inq": 0, | ||
"peerUptime": "00:01:29", | ||
"peerUptimeMsec": 89000, | ||
"peerUptimeEstablishedEpoch": 1614894400, | ||
"prefixReceivedCount": 6370, | ||
"pfxRcd": 6370, | ||
"pfxSnt": 1, | ||
"state": "Established", | ||
"connectionsEstablished": 1, | ||
"connectionsDropped": 0, | ||
"idType": "ipv4" | ||
} | ||
}, | ||
"failedPeers": 2, | ||
"totalPeers": 4, | ||
"dynamicPeers": 0, | ||
"bestPath": { | ||
"multiPathRelax": "true" | ||
} | ||
} | ||
} |
Oops, something went wrong.