arubanetworks.aoscx.aoscx_vlan (4.3.2) — module

Create or Delete VLAN configuration on AOS-CX

| "added in version" 2.8.0 of arubanetworks.aoscx"

Authors: Aruba Networks (@ArubaNetworks)

preview | supported by certified

Install collection

Install with ansible-galaxy collection install arubanetworks.aoscx:==4.3.2


Add to requirements.yml

  collections:
    - name: arubanetworks.aoscx
      version: 4.3.2

Description

This modules provides configuration management of VLANs on AOS-CX devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create VLAN 200 with description
  aoscx_vlan:
    vlan_id: 200
    description: This is VLAN 200
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create VLAN 300 with description and name
  aoscx_vlan:
    vlan_id: 300
    name: UPLINK_VLAN
    description: This is VLAN 300
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create VLAN 400 with name, voice, vsx_sync and ip igmp snooping
  aoscx_vlan:
    vlan_id: 400
    name: VOICE_VLAN
    voice: True
    vsx_sync: True
    ip_igmp_snooping: True
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete VLAN 300
  aoscx_vlan:
    vlan_id: 300
    state: delete

Inputs

    
name:
    description: VLAN name
    required: false
    type: str

state:
    choices:
    - create
    - update
    - delete
    default: create
    description: Create or update or delete the VLAN.
    required: false
    type: str

voice:
    description: Enable Voice VLAN
    required: false
    type: bool

vlan_id:
    description: 'The ID of this VLAN. Non-internal VLANs must have an ''id'' between
      1 and 4094 to be effectively instantiated.

      '
    required: true
    type: int

vsx_sync:
    description: Enable vsx_sync (Only for VSX device)
    required: false
    type: bool

admin_state:
    choices:
    - up
    - down
    description: The Admin State of the VLAN, options are 'up' and 'down'.
    required: false
    type: str

description:
    description: VLAN description
    required: false
    type: str

ip_igmp_snooping:
    description: Enable IP IGMP Snooping
    required: false
    type: bool