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_global.pyc

�
�Udac@`s�dZddlmZmZmZeZidd6dgd6dd6Zd	Zd
Z	dZ
ddlmZdd
l
mZddlmZd�Zedkr�e�ndS(s'
The module file for junos_lldp_global
i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatustnetworktsupported_bys�
---
module: junos_lldp_global
version_added: 2.9
short_description: Manage link layer discovery protocol (LLDP) attributes on Juniper JUNOS devices.
description:
  - This module manages link layer discovery protocol (LLDP) attributes on Juniper JUNOS devices.
author: Ganesh Nalawade (@ganeshrn)
options:
  config:
    description: The list of link layer discovery protocol attribute configurations
    type: dict
    suboptions:
      enabled:
        description:
          - This argument is a boolean value to enabled or disable LLDP.
        type: bool
      interval:
        description:
          - Frequency at which LLDP advertisements are sent (in seconds).
        type: int
      address:
        description:
          - This argument sets the management address from LLDP.
        type: str
      transmit_delay:
        description:
          - Specify the number of seconds the device waits before sending
            advertisements to neighbors after a change is made in local system.
        type: int
      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.
        type: int
  state:
    description:
      - The state of the configuration after module completion.
    type: str
    choices:
    - merged
    - replaced
    - deleted
    default: merged
requirements:
  - ncclient (>=v0.6.4)
notes:
  - This module requires the netconf system service be enabled on
    the remote device being managed.
  - Tested against vSRX JUNOS version 18.4R1.
  - This module works with connection C(netconf). See L(the Junos OS Platform Options,../network/user_guide/platform_junos.html).

s0
# Using merged
# Before state:
# -------------
# user@junos01# # show protocols lldp
#
- name: Merge provided configuration with device configuration
  junos_lldp_global:
    config:
      interval: 10000
      address: 10.1.1.1
      transmit_delay: 400
      hold_multiplier: 10
    state: merged

# After state:
# -------------
# user@junos01# show protocols lldp
# management-address 10.1.1.1;
# advertisement-interval 10000;
# transmit-delay 400;
# hold-multiplier 10;

# Using replaced
# Before state:
# -------------
# user@junos01# show protocols lldp
# management-address 10.1.1.1;
# advertisement-interval 10000;
# transmit-delay 400;
# hold-multiplier 10;

- name: Replace provided configuration with device configuration
  junos_lldp_global:
    config:
      address: 20.2.2.2
      hold_multiplier: 30
      enabled: False
    state: replaced

# After state:
# -------------
# user@junos01# show protocols lldp
# disable;
# management-address 20.2.2.2;
# hold-multiplier 30;

# Using deleted
# Before state:
# -------------
# user@junos01# show protocols lldp
# management-address 20.2.2.2;
# hold-multiplier 30;

- name: Delete lldp configuration (this will by default remove all lldp configuration)
  junos_lldp_global:
    state: deleted

# After state:
# -------------
# user@junos01# # show protocols lldp
#
sY
before:
  description: The configuration as structured data prior to module invocation.
  returned: always
  type: dict
  sample: >
    The configuration returned will always be in the same format
     of the parameters above.
after:
  description: The configuration as structured data after module completion.
  returned: when changed
  type: dict
  sample: >
    The configuration returned will always be in the same format
     of the parameters above.
commands:
  description: The set of commands pushed to the remote device.
  returned: always
  type: list
  sample: ['xml 1', 'xml 2', 'xml 3']
(t
AnsibleModule(tLldp_globalArgs(tLldp_globalcC`s_ddd	fddd
fg}tdtjd|dt�}t|�j�}|j|�dS(s_
    Main entry point for module execution
    :returns: the result form module invocation
    tstatetmergedtconfigtreplacedt
argument_spectrequired_iftsupports_check_modeN(sconfig(sconfig(RR	RtTrueR
texecute_modulet	exit_json(Rtmoduletresult((sS/usr/lib/python2.7/site-packages/ansible/modules/network/junos/junos_lldp_global.pytmain�s	t__main__N(t__doc__t
__future__RRRttypet
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRtBansible.module_utils.network.junos.argspec.lldp_global.lldp_globalR	tAansible.module_utils.network.junos.config.lldp_global.lldp_globalR
Rt__name__(((sS/usr/lib/python2.7/site-packages/ansible/modules/network/junos/junos_lldp_global.pyt<module>s

8?	

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