Note
This plugin is part of the dellemc.os10 collection.
To install it use: ansible-galaxy collection install dellemc.os10
.
To use it in a playbook, specify: dellemc.os10.wiring_validate
.
Parameter | Choices/Defaults | Comments |
---|---|---|
planned_neighbors list / elements=string / required | planned neighbours input from group_var to compare actual | |
show_lldp_neighbors_list list / elements=string / required | show lldp neighbor output | |
show_system_network_summary list / elements=string / required | show system network summary output |
Copy below YAML into a playbook (e.g. play.yml) and run as follows: #$ ansible-playbook -i inv play.yml name: show system Configuration hosts: localhost connection: local gather_facts: False tasks: - name: "Get Dell EMC OS10 Show lldp" os10_command: commands: - command: "show lldp neighbors" provider: "{{ hostvars[item].cli }}" with_items: "{{ groups['all'] }}" register: show_lldp - local_action: copy content={{ show_lldp }} dest=show - set_fact: output_lldp: "{{ output_lldp|default([])+ [{'host': item.invocation.module_args.provider.host, 'inv_name': item.item, 'stdout_show_lldp': item.stdout}] }}" loop: "{{ show_lldp.results }}" - debug: var=output_lldp - name: "Get Dell EMC OS10 Show system" import_role: name: os10_fabric_summary register: show_system_network_summary - debug: var=show_system_network_summary - name: call lib to process wiring_validate: show_lldp_neighbors_list: "{{ output_lldp }}" show_system_network_summary: "{{ show_system_network_summary.msg.results }}" planned_neighbors: "{{ intended_neighbors }}"
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/dellemc/os10/wiring_validate_module.html