�
�Udac @` s d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l m Z d d
l
m Z m Z d d l
m Z m Z m Z d d l
m Z m Z m Z e Z d � Z d � Z d � Z d � Z d � Z e d k re � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont
deprecatedt statust networkt supported_bys%
---
module: junos_lldp
version_added: "2.4"
author: "Ganesh Nalawade (@ganeshrn)"
short_description: Manage LLDP configuration on Juniper JUNOS network devices
description:
- This module provides declarative management of LLDP service
on Juniper JUNOS network devices.
deprecated:
removed_in: "2.13"
why: Updated modules released with more functionality
alternative: Use M(junos_lldp_global) instead.
options:
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.
state:
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.
default: present
choices: ['present', 'absent', 'enabled', 'disabled']
active:
description:
- Specifies whether or not the configuration is active or deactivated
default: True
type: bool
requirements:
- ncclient (>=v0.5.2)
notes:
- This module requires the netconf system service be enabled on
the remote device being managed.
- Tested against vSRX JUNOS version 15.1X49-D15.4, vqfx-10000 JUNOS Version 15.1X53-D60.4.
- Recommended connection is C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).
- This module also works with C(local) connections for legacy playbooks.
extends_documentation_fragment: junos
sz
- 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
s.
diff.prepared:
description: Configuration difference before and after applying change.
returned: when configuration is changed and diff option is enabled.
type: str
sample: >
[edit]
+ protocols {
+ lldp {
+ disable;
+ }
+ }
N( t
AnsibleModule( t junos_argument_spect tostring( t load_configt map_params_to_objt map_obj_to_ele( t commit_configurationt discard_changest
locked_configc C` s3 d | k o d k n s/ | j d d � n d S( Ni i � t msgs$ interval must be between 5 and 32768( t fail_json( t valuet module( ( sM /usr/lib/python2.7/site-packages/ansible/modules/network/junos/_junos_lldp.pyt validate_intervals s c C` s3 d | k o d k n s/ | j d d � n d S( Ni i � R s( hold_multiplier must be between 2 and 10( R ( R R ( ( sM /usr/lib/python2.7/site-packages/ansible/modules/network/junos/_junos_lldp.pyt validate_hold_multiplierx s c C` s3 d | k o d k n s/ | j d d � n d S( Ni i R s'