-
Notifications
You must be signed in to change notification settings - Fork 67
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
Added ansible support for LLDP TLVs(port-vlan-id, vlan-name, link-aggregation, maximum-frame-size) #406
base: main
Are you sure you want to change the base?
Added ansible support for LLDP TLVs(port-vlan-id, vlan-name, link-aggregation, maximum-frame-size) #406
Conversation
…regation, maximum-frame-size)
In order to proceed with the code review and merging of these changes, please fix the sanity and UT errors flagged for the current change set posted in 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.
The content of this looks good from my first pass. I have only a minor formatting suggestion for the fragment file and a question about a unit test validation function.
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.
This change set looks good for the most part, but I am posting several questions and requests for changes.
I would also like to check the UT coverage results after the additional changes are pushed.
plugins/module_utils/network/sonic/facts/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
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'm adding a couple more comments/questions on the unit test files.
tests/unit/modules/network/sonic/fixtures/sonic_lldp_interfaces.yaml
Outdated
Show resolved
Hide resolved
Diff and check mode aren't implemented in for this module. Perhaps you can implement it in this PR. You can refer to the implementation of diff and check mode in the lldp_global module or any of the other several modules where it is implemented. dellemc.enterprise_sonic/plugins/module_utils/network/sonic/config/lldp_global/lldp_global.py Line 149 in 1ded095
|
diff and check mode implementation would be done as separate story (https://jira.cec.lab.emc.com/browse/SNC01F-55) |
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
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.
Although most of the previous change requests have been addressed and are now resolved, I am posting some additional change requests (and a question, which I think is answered by comments on the UT "test..." file).
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 and "Resolved" all of my previously posted "Issues".
The current functional code and corresponding test results look good, although I am posting two "Issues" related to comments and documentation.
One of my new "Issues" is a revised form of a previous "Issue", changed due to the modified action in the affected allowed_vlan list conversion function. The other is just for removal of unneeded quotes in the "modules" file "Examples" section.
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Outdated
Show resolved
Hide resolved
plugins/module_utils/network/sonic/config/lldp_interfaces/lldp_interfaces.py
Show resolved
Hide resolved
tests/unit/modules/network/sonic/fixtures/sonic_lldp_interfaces.yaml
Outdated
Show resolved
Hide resolved
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 currently posted changes and corresponding test results look good.
Thank you for providing the Ansible support for the LLDP interface TLVs.
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 my previous concerns were addressed. Looks good to me. Thanks for taking our advice into consideration.
SUMMARY
Added ansible support for LLDP TLVs(port-vlan-id, vlan-name, link-aggregation, maximum-frame-size)
Related PR:
ansible-network/resource_module_models#264
GitHub Issues
List the GitHub issues impacted by this PR. If no Github issues are affected, please indicate this with "N/A".
ISSUE TYPE
COMPONENT NAME
Sonic_lldp_interfaces
OUTPUT
ADDITIONAL INFORMATION
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
Regression test report:
Initial regression-report.pdf
Regression-report -latest - 12 Dec 2024
regression-2024-12-12-17-26-02.html.pdf
Regrssion-report-Jan 6 2025
regression_result_6_jan.pdf
Regression report - Jan10 2025
regression-2025-01-10-22-03-31.html.pdf