.. _cisco.ios.ios_lldp_interfaces_module:
*****************************
cisco.ios.ios_lldp_interfaces
*****************************
**Resource module to configure LLDP interfaces.**
Version added: 1.0.0
.. contents::
:local:
:depth: 1
Synopsis
--------
- This module manages link layer discovery protocol (LLDP) attributes of interfaces on Cisco IOS devices.
Parameters
----------
.. raw:: html
| Parameter |
Choices/Defaults |
Comments |
|
config
list
/ elements=dictionary
|
|
A dictionary of LLDP options
|
|
med_tlv_select
dictionary
|
|
Selection of LLDP MED TLVs to send
NOTE, if med-tlv-select is configured idempotency won't be maintained as Cisco device doesn't record configured med-tlv-select options. As such, Ansible cannot verify if the respective med-tlv-select options is already configured or not from the device side. If you try to apply med-tlv-select option in every play run, Ansible will show changed as True.
|
|
|
inventory_management
boolean
|
|
LLDP MED Inventory Management TLV
|
|
name
string
/ required
|
|
Full name of the interface excluding any logical unit number, i.e. GigabitEthernet0/1.
|
|
receive
boolean
|
|
Enable LLDP reception on interface.
|
|
tlv_select
dictionary
|
|
Selection of LLDP type-length-value i.e. TLVs to send
NOTE, if tlv-select is configured idempotency won't be maintained as Cisco device doesn't record configured tlv-select options. As such, Ansible cannot verify if the respective tlv-select options is already configured or not from the device side. If you try to apply tlv-select option in every play run, Ansible will show changed as True.
|
|
|
power_management
boolean
|
|
IEEE 802.3 DTE Power via MDI TLV
|
|
transmit
boolean
|
|
Enable LLDP transmission on interface.
|
|
running_config
string
|
|
This option is used only with state parsed.
The value of this option should be the output received from the IOS device by executing the command sh lldp interface.
The state parsed reads the configuration from running_config option and transforms it into Ansible structured data as per the resource module's argspec and the value is then returned in the parsed key within the result.
|
|
state
string
|
Choices:
merged ←
- replaced
- overridden
- deleted
- rendered
- gathered
- parsed
|
The state the configuration should be left in
The states rendered, gathered and parsed does not perform any change on the device.
The state rendered will transform the configuration in config option to platform specific CLI commands which will be returned in the rendered key within the result. For state rendered active connection to remote host is not required.
The state gathered will fetch the running configuration from device and transform it into structured data in the format as per the resource module argspec and the value is returned in the gathered key within the result.
The state parsed reads the configuration from running_config option and transforms it into JSON format as per the resource module parameters and the value is returned in the parsed key within the result. The value of running_config option should be the same format as the output of command show running-config | include ip route|ipv6 route executed on device. For state parsed active connection to remote host is not required.
|