This is a fork from ApogeeNetworking, but with no intention from my side to send anything back as the original project seems dead.
Install via go get:
go get -u github.com/helgeolav/arubaos
Basic usage can be found below
package main
import (
"encoding/json"
"fmt"
"log"
"github.com/helgeolav/arubaos"
)
func main() {
// Used in Development for SelfSigned Certs
ignoreSSL := true
// lms == Local Mobility Switch; it could be a Mobility Master or Controller
lms := arubaos.New("host/ip", "user", "pass", ignoreSSL)
err := lms.Login()
if err != nil {
log.Fatalf("%v", err)
}
// Query Mobility Master for AP Database
// Set Up a Filter to Limit Return Count AND
// Specify a Configuration Path (to specific Controller(s))
f := arubaos.AFilter{Count: 1000, CfgPath: "/md"}
// uri=/configuration/object/apdatabase?config_path=/md&count=1000
aps, err := lms.GetMMApDb(f)
// GetMMApDb returns an []MMAp (refer to apdb.go)
}