ansible.builtin.junos_lldp_interface (v2.4.4.0-1) — module

Manage LLDP interfaces configuration on Juniper JUNOS network devices

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

Authors: Ganesh Nalawade (@ganeshrn)

preview | supported by network

Install Ansible via pip

Install with pip install ansible==2.4.4.0.post1

Description

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


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Configure LLDP on specific interfaces
  junos_lldp_interface:
    name: ge-0/0/5
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Disable LLDP on specific interfaces
  junos_lldp_interface:
    name: ge-0/0/5
    state: disabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Enable LLDP on specific interfaces
  junos_lldp_interface:
    name: ge-0/0/5
    state: enabled
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete LLDP configuration on specific interfaces
  junos_lldp_interface:
    name: ge-0/0/5
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Deactivate LLDP on specific interfaces
  junos_lldp_interface:
    name: ge-0/0/5
    state: present
    active: False
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Activate LLDP on specific interfaces
  junos_lldp_interface:
    name: ge-0/0/5
    state: present
    active: True

Inputs

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

state:
    choices:
    - present
    - absent
    - enabled
    - disabled
    default: present
    description:
    - Value of C(present) ensures given LLDP configured on given I(interfaces) and is
      enabled, for value of C(absent) LLDP configuration on given I(interfaces) deleted.
      Value C(enabled) ensures LLDP protocol is enabled on given I(interfaces) and for
      value of C(disabled) it ensures LLDP is disabled on given I(interfaces).

active:
    choices:
    - true
    - false
    default: true
    description:
    - Specifies whether or not the configuration is active or deactivated

Outputs

diff.prepared:
  description: Configuration difference before and after applying change.
  returned: when configuration is changed and diff option is enabled.
  sample: '[edit protocols lldp] +    interface ge-0/0/5;

    '
  type: string