ansible / ansible.builtin / v2.4.3.0-1 / module / junos_lldp Manage LLDP 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 (v2.4.3.0-1) — module
pip
Install with pip install ansible==2.4.3.0.post1
This module provides declarative management of LLDP service on Juniper JUNOS network devices.
- name: Enable LLDP service junos_lldp: state: enabled
- name: Disable LLDP service junos_lldp: state: disabled
- name: Set LLDP parameters junos_lldp: interval: 10 hold_multiplier: 5 transmit_delay: 30 state: present
- name: Delete LLDP parameters junos_lldp: interval: 10 hold_multiplier: 5 transmit_delay: 30 state: absent
state: choices: - present - absent - enabled - disabled default: present description: - Value of C(present) ensures given LLDP configuration is present on device and LLDP is enabled, for value of C(absent) LLDP configuration is deleted and LLDP is in disabled state. Value C(enabled) ensures LLDP protocol is enabled and LLDP configuration if any is configured on remote device, for value of C(disabled) it ensures LLDP protocol is disabled any LLDP configuration if any is still present. active: choices: - true - false default: true description: - Specifies whether or not the configuration is active or deactivated enable: choices: - true - false default: present description: - If value is C(True) it enable LLDP protocol on remote device, if value is C(False) it disables LLDP protocol. interval: description: - Frequency at which LLDP advertisements are sent (in seconds). transmit_delay: description: - Specify the number of seconds the device waits before sending advertisements to neighbors after a change is made in local system. hold_multiplier: description: - Specify the number of seconds that LLDP information is held before it is discarded. The multiplier value is used in combination with the C(interval) value.
diff.prepared: description: Configuration difference before and after applying change. returned: when configuration is changed and diff option is enabled. sample: '[edit] + protocols { + lldp { + disable; + } + } ' type: string