Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZdd
lmZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustnetworktsupported_bys7
---
module: ios_lldp
version_added: "2.5"
author: "Ganesh Nalawade (@ganeshrn)"
short_description: Manage LLDP configuration on Cisco IOS network devices.
description:
  - This module provides declarative management of LLDP service
    on Cisco IOS network devices.
notes:
  - Tested against IOS 15.2
options:
  state:
    description:
      - State of the LLDP configuration. If value is I(present) lldp will be enabled
        else if it is I(absent) it will be disabled.
    default: present
    choices: ['present', 'absent']
extends_documentation_fragment: ios
sx
- name: Enable LLDP service
  ios_lldp:
    state: present

- name: Disable LLDP service
  ios_lldp:
    state: absent
s�
commands:
  description: The list of configuration mode commands to send to the device
  returned: always, except for the platforms that use Netconf transport to manage the device.
  type: list
  sample:
    - lldp run
(t
AnsibleModule(tload_configtrun_commands(tios_argument_speccC`sGt|dg�}t}t|�dkrCd|dkrCt}n|S(Ns	show lldpisLLDP is not enabled(R
tFalsetlentTrue(tmoduletoutputtis_lldp_enable((sH/usr/lib/python2.7/site-packages/ansible/modules/network/ios/ios_lldp.pythas_lldp<s
"	c
C`s!tdtdddddddg��}|jt�td|d	t�}t�}itd
6}|ru||d<nt|�}g}|jddkr�|r�|j	d�n*|jddkr�|r�|j	d
�n||d<|r|j
st||�nt|d
<n|j|�dS(s+ main entry point for module execution
    tstatetdefaulttpresenttchoicestabsenttenabledtdisabledt
argument_spectsupports_check_modetchangedtwarningssno lldp runslldp runtcommandsN(
tdicttupdateRRRtlistRRtparamstappendt
check_modeR	t	exit_json(RRRtresulttHAS_LLDPR((sH/usr/lib/python2.7/site-packages/ansible/modules/network/ios/ios_lldp.pytmainFs.
		


	
t__main__N(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt$ansible.module_utils.network.ios.iosR	R
RRR(t__name__(((sH/usr/lib/python2.7/site-packages/ansible/modules/network/ios/ios_lldp.pyt<module>s



		
	)

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