community.network.cnos_lldp (5.0.2) — module

Manage LLDP configuration on Lenovo CNOS network devices.

Authors: Anil Kumar Muraleedharan (@amuraleedhar)

Install collection

Install with ansible-galaxy collection install community.network:==5.0.2


Add to requirements.yml

  collections:
    - name: community.network
      version: 5.0.2

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP service
  community.network.cnos_lldp:
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP service
  community.network.cnos_lldp:
    state: absent

Inputs

    
state:
    choices:
    - present
    - absent
    default: present
    description:
    - State of the LLDP configuration. If value is I(present) lldp will be enabled else
      if it is I(absent) it will be disabled.

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:
  - lldp timer 1024
  - lldp trap-interval 330
  type: list