ansible / ansible.builtin / v2.4.4.0-1 / module / junos_lldp_interface Manage LLDP interfaces configuration on Juniper JUNOS network devices | "added in version" 2.4 of ansible.builtin" Authors: Ganesh Nalawade (@ganeshrn) preview | supported by networkansible.builtin.junos_lldp_interface (v2.4.4.0-1) — module
pip
Install with pip install ansible==2.4.4.0.post1
This module provides declarative management of LLDP interfaces configuration on Juniper JUNOS network devices.
- name: Configure LLDP on specific interfaces junos_lldp_interface: name: ge-0/0/5 state: present
- name: Disable LLDP on specific interfaces junos_lldp_interface: name: ge-0/0/5 state: disabled
- name: Enable LLDP on specific interfaces junos_lldp_interface: name: ge-0/0/5 state: enabled
- name: Delete LLDP configuration on specific interfaces junos_lldp_interface: name: ge-0/0/5 state: present
- name: Deactivate LLDP on specific interfaces junos_lldp_interface: name: ge-0/0/5 state: present active: False
- name: Activate LLDP on specific interfaces junos_lldp_interface: name: ge-0/0/5 state: present active: True
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
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