[Buffer manager][201911]Regression test case for traditional buffer manager in 201911#3889
Merged
qiluo-msft merged 7 commits intosonic-net:201911from Sep 27, 2021
stephenxs:201911-buffer-manager-github
Merged
[Buffer manager][201911]Regression test case for traditional buffer manager in 201911#3889qiluo-msft merged 7 commits intosonic-net:201911from stephenxs:201911-buffer-manager-github
qiluo-msft merged 7 commits intosonic-net:201911from
stephenxs:201911-buffer-manager-github
Conversation
1. For all ports in the config_db,
- Check whether there is no lossless buffer PG configured on an admin-down port
- Check whether the lossless PG aligns with the port's speed and cable length
- If name to oid maps exist for port and PG, check whether the information in ASIC_DB aligns with that in CONFIG_DB
- If a lossless profile hasn't been checked, check whether lossless profile in CONFIG_DB aligns with
- pg_profile_lookup.ini according to speed and cable length
- information in ASIC_DB
2. Shutdown a port and check whether the lossless buffer PG has been remvoed
3. Startup the port and check whether the lossless PG has been readded.
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
neethajohn
reviewed
Sep 21, 2021
Contributor
|
@stephenxs , isn't this testcases only applicable to 201911? Then we also need to add a version check in the beginning and skip if there is a version mismatch |
Signed-off-by: Stephen Sun <stephens@nvidia.com>
Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Check whether file exists before cat it - Skip the test if the version is not 201911 Signed-off-by: Stephen Sun <stephens@nvidia.com>
Contributor
Author
Fixed. |
neethajohn
approved these changes
Sep 24, 2021
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.
Description of PR
Summary:
Add test case for traditional buffer manager for fundamental functionalities and reclaiming unused buffer.
Signed-off-by: Stephen Sun stephens@nvidia.com
Type of change
Back port request
Approach
What is the motivation for this PR?
Add test case for traditional buffer manager for fundamental functionalities and reclaiming unused buffer.
How did you do it?
How did you verify/test it?
Run regression test.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation