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

�
�Udac@s�idd6dgd6dd6ZdZdZdZd	d
lmZmZd	dlmZmZd	dl	m
Z
d
�Zd�Zd�Z
edkr�e
�ndS(s1.1tmetadata_versiontpreviewtstatustnetworktsupported_bys�
---
module: nxos_igmp
extends_documentation_fragment: nxos
version_added: "2.2"
short_description: Manages IGMP global configuration.
description:
    - Manages IGMP global configuration configuration settings.
author:
    - Jason Edelman (@jedelman8)
    - Gabriele Gerbino (@GGabriele)
notes:
    - Tested against NXOSv 7.3.(0)D1(1) on VIRL
    - When C(state=default), all supported params will be reset to a
      default state.
    - If restart is set to true with other params set, the restart will happen
      last, i.e. after the configuration takes place.
options:
    flush_routes:
        description:
            - Removes routes when the IGMP process is restarted. By default,
              routes are not flushed.
        type: bool
    enforce_rtr_alert:
        description:
            - Enables or disables the enforce router alert option check for
              IGMPv2 and IGMPv3 packets.
        type: bool
    restart:
        description:
            - Restarts the igmp process (using an exec config command).
        type: bool
    state:
        description:
            - Manages desired state of the resource.
        default: present
        choices: ['present', 'default']
s'
- name: Default igmp global params (all params except restart)
  nxos_igmp:
    state: default

- name: Ensure the following igmp global config exists on the device
  nxos_igmp:
    flush_routes: true
    enforce_rtr_alert: true

- name: Restart the igmp process
  nxos_igmp:
    restart: true
s�
updates:
    description: commands sent to the device
    returned: always
    type: list
    sample: ["ip igmp flush-routes"]
i����(tload_configtrun_commands(tnxos_argument_spect
check_args(t
AnsibleModulecCsCt|idd6dd6�}id|dkd6d|dkd	6S(
Nsshow running-configtcommandttexttoutputsip igmp flush-routesitflush_routessip igmp enforce-router-alerttenforce_rtr_alert(R(tmoduleR((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_igmp.pytget_currentYscCs i|jdd6|jdd6S(NR
R(tparams(R((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_igmp.pytget_desiredasc
Cs>tdtdd�dtdd�dtdddt�dtdd	dgdd	��}|jt�td
|dt�}t�}t||�t|�}t	|�}|j
d}|j
d}t�}|dkr
|dr�|jd�n|dr�|jd
�q�n�|d	kr�idd6dd6}x�ddgD]t}	||	rw||	rw|jdj|j
|	���q:||	r:||	r:|jdj|j
|	���q:q:Wnitd6|d6|d6}
|r�|js�t||�nt|
d<n|j
dr-idd6dd6}t||�n|j|
�dS(NR
ttypetboolRtrestarttdefaulttstatetchoicestpresentt
argument_spectsupports_check_modesno ip igmp flush-routessno ip igmp enforce-router-alertsflush-routessenforce-router-alertsip igmp {0}sno ip igmp {0}tchangedtupdatestwarningssrestart igmpR
RR(tdicttFalsetupdateRR	tTruetlistRRRRtappendtformattgett
check_modeRRt	exit_json(RRRtcurrenttdesiredRRtcommandstldicttargtresulttcmd((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_igmp.pytmainhsH
		


	

")	

t__main__N(tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNt&ansible.module_utils.network.nxos.nxosRRRRtansible.module_utils.basicR	RRR0t__name__(((sJ/usr/lib/python2.7/site-packages/ansible/modules/network/nxos/nxos_igmp.pyt<module>s


(			4

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