New in version 2.4.
Parameter | Choices/Defaults | Comments |
---|---|---|
interface required | For the interface parameter, you can enter all to display information about all interface, an interface type such as 40GE to display information about interfaces of the specified type, or full name of an interface such as 40GE1/0/22 or vlanif10 to display information about the specific interface. |
Note
- name: Link status test hosts: cloudengine connection: local gather_facts: no vars: cli: host: "{{ inventory_hostname }}" port: "{{ ansible_ssh_port }}" username: "{{ username }}" password: "{{ password }}" transport: cli tasks: - name: Get specified interface link status information ce_link_status: interface: 40GE1/0/1 provider: "{{ cli }}" - name: Get specified interface type link status information ce_link_status: interface: 40GE provider: "{{ cli }}" - name: Get all interface link status information ce_link_status: interface: all provider: "{{ cli }}"
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
result dict | always | Interface link status information Sample: {'40ge2/0/8': {'Outbound drop(pkts)': '0', 'Inbound rate(pkts/sec)': '0', 'Outbound error(pkts)': '0', 'Outbound broadcast(pkts)': '1', 'Outbound multicast(pkts)': '20152', 'Outbound rate(byte/sec)': '11', 'Inbound multicast(pkts)': '20151', 'Current IPv4 state': 'down', 'Inbound error(pkts)': '0', 'Outbound octets(bytes)': '7235021', 'Current IPv6 state': 'down', 'Inbound unicast(pkts)': '0', 'Current physical state': 'up', 'Inbound broadcast(pkts)': '0', 'Current link state': 'up', 'Outbound rate(pkts/sec)': '0', 'Inbound octets(bytes)': '7314813', 'Outbound unicast(pkts)': '0', 'Inbound drop(pkts)': '0', 'Speed': '40GE', 'Inbound rate(byte/sec)': '11'}} |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
Hint
If you notice any issues in this documentation you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.7/modules/ce_link_status_module.html