ansible / ansible.builtin / v2.9.0 / module / _net_lldp_interface
Removed in 2.13
Reason:Updated modules released with more functionality | Alternative:Use platform-specific "[netos]_lldp_interfaces" module
Manage LLDP interfaces configuration on network devices
| "added in version" 2.4 of ansible.builtin"
Authors: Ganesh Nalawade (@ganeshrn)
deprecated | supported by network
pip
Install with pip install ansible==2.9.0
This module provides declarative management of LLDP interfaces configuration on network devices.
- name: Configure LLDP on specific interfaces net_lldp_interface: name: eth1 state: present
- name: Disable LLDP on specific interfaces net_lldp_interface: name: eth1 state: disabled
- name: Enable LLDP on specific interfaces net_lldp_interface: name: eth1 state: enabled
- name: Delete LLDP on specific interfaces net_lldp_interface: name: eth1 state: absent
- name: Create aggregate of LLDP interface configurations net_lldp_interface: aggregate: - { name: eth1 } - { name: eth2 } state: present
- name: Delete aggregate of LLDP interface configurations net_lldp_interface: aggregate: - { name: eth1 } - { name: eth2 } state: absent
name: description: - Name of the interface LLDP should be configured on. purge: default: false description: - Purge interfaces not defined in the aggregate parameter. state: choices: - present - absent - enabled - disabled default: present description: - State of the LLDP configuration. aggregate: description: List of interfaces LLDP should be configured on.
commands: description: The list of configuration mode commands to send to the device returned: always, except for the platforms that use Netconf transport to manage the device. sample: - set service lldp eth1 disable type: list