arubanetworks.aoscx.aoscx_static_mac (4.3.2) — module

Create, Update, or Delete Static MACs on AOS-CX devices.

| "added in version" 4.1.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 module provides configuration management of Static MACs on AOS-CX devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Create Static MAC
  aoscx_static_mac:
    vlan: 23
    mac_addr: aa:bb:cc:dd:ee:ff
    port: 1/1/12
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update Port in Static MAC
  aoscx_static_mac:
    vlan: 23
    mac_addr: aa:bb:cc:dd:ee:ff
    port: 1/1/2
    state: update
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete Static MAC
  aoscx_static_mac:
    vlan: 23
    mac_addr: aa:bb:cc:dd:ee:ff
    port: 1/1/2
    state: delete

Inputs

    
port:
    description: Port or Interface to which the Static MAC is attached to.
    required: true
    type: str

vlan:
    description: Vlan to which the Static MAC belongs.
    required: true
    type: int

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

mac_addr:
    description: Hexadecimal address of the Static MAC.
    required: true
    type: str