Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/junos/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/junos/_junos_lldp_interface.pyo

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
Z
ddlmZdd
l
mZddl
mZmZmZmZddl
mZmZmZeZd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiont
deprecatedtstatustnetworktsupported_bysQ
---
module: junos_lldp_interface
version_added: "2.4"
author: "Ganesh Nalawade (@ganeshrn)"
short_description: Manage LLDP interfaces configuration on Juniper JUNOS network devices
description:
  - This module provides declarative management of LLDP interfaces
    configuration on Juniper JUNOS network devices.
deprecated:
  removed_in: "2.13"
  why: Updated modules released with more functionality
  alternative: Use M(junos_lldp_interfaces) instead.
options:
  name:
    description:
      - Name of the interface LLDP should be configured on.
  state:
    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).
    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
s�
- 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
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]
        +    interface ge-0/0/5;
N(t
AnsibleModule(tjunos_argument_spec(tload_configtmap_params_to_objtmap_obj_to_elettostring(tcommit_configurationtdiscard_changest
locked_configcC`s�tdt�dtdddddddg�d	tdtd
d��}|jt�td|d
t�}t�}itd6}|r�||d<nd}tj�}|jdidd6td6fdidd6td6fg�|j	j
�}|jd�}|dkrtnt|d<|dkr3d|d<nt||d|�}t
|||d|�}	t|��zt|t|	�|dd�}
|j}|
r�|r�t|�n
t|�t|d<|jr�i|
d6|d<q�nWdQX|j|�dS(s+ main entry point for module execution
    tnametstatetdefaulttpresenttchoicestabsenttenabledtdisabledtactivettypetboolt
argument_spectsupports_check_modetchangedtwarningssprotocols/lldp/interfacetxpathtis_keytdisablettag_onlytparamtactiontmergetpreparedtdiffN(RR(RR(tdicttTruetupdateR	RtlisttFalsetcollectionstOrderedDicttparamstcopytgetRRRR
R
t
check_modeRRt_difft	exit_json(RtmoduleRtresultttoptparam_to_xpath_maptitemRtwantteleR(tcommit((sW/usr/lib/python2.7/site-packages/ansible/modules/network/junos/_junos_lldp_interface.pytmainnsD	!
		







	t__main__(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNR.tansible.module_utils.basicRt(ansible.module_utils.network.junos.junosR	R
RRR
RRRR*tUSE_PERSISTENT_CONNECTIONR>t__name__(((sW/usr/lib/python2.7/site-packages/ansible/modules/network/junos/_junos_lldp_interface.pyt<module>s 


*"
"	7

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]