pyafc-0001 0.1.0

Creator: railscoder56

Last updated:

Add to Cart

Description:

pyafc0001 0.1.0

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:


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>


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

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

$ python3 wf01_setup_fabric_discover_devices.py input.json
$ python3 wf02_expand_fabric.py input.json
$ python3 wf09_delete_fabric_and_all_configurations.py input.json
$ python3 wf03_micro_segmentation.py input-micro-segmentation.json
$ python3 wf04_micro_segmentation_validation.py input-micro-segmentation.json
$ python3 wf08_cleanup_micro_segmentation.py input-micro-segmentation.json
$ python3 wf09_delete_fabric_and_all_configurations.py input.json

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.