Skip to main content

Aruba Fabric Composer Python Modules

Project description

pyafc

This python binding is written for Aruba Fabric Composer v6.3 or later

See the Release Notes for more information.

Structure

  • 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.

Git Workflow

This repo adheres to the 'shared repo' git workflow:

  1. Clone the repo to a local machine:

    git clone <repo_URL>

  2. Checkout a local working branch:

    git checkout -b <local_working_branch_name>

  3. Add and amend files in the local working branch:

    git add <file_name>

  4. 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>"

  5. Push commits to github.hpe.com:

    git push origin <local_working_branch_name>

  6. Merge changes using a Pull Request on github.hpe.com. Ensure the PR has a relevant title and additional comments if necessary. PRs should be raised regularly once code is tested and the user satisfied that it is ready for submission. Do not put off creaing a PR until a whole project is complete. The larger the PR, the difficult it is to successfully merge.

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.

How to run workflow

pip install -r requirements.txt

  1. $ python3 wf01_setup_fabric_discover_devices.py input.json
  2. $ python3 wf02_expand_fabric.py input.json
  3. $ python3 wf09_delete_fabric_and_all_configurations.py input.json
  4. $ python3 wf03_micro_segmentation.py input-micro-segmentation.json
  5. $ python3 wf04_micro_segmentation_validation.py input-micro-segmentation.json
  6. $ python3 wf08_cleanup_micro_segmentation.py input-micro-segmentation.json
  7. $ python3 wf09_delete_fabric_and_all_configurations.py input.json

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_0001-0.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

pyafc_0001-0.1.0-py3-none-any.whl (33.3 kB view details)

Uploaded Python 3

File details

Details for the file pyafc_0001-0.1.0.tar.gz.

File metadata

  • Download URL: pyafc_0001-0.1.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for pyafc_0001-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b025ca79fbe197de0a84693619a62addcc2a18c578aa2f422752cd10e47219b4
MD5 5fc904389de5b6f5117e57eea3ed4685
BLAKE2b-256 31c4c159ac3e9d6e094fde38e8beb1829caa0aa94af389c104722e3dcbbd9a64

See more details on using hashes here.

File details

Details for the file pyafc_0001-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyafc_0001-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 33.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for pyafc_0001-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63af718388f1c3eb00fc74d6ae9950f99c5ff5e988cff712b9f2f56df1696307
MD5 b41b3c028883c3c37ce6a917e6ea1fd8
BLAKE2b-256 76afd3de82edf2221677e55850a810d7554208a9cade3348ad0433392fe34f09

See more details on using hashes here.

Supported by

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