ansible.builtin.net_lldp (v2.8.19) — module

Manage LLDP service configuration on network devices

| "added in version" 2.4 of ansible.builtin"

Authors: Ricardo Carrillo Cruz (@rcarrillocruz)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.8.19

Description

This module provides declarative management of LLDP service configuration on network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP service
  net_lldp:
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP service
  net_lldp:
    state: lldp

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the LLDP service configuration.

Outputs

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
  type: list