ansible.builtin.vyos_lldp_interface (v2.4.6.0-1) — module

Manage LLDP interfaces configuration on VyOS network devices

| "added in version" 2.4 of ansible.builtin"

Authors: Ricardo Carrillo Cruz (@rcarrillocruz)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.4.6.0.post1

Description

This module provides declarative management of LLDP interfaces configuration on VyOS network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP on eth1
  net_lldp_interface:
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP on specific interfaces
  net_lldp_interface:
    interfaces:
      - eth1
      - eth2
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP globally
  net_lldp_interface:
    state: disabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create aggregate of LLDP interface configurations
  vyos_lldp_interface:
    aggregate:
    - name: eth1
    - name: eth2
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete aggregate of LLDP interface configurations
  vyos_lldp_interface:
    aggregate:
    - name: eth1
    - name: eth2
    state: absent

Inputs

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

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, except for the platforms that use Netconf transport to manage
    the device.
  sample:
  - set service lldp eth1
  - set service lldp eth2 disable
  type: list