aristanetworks / ansible-cvp

Ansible modules for Arista CloudVision
http://cvp.avd.sh
Apache License 2.0
66 stars 61 forks source link

Feature Request - Add support for Cloudvision as a Service #233

Closed titom73 closed 4 years ago

titom73 commented 4 years ago

Request Type

Detailed Description

Implement CV as a Service authentication support

Is your feature request related to a problem? Please describe.

CVaaS authenticates the user using a token which is different from the on-premise instance of Cloudvision. The authentication mechanism should be changed to support both options.

Todo:

titom73 commented 4 years ago

cvprac implementation for cvaas:

>>> from cvprac.cvp_client import CvpClient
>>> clnt = CvpClient()
>>> clnt.connect(nodes=['cvaas'], username='', 
                 password='', 
                 is_cvaas=True, 
                 cvaas_token='user token')
>>> result = clnt.api.get_cvp_info()
>>> print result
{u'version': u'cvaas'}
>>>