Deprecated

Removed in None

i

Reason:Updated modules released with more functionality | Alternative:Use platform-specific "[netos]_lldp_global" module

ansible.netcommon.net_lldp (3.1.3) — module

(deprecated, removed after 2022-06-01) Manage LLDP service configuration on network devices

| "added in version" 1.0.0 of ansible.netcommon"

Authors: Ricardo Carrillo Cruz (@rcarrillocruz)

This plugin has a corresponding action plugin.

Install collection

Install with ansible-galaxy collection install ansible.netcommon:==3.1.3


Add to requirements.yml

  collections:
    - name: ansible.netcommon
      version: 3.1.3

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
  ansible.netcommon.net_lldp:
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP service
  ansible.netcommon.net_lldp:
    state: absent

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