Deprecated

Removed in None

i

Reason:Newer and updated modules released with more functionality. | Alternative:ios_lldp_global

cisco.ios.ios_lldp (8.0.0) — module

(deprecated, removed after 2024-06-01) Manage LLDP configuration on Cisco IOS network devices.

| "added in version" 1.0.0 of cisco.ios"

Authors: Ganesh Nalawade (@ganeshrn)

Install collection

Install with ansible-galaxy collection install cisco.ios:==8.0.0


Add to requirements.yml

  collections:
    - name: cisco.ios
      version: 8.0.0

Description

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

Usage examples

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

Inputs

    
state:
    choices:
    - present
    - absent
    - enabled
    - disabled
    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.
    type: str

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