Skip to main content

AFC Python Modules

Project description

pyafc

HPE Aruba Networking PyAFC Modules to work with HPE Aruba Networking Fabric Composer

See the Release Notes for more information.

It is also important to note that the latest code commits on the main 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 pyafc

Structure

Detailed information about the structure and design can be found in the Design document.

  • REST API call functions are found in the modules in /pyafc/*/.
  • REST API call functions are combined into other functions that emulate low-level processes. These low-level process functions are also placed in files in /pyafc/*/.
  • Functions from the /pyafc/* files (API functions and low-level functions) are combined to emulate larger network configuration processes (workflows). These workflow scripts stored in the /workflows folder.

How to contribute

Please see the accompanying CONTRIBUTING.md file for guidelines on how to contribute to this repository.

How to run this code

In order to run the workflow scripts, please complete the steps below:

  1. install virtual env (refer https://docs.python.org/3/library/venv.html). Make sure python version 3 is installed in system.

    $ python3 -m venv py_env
    
  2. Activate the virtual env

    $ source py_env/bin/activate
    in Windows:
    $ venv/Scripts/activate.bat
    
  3. Install the pyafc package

    (py_env)$ pip install pyafc
    
  4. Now you can run different workflows from pyafc/workflows (e.g. create_fabric.py)

  5. Keep in mind that the workflows perform high-level configuration processes; they are highly dependent on the status of HPEANFC prior to running the workflows.

Troubleshooting Issues

  1. If you encounter module import errors, make sure that the package has been installed correctly.

Additionally, please read the RELEASE-NOTES.md file for the current release information and known issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyafc-1.0.1.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyafc-1.0.1-py3-none-any.whl (143.3 kB view details)

Uploaded Python 3

File details

Details for the file pyafc-1.0.1.tar.gz.

File metadata

  • Download URL: pyafc-1.0.1.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyafc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0632ad1c1fe2c3a4cb6ae48c14094dfdd72920ee4e359dcc062ac720b85be506
MD5 37171a51a1e507ac0091872ccd27005e
BLAKE2b-256 c137d7bdcc40615e2dbfa0a19254c1003c23c42a0e48f308525fda50bbdd2dad

See more details on using hashes here.

File details

Details for the file pyafc-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: pyafc-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 143.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pyafc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5aba6a803ac5a7327fad35bcf6cebbd7a63b00ef7fb0bb358b05e6ce067318a4
MD5 2015b0450ec985c901434a6bdee5918a
BLAKE2b-256 fe51862a21ce5a58b5bfd2ccaea471da3212dd700b1e5cf25b4f650e1541dade

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page