Skip to main content

VIRL2 Client Library

Project description

CI

VIRL 2 Client Library

Introduction

This is the client library for the Cisco VIRL 2 Network Simulation Platform (virl2_client). It provides a Python package to programmatically create, edit, delete and control network simulations on a VIRL 2 controller.

It is a pure Python implementation that requires Python3. We've tested and written the package with Python 3.8.10.

The status of this package can be considered Beta. We're not aware of any major issues at the time of release. However, since this is the first release of the package, bugs might exist. Both in the package as well as in the API implementation on the controller.

Use Case Description

The client library provides a convenient interface to control the lifecycle of a network simulation. This can be used for automation scripts directly in Python but also for third party integrations / plugins which need to integrate with a simulated network. Examples already existing are an Ansible plugin.

Installation

The package comes in form of a wheel that is downloadable from the VIRL 2 controller. The package can be installed either from PyPi using

pip3 install virl2_client

or, alternatively, the version that is bundled with the VIRL 2 controller can be downloaded to the local filesystem and then directly installed via

pip3 install ./virl2_client-*.whl

The bundled version is available on the index site of the docs when viewed directly on the VIRL 2 controller.

Ensure to replace use the correct file name, replacing the wildcard with the proper version/build information. For example

pip3 install virl2_client-2.0.0b10-py3-none-any.whl

We recommend the use of a virtual environment for installation.

If you want to interact with devices via the client library, you need to install pyATS library.

pip3 install pyats

Usage

The package itself is fairly well documented using docstrings. In addition, the documentation is available in HTML format on the controller itself, via the "Tools -> Client Library" menu.

Compatibility

This package and the used API is specific to VIRL 2. It is not backwards compatible with VIRL 1.x and therefore can not be used with VIRL 1.x. If you are looking for a convenient tool to interface with the VIRL 1 API then the VIRL Utils tool is recommended.

Known Issues

There are no known issues at this point. See the comment in the Introduction section.

Getting Help

If you have questions, concerns, bug reports, etc., please create an issue against the repository on GitHub

Getting Involved

We welcome contributions. Whether you fixed a bug, added a new feature or corrected a typo, all contributions are welcome. General instructions on how to contribute can be found in the CONTRIBUTING file.

Licensing Info

This code is licensed under the Apache 2.0 License. See LICENSE for details.

References

This package is part of the VIRL 2 Network Simulation platform. For details, go to https://developer.cisco.com/modeling-labs. Additional documentation for the product is available at https://developer.cisco.com/docs/modeling-labs

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

virl2_client-2.4.0.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

virl2_client-2.4.0-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file virl2_client-2.4.0.tar.gz.

File metadata

  • Download URL: virl2_client-2.4.0.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.15.0-33-generic

File hashes

Hashes for virl2_client-2.4.0.tar.gz
Algorithm Hash digest
SHA256 1fbcd282ccf8bdf746e4fd0bd4c727507e866b67f320a0637bb5afb2c66a14c9
MD5 781da67916f58cce9cdd2d834c82369f
BLAKE2b-256 c9bab3ff1d6c7c5f72d365c6f4cc3f307ea1dee10a7ca98ab99644555dae0578

See more details on using hashes here.

File details

Details for the file virl2_client-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: virl2_client-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.8.13 Linux/5.15.0-33-generic

File hashes

Hashes for virl2_client-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7c553fab5a791e27dcafacb7110ba1ef89f29e7d825670257b08ba9d96701bbd
MD5 4f1cc091c946748f44f869e3e119015f
BLAKE2b-256 0c310ef5252a26e1125600a0faf699835dc2b98ff61b6cf77567b40b7a36a442

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