-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Adding Support For Vxlan In Onyx Switches #55081
Conversation
Signed-off-by: Anas Badaha <anasb@mellanox.com>
Signed-off-by: Anas Badaha <anasb@mellanox.com>
Signed-off-by: Anas Badaha <anasb@mellanox.com>
Signed-off-by: Anas Badaha <anasb@mellanox.com>
cc. @gundalow |
Hi @samerd, Please review the following PR and let me know if you have any comments. Thanks |
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.
Thanks Anas,
The code looks great, however I have few notes:
1- DOCUMENTATION:
choices: ['True', 'False'] --> type: bool
default: True --> default: true
default: False --> default: false
2- EXAMPLES
remove "protocol nve" as it is not being added in this module
3- function _set_vxlan_config:
a. if there is no match for nve_id, no need to continue.
b. self._current_config['vni_vlan_mapping'] = dict() --> vni_vlan_mapping = self._current_config['vni_vlan_mapping'] = dict()
and use this variable after that instead of accessing the dict again
Signed-off-by: Anas Badaha <anasb@mellanox.com>
Hi @samerd, I have fixed all you comments, Please approve if it's OK for you. Thanks |
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 great, thanks!
Signed-off-by: Anas Badaha anasb@mellanox.com
SUMMARY
Adding Support for Onyx Vxlan
ISSUE TYPE
COMPONENT NAME
lib/ansible/modules/network/onyx/onyx_vxlan.py
test/units/modules/network/onyx/fixtures/onyx_show_interfaces_nve.cfg
test/units/modules/network/onyx/fixtures/onyx_show_interfaces_nve_detail.cfg
test/units/modules/network/onyx/test_onyx_vxlan.py
ADDITIONAL INFORMATION