ansible / ansible.builtin / v2.5.11 / module / onyx_lldp_interface Manage LLDP interfaces configuration on Mellanox ONYX network devices | "added in version" 2.5 of ansible.builtin" Authors: Samer Deeb (@samerd) preview | supported by communityansible.builtin.onyx_lldp_interface (v2.5.11) — module
pip
Install with pip install ansible==2.5.11
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