Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/modules/network/nxos/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_lldp.pyc

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZdd
lmZd�Zd�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustnetworktsupported_bysE
---
module: nxos_lldp
version_added: "2.5"
author: "Ganesh Nalawade (@ganeshrn)"
short_description: Manage LLDP configuration on Cisco NXOS network devices.
description:
  - This module provides declarative management of LLDP service
    on Cisco NXOS network devices.
notes:
  - Tested against NXOSv 7.0(3)I5(1).
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: nxos
sz
- name: Enable LLDP service
  nxos_lldp:
    state: present

- name: Disable LLDP service
  nxos_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:
    - feature lldp
(t
AnsibleModule(t
get_configtload_config(tnxos_argument_speccC`s7t|dg�}t}|r3d|kr3t}n|S(Ns| section lldpsfeature lldp(R	tFalsetTrue(tmoduletoutputtis_lldp_enable((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_lldp.pythas_lldp<s
	c
C`s1tdtdddddddg��}|jt�td|d	t�}t�}itd
6}|ru||d<nt|�}g}|jddkr�|r�|j	d�n*|jddkr�|r�|j	d
�n||d<|r |j
dd�|jst||�nt|d
<n|j
|�dS(s+ main entry point for module execution
    tstatetdefaulttpresenttchoicestabsenttenabledtdisabledt
argument_spectsupports_check_modetchangedtwarningssno feature lldpsfeature lldptcommandsisterminal dont-askN(tdicttupdateRRR
tlistRRtparamstappendtinsertt
check_modeR
t	exit_json(RRRtresulttHAS_LLDPR((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_lldp.pytmainEs0
		


	
t__main__N(t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt&ansible.module_utils.network.nxos.nxosR	R
RRR(t__name__(((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_lldp.pyt<module>s



				,

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