Anons79 Mini Shell

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

�
�Udac@`s�ddlmZmZmZeZidd6dgd6dd6ZdZd	Zd
Z	ddl
mZddlm
Z
mZmZd
�Zedkr�e�ndS(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust	communitytsupported_bys
---
module: pn_igmp_snooping
author: "Pluribus Networks (@rajaspachipulusu17)"
version_added: "2.8"
short_description: CLI command to modify igmp-snooping
description:
  - This module can be used to modify Internet Group Management Protocol (IGMP) snooping.
options:
  pn_cliswitch:
    description:
      - Target switch to run the CLI on.
    required: False
    type: str
  state:
    description:
      - State the action to perform. Use C(update) to modify the igmp-snooping.
    required: True
    type: str
    choices: ['update']
  pn_enable:
    description:
      - enable or disable IGMP snooping.
    required: False
    type: bool
  pn_query_interval:
    description:
      - IGMP query interval in seconds.
    required: False
    type: str
  pn_igmpv2_vlans:
    description:
      - VLANs on which to use IGMPv2 protocol.
    required: False
    type: str
  pn_igmpv3_vlans:
    description:
      - VLANs on which to use IGMPv3 protocol.
    required: False
    type: str
  pn_enable_vlans:
    description:
      - enable per VLAN IGMP snooping.
    required: False
    type: str
  pn_vxlan:
    description:
      - enable or disable IGMP snooping on vxlans.
    required: False
    type: bool
  pn_query_max_response_time:
    description:
      - maximum response time, in seconds, advertised in IGMP queries.
    required: False
    type: str
  pn_scope:
    description:
      - IGMP snooping scope - fabric or local.
    required: False
    choices: ['local', 'fabric']
  pn_no_snoop_linklocal_vlans:
    description:
      - Remove snooping of link-local groups(224.0.0.0/24) on these vlans.
    required: False
    type: str
  pn_snoop_linklocal_vlans:
    description:
      - Allow snooping of link-local groups(224.0.0.0/24) on these vlans.
    required: False
    type: str
s�
- name: 'Modify IGMP Snooping'
  pn_igmp_snooping:
    pn_cliswitch: 'sw01'
    state: 'update'
    pn_vxlan: True
    pn_enable_vlans: '1-399,401-4092'
    pn_no_snoop_linklocal_vlans: 'none'
    pn_igmpv3_vlans: '1-399,401-4092'

- name: 'Modify IGMP Snooping'
  pn_igmp_snooping:
    pn_cliswitch: 'sw01'
    state: 'update'
    pn_vxlan: False
    pn_enable_vlans: '1-399'
    pn_no_snoop_linklocal_vlans: 'none'
    pn_igmpv3_vlans: '1-399'
s�
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stdout:
  description: set of responses from the igmp-snooping command.
  returned: always
  type: list
stderr:
  description: set of error responses from the igmp-snooping command.
  returned: on error
  type: list
changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
(t
AnsibleModule(tpn_clitrun_clitbooleanArgscC`s&tdd�}tdtdtdtdd�dtdtddd	|j��d
tdtdd�dtdtdd�d
tdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtdd�dtdtddd	ddg�dtdtdd�dtdtdd��dd
dd
dddddddg
g�}|jd}|jd}|jd
}|jd}|jd
}|jd}|jd}|jd}	|jd}
|jd}|jd}|jd}
||}t||�}|dkr|d|7}|t|dd�7}|t|	dd�7}|rn|d|7}n|r�|d|7}n|r�|d|7}n|r�|d |7}n|
r�|d!|
7}n|r�|d"|7}n|r�|d#|7}n|
r|d$|
7}qnt|||�d%S(&s' This section is for arguments parsing tupdatesigmp-snooping-modifyt
argument_spectpn_cliswitchtrequiredttypetstrtstatetchoicest	pn_enabletbooltpn_query_intervaltpn_igmpv2_vlanstpn_igmpv3_vlanstpn_enable_vlanstpn_vxlantpn_query_max_response_timetpn_scopetlocaltfabrictpn_no_snoop_linklocal_vlanstpn_snoop_linklocal_vlanstrequired_one_ofs %s tenabletdisabletvxlansno-vxlans query-interval s igmpv2-vlans s igmpv3-vlans s enable-vlans s query-max-response-time s scope s no-snoop-linklocal-vlans s snoop-linklocal-vlans N(	tdictRtFalsetTruetkeystparamsR	RR
(t	state_maptmodulet	cliswitchRR"tquery_intervaltigmpv2_vlanstigmpv3_vlanstenable_vlansR$tquery_max_response_timetscopetno_snoop_linklocal_vlanstsnoop_linklocal_vlanstcommandtcli((sU/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_igmp_snooping.pytmain�s|	












t__main__N(t
__future__RRRRt
__metaclass__tANSIBLE_METADATAt
DOCUMENTATIONtEXAMPLEStRETURNtansible.module_utils.basicRt-ansible.module_utils.network.netvisor.pn_nvosR	R
RR7t__name__(((sU/usr/lib/python2.7/site-packages/ansible/modules/network/netvisor/pn_igmp_snooping.pyt<module>s


I	P

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