Wireless Access

last person joined: 18 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

Using ArubaOS 8 APIs to set up a WiFi Network

This thread has been viewed 16 times
  • 1.  Using ArubaOS 8 APIs to set up a WiFi Network

    EMPLOYEE
    Posted Aug 10, 2018 09:18 AM

    This post will walk through on how to configure a WiFi Network using APIs. This will be helpful to any Developer or Automation Engineer to get started with APIs available in ArubaOS 8 and do their further exploration. You might find the "Inputs" used in the "POST Body" useful.

     

    My Setup:
    The following is how the Setup looks, I am going to configure an SSID called “API-Demo” on the cluster using API calls.
    I will be using Postman tool and will also share the equivalent Container and Object which was referred in the Swagger UI.My-Setup.jpg

    The following is my Configuration Node hierarchy.

    I will be creating all the configurations on the Group  “/md/Campus-A”

    Configuration Node Hierarchy.jpg

     

    Assumption:

    Mobility Master and Managed Devices are UP and running.

    The APs are terminated on the Cluster.

     

    Swagger UI:
    Swagger UI can be accessed using the following link
    https://<MM-IP-Address>/api/

     

    Postman

    Get Postman downloaded and installed on your Windows or Mac. Now let’s get started.

     

    Controller Login:

    First I need to login into the Controller in order to start configuring.Controller Login.jpg

    I will be getting an "UIDARUBA": "0a94f2e6-a967-458d-bcc9-ebea0cf3c15c" which will be used in subsequent API calls.

     

    Create User VLAN:

    Swagger UI:

    CONTAINERS

     Interfaces

    OBJECT

     POST /object/vlan_id

     Postman:

    Create User VLAN ID.jpg

     

    Create Dot1x Auth Profile:

    Swagger UI:

    CONTAINERS

         Authentication

    OBJECT

         POST /object/dot1x_auth_profile

    Postman:Create Dot1x Auth Profile.jpg

     

    Create AAA Profile:

    Swagger UI:

    CONTAINERS

         Authentication

    OBJECT

         POST /object/aaa_prof

    Postman:Create aaa profile.jpg

     

    Create SSID Profile:

    Swagger UI:

    CONTAINER

     WLAN

    OBJECT

     POST /object/ssid_prof

    Postman:Create SSID Profile.jpg

     

    Create Virtual AP Profile:

    Swagger UI:

    CONTAINER

     WLAN

    OBJECT

     POST /object/virtual_ap

    Postman:Create Virtual AP Profile.jpg

     

    Link to AP-Group:

    Swagger UI:

    CONTAINER

     WLAN

    OBJECT

     POST /object/ap_group

    Postman:AP-Group Linking.jpg

     

    Write Memory:

    Swagger UI:

    CONTAINER

     Controller

    OBJECT

     POST /object/write_memory

    Postman:Write Memory.jpg

     

    Verification:

    Verifying if "API-Demo" SSID is created:BSS Table.jpg

     

     

    EXTRAS - BONUS :)

    1) Getting VLANS:

    How to get the VLAN configured in the Controller 192.168.17.177 (/md/Campus-A/20:4c:03:15:b9:9c)

    Swagger UI:

    CONTAINER

     Interfaces

    OBJECT

     GET /object/vlan_id

    Postman:Get VLAN for MD1.jpg

     

    2) Show Commands:Get AP Database.jpg

     

    3) Enable/Disable SSID:

    Swagger UI:

    CONTAINER

     WLAN

    OBJECT

     POST /object/ssid_prof

    Postman:

    Disable SSID:Disable SSID.jpg

    Enable SSID:

    Enable SSID.jpg

     

    Hope you find this useful. Please post your feedback !

     

    Regards,

    Kapildev Erampu



  • 2.  RE: Using ArubaOS 8 APIs to set up a WiFi Network

    Posted Sep 02, 2019 04:38 AM

    I get the following error when creating the aaa profile:

    Error: Role 'authenticated' is user defined, and can't be applied without Next Generation Policy Enforcement Firewall

     

    What does that mean and also what is the diffrence between `authenticated` and `guest` roles ?