-
Notifications
You must be signed in to change notification settings - Fork 661
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
[show] Add subcommand to show midplane status for modular chassis #1267
Merged
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
mprabhu-nokia
force-pushed
the
nokia-midplane-pr
branch
from
November 24, 2020 19:03
f59184f
to
968c45d
Compare
mprabhu-nokia
force-pushed
the
nokia-midplane-pr
branch
from
December 3, 2020 08:00
2228b09
to
65c8f4f
Compare
retest this please |
retest this please |
mprabhu-nokia
force-pushed
the
nokia-midplane-pr
branch
from
December 17, 2020 04:05
390da27
to
631109a
Compare
jleveque
suggested changes
Jan 6, 2021
mprabhu-nokia
force-pushed
the
nokia-midplane-pr
branch
from
January 6, 2021 23:39
eae2b05
to
4701b00
Compare
jleveque
previously approved these changes
Jan 7, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. @judyjoseph to review as well.
retest this please |
judyjoseph
reviewed
Jan 11, 2021
Show Output verification for: show chassis-modules status show chassis-modules midplane-status
judyjoseph
approved these changes
Jan 12, 2021
jleveque
changed the title
Modular-Chassis: Show midplane status
[show] Add subcommand to show midplane status for modular chassis
Jan 12, 2021
jleveque
approved these changes
Jan 12, 2021
2 tasks
lguohan
pushed a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Jan 20, 2021
- [route_check.py] - update includes checks on subscriptions (sonic-net/sonic-utilities#1344) - Validations checks while adding a member to PortChannel and removing a member from a Portchannel (sonic-net/sonic-utilities#1328) - [show] Add subcommand to show midplane status for modular chassis (sonic-net/sonic-utilities#1267) - [pytest][qos][config] Added pytests for "config qos reload" commands" (sonic-net/sonic-utilities#1346) - Drop explict 3 seconds pause between two object updates/deletes. (sonic-net/sonic-utilities#1359) - [show]fix for show muxcable status by replacing "hostname" to "peer_switch" for deriving tor ipv4_address (sonic-net/sonic-utilities#1360) - [PFCWD] Fix 'start' pfcwd command (sonic-net/sonic-utilities#1345) Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
lguohan
pushed a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Jan 21, 2021
- [route_check.py] - update includes checks on subscriptions (sonic-net/sonic-utilities#1344) - Validations checks while adding a member to PortChannel and removing a member from a Portchannel (sonic-net/sonic-utilities#1328) - [show] Add subcommand to show midplane status for modular chassis (sonic-net/sonic-utilities#1267) - [pytest][qos][config] Added pytests for "config qos reload" commands" (sonic-net/sonic-utilities#1346) - Drop explict 3 seconds pause between two object updates/deletes. (sonic-net/sonic-utilities#1359) - [show]fix for show muxcable status by replacing "hostname" to "peer_switch" for deriving tor ipv4_address (sonic-net/sonic-utilities#1360) - [PFCWD] Fix 'start' pfcwd command (sonic-net/sonic-utilities#1345) Signed-off-by: Shlomi Bitton <shlomibi@nvidia.com>
rawal01
added a commit
to rawal01/sonic-mgmt
that referenced
this pull request
Feb 3, 2021
-adding new json file to support fixture in platform tests to skip checks for modules not present in DUT new file: tests/platform_tests/cli/test_show_chassis_module.py -adding new two new test cases for verifying show chassis-module status and show chassis-module midplane status introduced as part of PRs sonic-net/sonic-utilities#1145 and sonic-net/sonic-utilities#1267 tests/platform_tests/conftest.py -adding a fixture that skips checking for modules for DUT
yxieca
pushed a commit
to sonic-net/sonic-mgmt
that referenced
this pull request
Feb 11, 2021
…sonic modular chassis (#2794) Description of PR Summary: What is the motivation for this PR? Add test cases to verify show chassis-module status and show chassis-module midplane-status for VOQ chassis. The cli commands were introduced in following PRs: sonic-net/sonic-utilities#1145 sonic-net/sonic-utilities#1267 How did you do it? Added new script tests/platform_tests/cli/test_show_chassis_module.py for verifying show chassis-module status and show chassis-module midplane status. Introduced test cases: test_show_chassis_module_status: verify the output of command show chassis-module status test_show_chassis_module_midplane_status: verify the output of command show chassis-module midplane-status Added new script test_power_budget_info.py for verifying the redis output for power budget policy in supervisor card of chassis Added a fixture that skips checking for modules for DUT. This new fixture is introduced to skips modules for DUT not present based on entries in inventory file, by default the test it is assumed the chassis is fully equipped and all modules are up. Example to skip certain modules add to skip modules in inventory for DUT: DUT1 skip_modules: 'line-cards': - LINE-CARD0 - LINE-CARD2 'fabric-cards': - FABRIC-CARD3 'psus': - PSU4 - PSU5 Based on inventory file the tests will skip above modules for DUT1. For example, show chassis module will allow empty as status for LINE-CARD0 and LINE-CARD2 while all other will be expected to be ONLINE. How did you verify/test it? Ran sample tests against Nokia chassis with t2 topology using the skip fixture Any platform specific information? Supported testbed topology if it's a new test case? t2
anand-kumar-subramanian
pushed a commit
to anand-kumar-subramanian/sonic-utilities
that referenced
this pull request
Mar 2, 2021
…nic-net#1267) Add subcommand to show midplane status for modular chassis and related unit tests
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.
sonic-utilities: Changes to show midplane status in modular chassis
HLD: sonic-net/SONiC#646
Show command to verify status of midplane in modular chassis
$show chassis_modules midplane-status
How I did it
Extended the show/chassis_modules.py with the midplane-status option
How to verify it
Verified via UT and vendor-platform implementation to show the midplane IP-address and rechability-status
New command output (if the output of a command-line utility has changed)
An example vendor specific output below
CLI Output - On Supervisor
CLI Output - On line-card
Output of REDIS STATE-DB