community.general.onyx_igmp_vlan (0.1.1) — module

Configures IGMP Vlan parameters

Authors: Anas Badaha (@anasbadaha)

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

This module provides declarative management of IGMP vlan configuration on Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure igmp vlan
  onyx_igmp_vlan:
    state: enabled
    vlan_id: 10
    version:
      V2
    querier:
      state: enabled
      interval: 70
      address: 10.11.121.13
    mrouter:
      state: disabled
      name: Eth1/2
    static_groups:
      - multicast_ip_address: 224.5.5.8
        name: Eth1/1
        sources:
          - 1.1.1.1
          - 1.1.1.2

Inputs

    
state:
    choices:
    - enabled
    - disabled
    default: enabled
    description:
    - IGMP state.

mrouter:
    description:
    - Configure ip igmp snooping mrouter port on vlan
    suboptions:
      name:
        description:
        - Configure mrouter interface
        required: true
      state:
        choices:
        - enabled
        - disabled
        default: enabled
        description:
        - Enable IGMP snooping mrouter on vlan interface.

querier:
    description:
    - Configure the IGMP querier parameters
    suboptions:
      address:
        description:
        - Update IP address for the querier
      interval:
        description:
        - Update time interval between querier queries, range 60-600
      state:
        choices:
        - enabled
        - disabled
        default: enabled
        description:
        - Enable IGMP snooping querier on vlan in the switch.

version:
    choices:
    - V2
    - V3
    description:
    - IGMP snooping operation version on this vlan

vlan_id:
    description:
    - VLAN ID, vlan should exist.
    required: true

static_groups:
    description:
    - List of IGMP static groups.
    suboptions:
      multicast_ip_address:
        description:
        - Configure static IP multicast group, range 224.0.1.0-239.255.255.25.
        required: true
      name:
        description:
        - interface name to configure static groups on it.
      sources:
        description:
        - List of IP sources to be configured

Outputs

commands:
  description: The list of configuration mode commands to send to the device.
  returned: always
  sample:
  - vlan 10 ip igmp snooping
  - vlan 10 ip igmp snooping static-group 224.5.5.5 interface ethernet 1/1
  type: list