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

fix nxos_igmp_interface issues #38752

Merged
merged 11 commits into from
Apr 23, 2018
Merged

fix nxos_igmp_interface issues #38752

merged 11 commits into from
Apr 23, 2018

Conversation

saichint
Copy link
Contributor

@saichint saichint commented Apr 13, 2018

SUMMARY

Fixes #38750 and #38753

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

nxos_igmp_interface

ANSIBLE VERSION
ansible 2.6.0 (devel fed20b825f) last updated 2018/02/15 12:51:12 (GMT -400)
  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 = /root/agents-ci/ansible/lib/ansible
  executable location = /root/agents-ci/ansible/bin/ansible
  python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]
ADDITIONAL INFORMATION

@ansibot
Copy link
Contributor

ansibot commented Apr 13, 2018

@ansibot ansibot added bug This issue/PR relates to a bug. 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 nxos Cisco NXOS community support:core This issue/PR relates to code supported by the Ansible Engineering Team. support:network This issue/PR relates to code supported by the Ansible Network Team. test This PR relates to tests. labels Apr 13, 2018
@ansibot
Copy link
Contributor

ansibot commented Apr 13, 2018

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

lib/ansible/modules/network/nxos/nxos_igmp_interface.py:0:0: E326 Value for "choices" from the argument_spec ([]) for "version" does not match the documentation (['2', '3'])

click here for bot help

@ansibot ansibot added ci_verified Changes made in this PR are causing tests to fail. 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 13, 2018
@ansibot ansibot added core_review In order to be merged, this PR must follow the core review workflow. and removed ci_verified Changes made in this PR are causing tests to fail. needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Apr 13, 2018
@trishnaguha trishnaguha self-assigned this Apr 16, 2018
@bcoca bcoca removed the needs_triage Needs a first human triage before being processed. label Apr 16, 2018
@ansibot
Copy link
Contributor

ansibot commented Apr 17, 2018

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

lib/ansible/modules/network/nxos/nxos_igmp_interface.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/nxos/nxos_igmp_interface.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/nxos/nxos_igmp_interface.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/nxos/nxos_igmp_interface.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/nxos/nxos_igmp_interface.py:0:0: has a documentation error formatting or is missing documentation.

The test ansible-test sanity --test docs-build [explain] failed with the error:

Command "/usr/bin/python test/sanity/code-smell/docs-build.py" returned exit status 1.
>>> Standard Error
Traceback (most recent call last):
  File "test/sanity/code-smell/docs-build.py", line 55, in <module>
    main()
  File "test/sanity/code-smell/docs-build.py", line 17, in main
    raise subprocess.CalledProcessError(sphinx.returncode, cmd, output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['make', 'singlehtmldocs']' returned non-zero exit status 2.

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

lib/ansible/modules/network/nxos/nxos_igmp_interface.py:0:0: E324 Value for "default" from the argument_spec ('present') for "state" does not match the documentation (None)
lib/ansible/modules/network/nxos/nxos_igmp_interface.py:0:0: E325 argument_spec for "immediate_leave" defines type="bool" but documentation does not
lib/ansible/modules/network/nxos/nxos_igmp_interface.py:0:0: E325 argument_spec for "report_llg" defines type="bool" but documentation does not
lib/ansible/modules/network/nxos/nxos_igmp_interface.py:0:0: E325 argument_spec for "restart" defines type="bool" but documentation does not
lib/ansible/modules/network/nxos/nxos_igmp_interface.py:142:17: E302 DOCUMENTATION is not valid YAML

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

lib/ansible/modules/network/nxos/nxos_igmp_interface.py:142:17: error DOCUMENTATION: syntax error: mapping values are not allowed here

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. support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed core_review In order to be merged, this PR must follow the core review workflow. labels Apr 17, 2018
@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 19, 2018
@saichint
Copy link
Contributor Author

@gundalow Made changes you requested. Thanks for the suggestions.

@ansibot
Copy link
Contributor

ansibot commented Apr 19, 2018

@ansibot ansibot added the docs This issue/PR relates to or includes documentation. label Apr 19, 2018
oif_ps:
- {'prefix': '238.2.2.6'}
- {'prefix': '238.2.2.5'}
- {'source': '1.1.1.1', 'prefix': '238.2.2.5'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Please no 1.1.1.1 use the documention ip ranges

Copy link
Contributor Author

@saichint saichint Apr 20, 2018

Choose a reason for hiding this comment

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

Changed 1.1.1.1 to 192.168.0.1 (not sure if that is what you meant).
However, the device takes 1.1.1.1 so the ip itself is correct.

see below:

n9k-108(config-if)# sh run igmp

!Command: show running-config igmp
!Time: Fri Apr 20 14:55:54 2018

version 7.0(3)I7(2)

interface Ethernet1/1
ip igmp static-oif 239.2.2.2 source 1.1.1.1

@@ -22,7 +22,8 @@ No notable changes.
Deprecated
==========

No notable changes.
* In the `nxos_igmp_interface` module, `oif_prefix` and `oif_source` properties are deprecated. Use
Copy link
Contributor

Choose a reason for hiding this comment

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

We can make nxos_igmp_interface a link, see porting_guide_2.5.rst for an example.

@saichint
Copy link
Contributor Author

@gundalow Made changes as you requested. Let me know if you have more comments.

@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 20, 2018
@@ -22,7 +22,8 @@ No notable changes.
Deprecated
==========

No notable changes.
* In the :ref:`nxos_mtu <nxos_igmp_interface>` module, `oif_prefix` and `oif_source` properties are deprecated. Use
Copy link
Member

Choose a reason for hiding this comment

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

@saichint this looks like typo nxos_mtu?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@trishnaguha Yes, it is a copy/paste error. Thanks for catching it. Fixed

@trishnaguha
Copy link
Member

Thanks for the PR.

@trishnaguha trishnaguha merged commit 6eecbf1 into ansible:devel Apr 23, 2018
@saichint saichint deleted the igmp branch April 23, 2018 15:17
@trishnaguha trishnaguha moved this from In Review to Done in zzz NOT USED: Networking Bugs Apr 25, 2018
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 14, 2018
* fix nxos_igmp_interface issues

* shippable fix

* fix oif_prefix and oif_source

* shippable fix

* shippable fix

* shippable fix

* add an example for oif_ps

* review comments

* review comments

* more review comments

* fix typo
oolongbrothers pushed a commit to oolongbrothers/ansible that referenced this pull request May 15, 2018
* fix nxos_igmp_interface issues

* shippable fix

* fix oif_prefix and oif_source

* shippable fix

* shippable fix

* shippable fix

* add an example for oif_ps

* review comments

* review comments

* more review comments

* fix typo
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
* fix nxos_igmp_interface issues

* shippable fix

* fix oif_prefix and oif_source

* shippable fix

* shippable fix

* shippable fix

* add an example for oif_ps

* review comments

* review comments

* more review comments

* fix typo
@dagwieers dagwieers added the cisco Cisco technologies label Feb 23, 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
bug This issue/PR relates to a bug. cisco Cisco technologies core_review In order to be merged, this PR must follow the core review workflow. docs This issue/PR relates to or includes documentation. module This issue/PR relates to a module. networking Network category nxos Cisco NXOS community support:core This issue/PR relates to code supported by the Ansible Engineering Team. support:network This issue/PR relates to code supported by the Ansible Network Team. test This PR relates to tests.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

nxos_igmp_interface issues
6 participants