These modules are written for AOS-CX API v10.04 and later. These scripts are written for devices running AOS-CX firmware version 10.04 or greater.
See the Release Notes for more information.
Please note that pyaoscx v2 is not backwards compatible for pyaoscx v1 and earlier, so please specify the correct version when using pyaoscx in requirements.txt files
It is also important to note that the latest code commits on the Master branch in Git are usually ahead of the official
releases and tags, so please be aware of this when cloning the repo versus doing a pip install pyaoscx
Detailed information about the structure and design can be found in the Design document.
Please see the accompanying CONTRIBUTING.md file for guidelines on how to contribute to this repository.
This repo adheres to the 'shared repo' git workflow:
Clone the repo to a local machine:
git clone <repo_URL>
Checkout a local working branch:
git checkout -b <local_working_branch_name>
Add and amend files in the local working branch:
git add <file_name>
Commit regularly. Each commit should encompass a single logical change to the repo (e.g. adding a new function in /pyaoscx is one commit; writing docstrings for all functions in a module is another commit). Include an explanatory message with each commit:
git commit -m "<Clear_explanation_of_commit_here>"
Push commits to github.hpe.com:
git push origin <local_working_branch_name>
Before starting ensure the switch REST API is enabled. Instructions for checking and changing whether or not the REST API is enabled status are available in the ArubaOS-CX Rest API Guide. This includes making sure each device has an administrator account with a password, and each device has https-server rest access-mode read-write and enabled on the reachable vrf.
In order to run the workflow scripts, please complete the steps below:
install virtual env (refer https://docs.python.org/3/library/venv.html). Make sure python version 3 is installed in system.
$ python3 -m venv switchenv
$ source switchenv/bin/activate
in Windows:
$ venv/Scripts/activate.bat
(switchenv)$ pip install pyaoscx
print_system_info.py
)Additionally, please read the RELEASE-NOTES.md file for the current release information and known issues.