[Show | Command Reference] Add Port breakout Show Command#859
Merged
jleveque merged 5 commits intosonic-net:masterfrom Jun 25, 2020
Merged
[Show | Command Reference] Add Port breakout Show Command#859jleveque merged 5 commits intosonic-net:masterfrom
jleveque merged 5 commits intosonic-net:masterfrom
Conversation
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Contributor
|
As discussed, lets add two more fields, breakout_interfaces, and their speeds. For example: |
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Contributor
Author
Yes, updated the PR. |
jleveque
suggested changes
Jun 1, 2020
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
|
This pull request introduces 1 alert when merging ca30f74 into aae4f85 - view on LGTM.com new alerts:
|
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
|
This pull request introduces 1 alert when merging a5c71c1 into f7b7fcb - view on LGTM.com new alerts:
|
Contributor
|
Please fix LGTM alert |
Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
Contributor
Author
#done |
Contributor
|
Retest this please |
jleveque
approved these changes
Jun 11, 2020
Contributor
|
Retest this please |
1 similar comment
Collaborator
|
Retest this please |
Contributor
|
retest this please |
1 similar comment
Collaborator
|
retest this please |
abdosi
pushed a commit
to abdosi/sonic-utilities
that referenced
this pull request
Aug 4, 2020
) **- What I did** Implemented show interface breakout sub-command to show the port capability and the current breakout mode. Available commands are mentioned below. ``` show interfaces breakout --help show interfaces breakout current-mode ``` **- How I did it** using platform.json, hwsku.json and config-db BREAKOUT_CFG table. **- How to verify it** ``` admin@lnos-x1-a-fab01:~$ show interfaces breakout --help Usage: show interfaces breakout [OPTIONS] COMMAND [ARGS]... Show interface breakout Options: -?, -h, --help Show this message and exit. Commands: current-mode Show interface breakout current-mode ``` ``` admin@lnos-x1-a-fab01:~$ show interfaces breakout { "Ethernet0": { "index": "1,1,1,1", "default_brkout_mode": "1x100G[40G]", "child ports": "Ethernet0", "child port speed": "100G", "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]", "Current Breakout Mode": "1x100G[40G]", "lanes": "65,66,67,68", "alias_at_lanes": "Eth1/1, Eth1/2, Eth1/3, Eth1/4" }, "Ethernet4": { "index": "2,2,2,2", "default_brkout_mode": "1x100G[40G]", "child ports": "Ethernet4,Ethernet5,Ethernet6,Ethernet7", "child port speed": "25G,10G,25G,25G", "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]", "Current Breakout Mode": "4x25G", "lanes": "69,70,71,72", "alias_at_lanes": "Eth2/1, Eth2/2, Eth2/3, Eth2/4" }, "Ethernet8": { "index": "3,3,3,3", "default_brkout_mode": "1x100G[40G]", "child ports": "Ethernet8", "child port speed": "100G", "breakout_modes": "1x100G[40G],2x50G,4x25G[10G]", "Current Breakout Mode": "1x100G[40G]", "lanes": "73,74,75,76", "alias_at_lanes": "Eth3/1, Eth3/2, Eth3/3, Eth3/4" },... continue } ``` ``` admin@lnos-x1-a-fab01:~$ show interfaces breakout current-mode Ethernet0 +-------------+-------------------------+ | Interface | Current Breakout Mode | +=============+=========================+ | Ethernet0 | 4x25G[10G] | +-------------+-------------------------+ ``` ``` admin@lnos-x1-a-fab01:~$ show interfaces breakout current-mode +-------------+-------------------------+ | Interface | Current Breakout Mode | +=============+=========================+ | Ethernet0 | 4x25G[10G] | +-------------+-------------------------+ | Ethernet4 | 4x25G[10G] | +-------------+-------------------------+ | Ethernet8 | 4x25G[10G] | +-------------+-------------------------+ ``` Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Signed-off-by: Sangita Maity sangitamaity0211@gmail.com
- What I did
Implemented show interface breakout sub-command to show the port capability and the current breakout mode.
Available commands are mentioned below.
- How I did it
using platform.json, hwsku.json and config-db BREAKOUT_CFG table.
- How to verify it