-
Notifications
You must be signed in to change notification settings - Fork 84
Add DCBx resource module #507
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
Conversation
|
I have pushed the changes to merge the DCBx global and interfaces modules. Will close out the global DCBx PRs. |
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.
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. |
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.
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
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 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.)
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.
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.
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.
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