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

Add new module mlnxos_facts for retrieving facts of MLNX-OS Mellanox network devices #34287

Merged
merged 2 commits into from
Jan 8, 2018

Conversation

samerd
Copy link
Contributor

@samerd samerd commented Dec 29, 2017

Signed-off-by: Samer Deeb samerd@mellanox.com

SUMMARY

Add module mlnxos_facts for retrieving facts of MLNX-OS Mellanox switches
the module manages the facts: version, interfaces and modules.

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

modules/network/mlnxos/mlnxos_facts

ANSIBLE VERSION
ansible 2.5.0 (feature/net-facts ea0cf89a73) last updated 2017/12/29 04:29:56 (GMT +000)
  config file = /etc/ansible/ansible.cfg
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
ADDITIONAL INFORMATION

network devices

Signed-off-by: Samer Deeb <samerd@mellanox.com>
@ansibot
Copy link
Contributor

ansibot commented Dec 29, 2017

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 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. labels Dec 29, 2017
@ganeshrn ganeshrn removed the needs_triage Needs a first human triage before being processed. label Dec 29, 2017
"""

EXAMPLES = """
# Note: examples below use the following provider dict to handle
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you using provider:?

# Note: examples below use the following provider dict to handle
# transport and authentication to the node.
---
# Collect all facts from the device
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change the comment to a name:, e.g.

- name: Collect all facts from the device
  mlnxos_facts:
    gather_subset: all

Best practice is to specify a name: in Ansible. We find people often copy examples when writing playbooks.

@gundalow gundalow self-assigned this Jan 3, 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 Jan 3, 2018
Signed-off-by: Samer Deeb <samerd@mellanox.com>
@gundalow
Copy link
Contributor

gundalow commented Jan 7, 2018

@samerd Hi, do you think this is ready for final review and merge?

@samerd
Copy link
Contributor Author

samerd commented Jan 7, 2018

@gundalow : yes, please review and merge if it is OK.

@gundalow gundalow merged commit 943107b into ansible:devel Jan 8, 2018
@samerd samerd deleted the feature/net-facts branch January 10, 2018 21:25
@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.5 This issue/PR affects Ansible v2.5 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. 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