Python library for use with Viptela vManage API.
Requires requests
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)
cd ~/envs
virtualenv viptela-test
source viptela-test/bin/activate
pip install https://github.com/bobthebutcher/viptela/archive/master.zip
from viptela.viptela import Viptela
v = Viptela(user='admin', user_pass='admin', vmanage_server='10.1.1.41')
devs = v.get_all_devices()
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]>)