Skip to content
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

Merged
merged 5 commits into from
Apr 11, 2019

Conversation

anasbadaha
Copy link
Contributor

Signed-off-by: Anas Badaha anasb@mellanox.com

SUMMARY

Adding Support for Onyx Vxlan

ISSUE TYPE
  • New Module Pull Request
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
ansible 2.8.0a1.post0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /.autodirect/mtrswgwork/anasb/ansible_dev8/lib/ansible
  executable location = /.autodirect/mtrswgwork/anasb/ansible_dev8/bin/ansible
  python version = 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]

Signed-off-by: Anas Badaha <anasb@mellanox.com>
@ansibot
Copy link
Contributor

ansibot commented Apr 10, 2019

@ansibot ansibot added affects_2.8 This issue/PR affects Ansible v2.8 core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. networking Network category new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 10, 2019
Signed-off-by: Anas Badaha <anasb@mellanox.com>
Signed-off-by: Anas Badaha <anasb@mellanox.com>
Signed-off-by: Anas Badaha <anasb@mellanox.com>
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 10, 2019
@justjais
Copy link
Contributor

cc. @gundalow

@ansibot ansibot removed the needs_triage Needs a first human triage before being processed. label Apr 10, 2019
@anasbadaha
Copy link
Contributor Author

Hi @samerd,

Please review the following PR and let me know if you have any comments.

Thanks

Copy link
Contributor

@samerd samerd left a 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

@ansibot ansibot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 10, 2019
Signed-off-by: Anas Badaha <anasb@mellanox.com>
@anasbadaha
Copy link
Contributor Author

Hi @samerd,

I have fixed all you comments, Please approve if it's OK for you.

Thanks

Copy link
Contributor

@samerd samerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. labels Apr 11, 2019
@justjais justjais merged commit 2cc91e2 into ansible:devel Apr 11, 2019
@ansible ansible locked and limited conversation to collaborators Jul 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.8 This issue/PR affects Ansible v2.8 core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. networking Network category new_module This PR includes a new module. new_plugin This PR includes a new plugin. support:community This issue/PR relates to code supported by the Ansible community. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants