community / community.general / 0.1.1 / module / onyx_lldp_interface Manage LLDP interfaces configuration on Mellanox ONYX network devices Authors: Samer Deeb (@samerd) preview | supported by communitycommunity.general.onyx_lldp_interface (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
This module provides declarative management of LLDP interfaces configuration on Mellanox ONYX network devices.
- name: Configure LLDP on specific interfaces onyx_lldp_interface: name: Eth1/1 state: present
- name: Disable LLDP on specific interfaces onyx_lldp_interface: name: Eth1/1 state: disabled
- name: Enable LLDP on specific interfaces onyx_lldp_interface: name: Eth1/1 state: enabled
- name: Delete LLDP on specific interfaces onyx_lldp_interface: name: Eth1/1 state: absent
- name: Create aggregate of LLDP interface configurations onyx_lldp_interface: aggregate: - { name: Eth1/1 } - { name: Eth1/2 } state: present
- name: Delete aggregate of LLDP interface configurations onyx_lldp_interface: aggregate: - { name: Eth1/1 } - { name: Eth1/2 } state: absent
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.
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