community.general.icx_lldp (0.1.1) — module

Manage LLDP configuration on Ruckus ICX 7000 series switches

Authors: Ruckus Wireless (@Commscope)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

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

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP
  icx_lldp:
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP
  icx_lldp:
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP on ports 1/1/1 - 1/1/10, 1/1/20
  icx_lldp:
    interfaces:
     - name:
        - ethernet 1/1/1 to 1/1/10
        - ethernet 1/1/20
       state: absent
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP on ports 1/1/5 - 1/1/10
  icx_lldp:
    interfaces:
      - name:
        - ethernet 1/1/1 to 1/1/10

Inputs

    
state:
    choices:
    - present
    - absent
    - enabled
    - disabled
    description:
    - Enables the receipt and transmission of Link Layer Discovery Protocol (LLDP) globally.
    type: str

interfaces:
    description:
    - specify interfaces
    suboptions:
      name:
        description:
        - List of ethernet ports to enable lldp.  To add a range of ports use 'to' keyword.
          See the example.
        type: list
      state:
        choices:
        - present
        - absent
        - enabled
        - disabled
        description:
        - State of lldp configuration for interfaces
        type: str
    type: list

check_running_config:
    default: true
    description:
    - Check running configuration. This can be set as environment variable. Module will
      use environment variable value(default:True), unless it is overridden, by specifying
      it as module parameter.
    type: bool

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