Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Tools to manage CVP server using APIs and cvprac lib

Project description

License Model GitHub top language Documentation Status CI Status

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


Download files

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

Files for inetsix-arista-cvp, version 0.3.3
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 hashes
Filename, size inetsix-arista-cvp-0.3.3.tar.gz (23.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page