community.general.ce_multicast_igmp_enable (0.1.1) — module

Manages multicast igmp enable configuration on HUAWEI CloudEngine switches.

Authors: xuxiaowei0512 (@CloudEngine-Ansible)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

Manages multicast igmp on HUAWEI CloudEngine switches.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

  - name: configure global igmp enable
    ce_multicast_igmp_enable:
      aftype: v4
      features: 'global'
      state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: configure global igmp disable
    ce_multicast_igmp_enable:
      features: 'global'
      aftype: v4
      state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: configure vlan igmp enable
    ce_multicast_igmp_enable:
      features: 'vlan'
      aftype: v4
      vlan_id: 1
      igmp: true
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: new proxy,igmp,version
    ce_multicast_igmp_enable:
      features: 'vlan'
      aftype: v4
      vlan_id: 1
      proxy: true
      igmp: true
      version: 1
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: modify proxy,igmp,version
    ce_multicast_igmp_enable:
      features: 'vlan'
      aftype: v4
      vlan_id: 1
      version: 2
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: delete proxy,igmp,version
    ce_multicast_igmp_enable:
      features: 'vlan'
      aftype: v4
      vlan_id: 1
      state: absent

Inputs

    
igmp:
    description:
    - Enable Layer 2 multicast Snooping in a VLAN.
    type: bool

proxy:
    description:
    - Layer 2 multicast snooping proxy is enabled.
    type: bool

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Specify desired state of the resource.
    type: str

aftype:
    choices:
    - v4
    - v6
    description:
    - Destination ip address family type of static route.
    required: true
    type: str

version:
    default: 2
    description:
    - Specifies the IGMP version that can be processed.
    type: int

vlan_id:
    description:
    - Virtual LAN identity.
    type: int

features:
    choices:
    - global
    - vlan
    description:
    - Distinguish between Globally Enabled IGMP or
    - Enabled IGMP under vlanID.
    required: true
    type: str

Outputs

changed:
  description: check if a change was made on the device
  returned: always
  sample: true
  type: bool
end_state:
  description: k/v pairs of switchport after module execution
  returned: always
  sample: {}
  type: dict
existing:
  description: k/v pairs of existing switchport
  returned: always
  sample: {}
  type: dict
proposed:
  description: k/v pairs of parameters passed into module
  returned: always
  sample:
    addrFamily: ipv4unicast
    features: vlan
    proxyEnable: 'false'
    snoopingEnable: 'false'
    state: absent
    version: 2
    vlanId: 1
  type: dict
updates:
  description: command list sent to the device
  returned: always
  sample:
  - undo igmp snooping enable
  - undo igmp snooping version
  - undo igmp snooping proxy
  type: list