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

Rename Openswitch to Libreswitch #27971

Closed
wants to merge 1 commit into from
Closed

Conversation

skg-net
Copy link
Contributor

@skg-net skg-net commented Aug 9, 2017

SUMMARY

The old openswitch(ops) (HP) NOS has been migrated to Libreswitch. There is now a new openswitch (opx) NOS supported by Dell and other vendors.
Hence moving the old openswitch modules to libreswitch folders.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

module/network/openswitch
module/network/libreswitch

ANSIBLE VERSION

ansible --version
ansible 2.4.0 (libreswitch a86782e) last updated 2017/08/09 09:22:17 (GMT -700)
config file = None
configured module search path = [u'/home/sganesan/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/sganesan/github/ansible/lib/ansible
executable location = /home/sganesan/github/ansible/bin/ansible
python version = 2.7.11 |Continuum Analytics, Inc.| (default, Dec 6 2015, 18:08:32) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]

ADDITIONAL INFORMATION
  • Currently the modules names remain ops
    * the new openswitch have a different short form opx
    * all the existing tests/playbooks needs to change.
    * libreswitch community haven't got back on the naming convention.

  • I haven't tested this changes, since libreswitch image is not available currently.

@skg-net
Copy link
Contributor Author

skg-net commented Aug 9, 2017

@gundalow @privateip Please have a look at it.

@ansibot
Copy link
Contributor

ansibot commented Aug 9, 2017

@ansibot
Copy link
Contributor

ansibot commented Aug 9, 2017

@skg-net this PR contains more than one new module.

Please submit only one new module per pullrequest. For further explanation, please read grouped module documentation

click here for bot help

@ansibot ansibot added affects_2.4 This issue/PR affects Ansible v2.4 bugfix_pull_request c:module_utils/ module This issue/PR relates to a module. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. needs_triage Needs a first human triage before being processed. networking Network category new_module This PR includes a new module. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests. labels Aug 9, 2017
@Qalthos Qalthos removed the needs_triage Needs a first human triage before being processed. label Aug 9, 2017
@Qalthos
Copy link
Contributor

Qalthos commented Aug 9, 2017

@skg-net are you planning on maintaining this module and addressing issues with it in the future? I am given to understand that even without the name change, these modules were not working properly.

@Qalthos Qalthos self-assigned this Aug 9, 2017
@skg-net
Copy link
Contributor Author

skg-net commented Aug 10, 2017

@Qalthos No, I am not planning to own/maintain these modules. My understanding is if you try with new openswitch modules, it wont work, since its a completely different NOS. But if you try to run with the old openswitch (now libreswitch) it should work.

Since we are going to upload the new openswitch modules, I am just trying to cleanup the namespace.

Copy link
Contributor

@gundalow gundalow left a comment

Choose a reason for hiding this comment

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

These modules will still be called ops_facts

What will the new modules be called?

@@ -38,7 +38,7 @@ The following is a list of module_utils files and a general description. The mod
- network.py - Functions for running commands on networking devices
- nxos.py - Contains definitions and helper functions specific to Cisco NXOS networking devices
- openstack.py - Utilities for modules that work with Openstack instances.
- openswitch.py - Definitions and helper functions for modules that manage OpenSwitch devices
- libreswitch.py - Definitions and helper functions for modules that manage libreswitch devices
Copy link
Contributor

Choose a reason for hiding this comment

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

This list should be in alphabetical order.

lib/ansible/modules/network/openswitch/ops_command.py
lib/ansible/modules/network/openswitch/ops_config.py
lib/ansible/modules/network/openswitch/ops_facts.py
lib/ansible/modules/network/libreswitch/ops_command.py
Copy link
Contributor

Choose a reason for hiding this comment

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

Alphabetical order

@skg-net
Copy link
Contributor Author

skg-net commented Aug 11, 2017

@gundalow The new modules will be called opx_base_xxxx.

@@ -126,7 +126,7 @@
"""
import traceback

import ansible.module_utils.openswitch
import ansible.module_utils.libreswitch
Copy link
Member

Choose a reason for hiding this comment

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

too keep compatibility for those using the old name of the lib, this should be a try/except Import with fallback to the old name.

@bcoca
Copy link
Member

bcoca commented Aug 11, 2017

any plans on renaming the modules themselves? ops_ vs lbs_ ?

@ansibot ansibot added needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. labels Aug 19, 2017
@Qalthos
Copy link
Contributor

Qalthos commented Aug 23, 2017

Since you have neither tested these modules nor do you have any interest in maintaining these modules, we are not going to merge this PR. Good news for you, though is that we have decided instead to just get rid of the modules entirely.

This was decided as the modules do not work at all presently. That being said, if anyone in the future wishes to use this as a base for new LibreSwitch modules, the files are still in git history available for retrofitting.

@Qalthos Qalthos closed this Aug 23, 2017
@skg-net skg-net deleted the libreswitch branch August 30, 2017 22:00
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.4 This issue/PR affects Ansible v2.4 bug This issue/PR relates to a bug. c:module_utils/ module This issue/PR relates to a module. needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. networking Network category new_module This PR includes a new module. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants