�
�Udac @` s� d d l m Z m Z m Z e Z i d d 6d g d 6d d 6Z d Z d Z d
Z d d l
Z
d d l m Z d d
l
m Z d d l
m Z d e f d � � YZ d � Z e d k r� e � n d S( i ( t absolute_importt divisiont print_functions 1.1t metadata_versiont previewt statust communityt supported_bys
---
module: onyx_igmp_interface
version_added: "2.8"
author: "Anas Badaha (@anasb)"
short_description: Configures IGMP interface parameters
description:
- This module provides declarative management of IGMP interface configuration
on Mellanox ONYX network devices.
notes:
- Tested on ONYX 3.6.8130
options:
name:
description:
- interface name that we want to configure IGMP on it
required: true
state:
description:
- IGMP Interface state.
choices: ['enabled', 'disabled']
default: enabled
s]
- name: configure igmp interface
onyx_igmp_interface:
state: enabled
name: Eth1/1
s�
commands:
description: The list of configuration mode commands to send to the device.
returned: always
type: list
sample:
- interface ethernet 1/1 ip igmp snooping fast-leave
N( t
AnsibleModule( t show_cmd( t BaseOnyxModulet OnyxIgmpInterfaceModulec B` s_ e Z e j d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d � Z RS( s ^(Eth\d+\/\d+|Eth\d+\/\d+\d+)$c C` se t d t d d d g d d � d t d t � � } t � } | j | � t d | d t � | _ d
S( s initialize module
t statet choicest enabledt disabledt defaultt namet requiredt
argument_spect supports_check_modeN( t dictt Truet updateR t _module( t selft element_specR ( ( sT /usr/lib/python2.7/site-packages/ansible/modules/network/onyx/onyx_igmp_interface.pyt init_module>