Juniper/contrail-python-api

Name: contrail-python-api

Owner: Juniper Networks

Description: Python API client for Contrail

Created: 2015-10-08 18:50:29.0

Updated: 2018-03-27 10:49:04.0

Pushed: 2017-01-26 07:07:47.0

Homepage: null

Size: 240

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

contrail-python-api

python API bindings for Contrail.

Installing

git clone https://github.com/Juniper/contrail-python-api
cd contrail-python-api
python setup.py install

Example Usage

>>> import pycontrail.client as client
>>> conn = client.Client(
        url='http://10.84.34.141:8082',
        auth_params={'type':'keystone',
                     'auth_url':'http://10.84.34.141:5000/v2.0',
                     'username':'admin',
                     'password':'secret',
                     'tenant_name':'admin'})
>>> conn.virtual_networks_list()

License

This software is licensed under the Apache License, Version 2.0 (the “License”); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.