Add DCBx resource module#507
Conversation
|
I have pushed the changes to merge the DCBx global and interfaces modules. Will close out the global DCBx PRs. |
kerry-meyer
left a comment
There was a problem hiding this comment.
I am not finished reviewing the files in this PR, but I am posting the comments that I currently have entered. This will allow time to incorporate the comments I have made so far and, especially, to add support for "replaced" and "overridden" states while I am reviewing the remaining parts of the "config" file and the "test" files.
|
Please post the regression test report for the DCBx resource module under "Output' (after "Regression Test HTML report:) in the top section of this PR. |
kerry-meyer
left a comment
There was a problem hiding this comment.
I have finished checking the current version of the "config" file for this PR and am posting my comments for the additional sections I have reviewed since the initial posting of comments.
The "replace" and "overridden" were not added for DCBx because, during previous discussions, we were under the impressions that these were not mandatory. Now that they are mandatory, we will add them. Following is the implementation details based on recent discussion. For DCBX:DCBx only applies on physical interfaces, For replace:If “want” doesn’t include global DCBx, then no change to the global DCBx For overridden:If global in “want”, and the same as in “have”, do nothing for global |
…gression validation script to not recognize it as empty
kerry-meyer
left a comment
There was a problem hiding this comment.
I am not done checking all the changes from the previous review, but I'm done with checking the "module" file. I have "resolved" most (but not all) of the previous comments for this file and am posting my current additional comments for the file.
I will follow up soon with issue resolution and verification of code review changes made to the other files for this PR.
Please also take a look at and fix the sanity and ansible-lint errors for this PR and provide fixes for these.
One other request: Please resolve the current merge conflicts. This should only require a simple one-line change to two shared files.
|
There was a problem hiding this comment.
- Most of the previous comments are "Resolved" now, but a few are not. I have posted replies or new comments for these.
- A few comments are posted for new content.
- The posted regression results are not readable. Please re-post them. Test cases have not yet been reviewed. They will be checked when passing regression results are posted.
- There are ansible-lint and sanity failures that need to be addressed.
- Code coverage for the dcbx config file is currently at 56%. Additional UT cases are needed to bring the coverage as close to 90+% as possible. (80% is acceptable.)
kerry-meyer
left a comment
There was a problem hiding this comment.
I have checked the regression test file. The set of test cases looks good. I am requesting only one minor change to enhance the "replaced" state test coverage by deleting a few lines from the second "replaced" test case.
(All files have now been checked for this PR review, so after resolution of the current issues, the PR review will be complete.)
Remove the extraneous comma after the "dcbx" facts item.
Clarify the "incorrect interface type" command failure message.
kerry-meyer
left a comment
There was a problem hiding this comment.
All current proposed code changes and corresponding test results look good.
Thank you very much for all your work to provide the DCBx resource module.
Approved.
SUMMARY
DCBX_INTERFACES module implementation
GitHub Issues
N/A
ISSUE TYPE
COMPONENT NAME
sonic_dcbx_interfaces
related PR
ansible-network/resource_module_models#296
OUTPUT
Regression Test HTML report:
Checklist:
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration
unit test
regression test
regression-2025-05-01-01-39-49.pdf
playbook