viptela icon indicating copy to clipboard operation
viptela copied to clipboard

Python library for use with Viptela API

Viptela

Python library for use with Viptela vManage API.
Requires requests

Build Status Coverage Status

About

Viptela is an SD-WAN vendor with a solid rest API. The API is documented on the vManage host and can be found by going to https://vmanage-hostname:port/apidocs. Additional API documentation can be found on the viptela site support portal http://viptela.com/support/ (login required)

Installation

cd ~/envs
virtualenv viptela-test
source viptela-test/bin/activate
pip install https://github.com/bobthebutcher/viptela/archive/master.zip

Instantiate a connection to a vManage device

from viptela.viptela import Viptela
v = Viptela(user='admin', user_pass='admin', vmanage_server='10.1.1.41')

Call methods

devs = v.get_all_devices()

Returned Result

All methods return a Result named tuple with the requests.json() data in the data element.
The complete requests.response object is stored in the response element

Result(ok=True, status_code=200, error='', reason='Success', data={}, response=<Response [200]>)