community.general.pn_igmp_snooping (0.1.1) — module

CLI command to modify igmp-snooping

Authors: Pluribus Networks (@rajaspachipulusu17)

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 can be used to modify Internet Group Management Protocol (IGMP) snooping.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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'
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- 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'

Inputs

    
state:
    choices:
    - update
    description:
    - State the action to perform. Use C(update) to modify the igmp-snooping.
    required: true
    type: str

pn_scope:
    choices:
    - local
    - fabric
    description:
    - IGMP snooping scope - fabric or local.
    required: false

pn_vxlan:
    description:
    - enable or disable IGMP snooping on vxlans.
    required: false
    type: bool

pn_enable:
    description:
    - enable or disable IGMP snooping.
    required: false
    type: bool

pn_cliswitch:
    description:
    - Target switch to run the CLI on.
    required: false
    type: str

pn_enable_vlans:
    description:
    - enable per VLAN IGMP snooping.
    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_query_interval:
    description:
    - IGMP query interval in seconds.
    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

pn_query_max_response_time:
    description:
    - maximum response time, in seconds, advertised in IGMP queries.
    required: false
    type: str

pn_no_snoop_linklocal_vlans:
    description:
    - Remove snooping of link-local groups(224.0.0.0/24) on these vlans.
    required: false
    type: str

Outputs

changed:
  description: indicates whether the CLI caused changes on the target.
  returned: always
  type: bool
command:
  description: the CLI command run on the target node.
  returned: always
  type: str
stderr:
  description: set of error responses from the igmp-snooping command.
  returned: on error
  type: list
stdout:
  description: set of responses from the igmp-snooping command.
  returned: always
  type: list