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 exos_command cli_conf module #37775

Merged
merged 5 commits into from
Apr 23, 2018
Merged

Conversation

rdvencioneck
Copy link
Contributor

SUMMARY

This PR adds suport for running "read-only" commands on Extreme OS (EXOS)

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

exos_command

@ansibot
Copy link
Contributor

ansibot commented Mar 22, 2018

@ansibot ansibot added 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_contributor This PR is the first contribution by a new community member. 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. labels Mar 22, 2018
@ansibot
Copy link
Contributor

ansibot commented Mar 22, 2018

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test boilerplate [explain] failed with 2 errors:

lib/ansible/modules/network/exos/exos_command.py:0:0: missing: __metaclass__ = type
lib/ansible/modules/network/exos/exos_command.py:0:0: missing: from __future__ import (absolute_import, division, print_function)

The test ansible-test sanity --test pep8 [explain] failed with 6 errors:

lib/ansible/module_utils/network/exos/exos.py:36:1: E302 expected 2 blank lines, found 1
lib/ansible/module_utils/network/exos/exos.py:60:1: E302 expected 2 blank lines, found 1
lib/ansible/module_utils/network/exos/exos.py:63:1: E302 expected 2 blank lines, found 1
lib/ansible/module_utils/network/exos/exos.py:75:1: E302 expected 2 blank lines, found 1
lib/ansible/modules/network/exos/exos_command.py:167:21: E128 continuation line under-indented for visual indent
lib/ansible/plugins/cliconf/exos.py:31:1: E302 expected 2 blank lines, found 1

The test ansible-test sanity --test validate-modules [explain] failed with 2 errors:

lib/ansible/modules/network/exos/exos_command.py:0:0: E304 Unknown DOCUMENTATION error, see TRACE: argument of type 'NoneType' is not iterable
lib/ansible/modules/network/exos/exos_command.py:0:0: E316 ANSIBLE_METADATA.metadata_version: not a valid value for dictionary value @ data['metadata_version']. Got '1.0'

click here for bot help

@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 Mar 22, 2018
@ansibot
Copy link
Contributor

ansibot commented Mar 22, 2018

The test ansible-test sanity --test ansible-doc --python 2.7 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.5 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.6 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 3.7 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test ansible-doc --python 2.6 [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test boilerplate [explain] failed with 2 errors:

lib/ansible/modules/network/exos/exos_command.py:0:0: missing: __metaclass__ = type
lib/ansible/modules/network/exos/exos_command.py:0:0: missing: from __future__ import (absolute_import, division, print_function)

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

lib/ansible/modules/network/exos/exos_command.py:0:0: E304 Unknown DOCUMENTATION error, see TRACE: argument of type 'NoneType' is not iterable

click here for bot help

@samdoran samdoran removed the needs_triage Needs a first human triage before being processed. label Mar 22, 2018
@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 Mar 30, 2018
@calfonso calfonso added this to the 2.6.0 milestone Apr 2, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Apr 2, 2018
return module._exos_capabilities


def check_args(module, warnings):
Copy link
Member

Choose a reason for hiding this comment

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

This function is not required.

module: exos_command
version_added: "2.6"
author: "Rafael D. Vencioneck (@rdvencioneck)"
short_description: Run commands on remote devices running EXOS
Copy link
Member

Choose a reason for hiding this comment

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

Please include the company name in the short_description to make it easier for people to find the modules
See http://docs.ansible.com/ansible/latest/modules/list_of_network_modules.html

before moving forward. If the conditional is not true
within the configured number of retries, the task fails.
See examples.
required: false
Copy link
Member

Choose a reason for hiding this comment

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

required: false lines can be removed, as that's the default

See examples.
required: false
default: null
aliases: ['waitfor']
Copy link
Member

Choose a reason for hiding this comment

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

waitfor is an old name and not required to be added to new modules. This line can be removed.

argument_spec = dict(
commands=dict(type='list', required=True),

wait_for=dict(type='list', aliases=['waitfor']),
Copy link
Member

Choose a reason for hiding this comment

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

aliases can be removed

@rdvencioneck
Copy link
Contributor Author

@ganeshrn thank you for your review! I'm committing the requested changes right now.

@ansibot ansibot removed the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Apr 11, 2018
Copy link
Member

@ganeshrn ganeshrn left a comment

Choose a reason for hiding this comment

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

Please update the new files added in this PR https://github.com/ansible/ansible/blob/devel/.github/BOTMETA.yml along with your GitHub handle

@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Apr 20, 2018
@ganeshrn ganeshrn merged commit 0d1e9bf into ansible:devel Apr 23, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
* Adding exos_command cli_conf module

* fixing documentation, indentation and metadata_version

* removing doc fragmentation and adding required import

* removing unnecessary code and including company name on short_description

* updating BOTMETA.yml with exos module information
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
* Adding exos_command cli_conf module

* fixing documentation, indentation and metadata_version

* removing doc fragmentation and adding required import

* removing unnecessary code and including company name on short_description

* updating BOTMETA.yml with exos module information
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
* Adding exos_command cli_conf module

* fixing documentation, indentation and metadata_version

* removing doc fragmentation and adding required import

* removing unnecessary code and including company name on short_description

* updating BOTMETA.yml with exos module information
@dagwieers dagwieers added the botmeta This PR modifies the BOTMETA.yml and this requires special attention! label Feb 21, 2019
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
botmeta This PR modifies the BOTMETA.yml and this requires special attention! 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_contributor This PR is the first contribution by a new community member. new_module This PR includes a new module. new_plugin This PR includes a new plugin. 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. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants