ansible / ansible.builtin / v2.8.19 / module / net_lldp_interface Manage LLDP interfaces configuration on network devices | "added in version" 2.4 of ansible.builtin" Authors: Ganesh Nalawade (@ganeshrn) preview | supported by networkansible.builtin.net_lldp_interface (v2.8.19) — module
pip
Install with pip install ansible==2.8.19
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