Skip to content

ArubaOS CX Module Configuration Example

tchiapuziowong edited this page May 20, 2019 · 1 revision

Description

This Workflow is an example of using Aruba Switching Modules to Automate configuration of ArubaOS-CX.

Workflow

This workflow will either configure or unconfigure an ArubaOS-CX based on the value of the variable state.

  • When state is set to configure, using Aruba Switching Modules, Ansible will do the following using REST API:

    • Create L3 interface 1/1/3
    • Configure VLAN 42
  • When state is set to unconfigure, using Aruba Switching Modules, Ansible will do the following using REST API:

    • Delete L3 interface 1/1/3
    • Delete VLAN 42

Prerequisites

Set Up Inventory

Set up your inventory as described in Project Inventory Set Up

Enable REST on CX

ArubaOS-CX:

switch(config)# https-server rest access-mode read-write
switch(config)# https-server vrf mgmt

Execution

  • Run via: "ansible-playbook arubaoscx_module_config_example.yml -e site=branch1" (Assuming current directory is "aruba-switch-ansible" and all pre-configurations have taken place)