Tools to manage CVP server using APIs and cvprac lib
Project description
Arista Cloudvision Portal Python scripts
This repository provides a set of python scripts to interact with Arista Cloudvision server. All of them are based on cvprac library to interact using APIs calls between your client and CVP interface.
Container manager for CoudVision
Generic script to manage containers on Arista Cloudvision server. It is based on cvprac library to interact using APIs calls between your client and CVP interface.
Script filename: cvp-container-manager
Supported Features
- Check if container exists on CVP.
- Create a container on CVP topology
- Delete a container from CVP topology.
- Move a devices to an existing container.
CloudVision Configlet manager
Generic script to manage configlet on an Arista Cloudvision server. It is based on cvprac library to interact using APIs calls between your client and CVP interface.
Script filename: cvp-configlet-manager
Supported Features
- Update existing remote configlet.
- Execute configlet update.
- Wait for task result.
- Delete configlet from server.
- Creating a new Configlet.
- attach and detach devices to/from existing configlet.
- Creating change-control.
- Scheduling change-control.
- Collect tasks to attach to change-control.
CloudVision tasks Management
Generic script to interact with tasks on an Arista Cloudvision server. It is based on cvprac library to interact using APIs calls between your client and CVP interface.
Script filename: cvp-task-manager
Supported Features
- Execute All pending tasks
Known Issues
Due to a change in CVP API, change-control needs to get snapshot referenced per task. Current version of cvprack does not support it in version 1.0. (Issue #75)
Fix is available in develop version. To install development version, use pip:
$ pip install git+https://github.com/aristanetworks/cvprac.git@develop
> Only required if you want to play with change-control
Getting Started
$ pip install git+https://github.com/titom73/arista-cvp-scripts.git # Update your credential information $ cat <<EOT > env.variables.sh export CVP_HOST='xxx.xxx.xxx.xxx' export CVP_PORT=443 export CVP_PROTO='https' export CVP_USER='username' export CVP_PASS='password' export CVP_TZ='Europe/Paris' export CVP_COUNTRY='France' EOT # run script $ cvp-configlet-manager -j actions.json
License
Project is published under BSD License.
Ask question or report issue
Please open an issue on Github this is the fastest way to get an answer.
Contribute
Contributing pull requests are gladly welcomed for this repository. If you are planning a big change, please start a discussion first to make sure we’ll be able to merge it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size inetsix_arista_cvp-0.3.3-py2-none-any.whl (31.6 kB) | File type Wheel | Python version py2 | Upload date | Hashes View |
Filename, size inetsix-arista-cvp-0.3.3.tar.gz (23.3 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for inetsix_arista_cvp-0.3.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59142121cb3bfee89842030db07ec610da4f805f05aeff20047fcdc91e272dee |
|
MD5 | a4c4d83d0919aca6dfd0de0688fd276b |
|
BLAKE2-256 | a5558ba541df8558dd6421069a1a444bf505aa2e6b9dc552b76fbf584a60738e |