community.general.onyx_lldp_interface (0.1.1) — module

Manage LLDP interfaces configuration on Mellanox ONYX network devices

Authors: Samer Deeb (@samerd)

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 interfaces configuration on Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Configure LLDP on specific interfaces
  onyx_lldp_interface:
    name: Eth1/1
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP on specific interfaces
  onyx_lldp_interface:
    name: Eth1/1
    state: disabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP on specific interfaces
  onyx_lldp_interface:
    name: Eth1/1
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete LLDP on specific interfaces
  onyx_lldp_interface:
    name: Eth1/1
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create aggregate of LLDP interface configurations
  onyx_lldp_interface:
    aggregate:
    - { name: Eth1/1 }
    - { name: Eth1/2 }
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete aggregate of LLDP interface configurations
  onyx_lldp_interface:
    aggregate:
    - { name: Eth1/1 }
    - { name: Eth1/2 }
    state: absent

Inputs

    
name:
    description:
    - Name of the interface LLDP should be configured on.

purge:
    default: false
    description:
    - Purge interfaces not defined in the aggregate parameter.
    type: bool

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

aggregate:
    description: List of interfaces LLDP should be configured on.

Outputs

commands:
  description: The list of configuration mode commands to send to the device
  returned: always.
  sample:
  - interface ethernet 1/1 lldp transmit
  - interface ethernet 1/1 lldp receive
  type: list