Midonet API client library for Python applications
==================================================
Overview and pre-requisites
This is the client library which can be used by Python applications to interact with MidoNet, network virtualization platform.
MidoNet provides scalable distributed network services for OpenStack. In order to use this client you must have MidoNet configured and running.
How to Install
--------------
Run the following command:
::
$ sudo python ./setup.py
Package dependencies
--------------------
Standard library
logging
json
urllib
base64
threading
External packages
webob
httplib2
Examples
--------
# Instantiate a client. Project ID is required when the API
# is integrated with Keystone.
client = MidonetClient('http://api_uri'', 'username', 'password',
project_id='project_id')
# Create a network
net_id = "174a9db3-94e8-416e-8e48-0eabadfdf664"
input = {"id": net_id,
"name": "tenant",
"tenant_id": "tenant_id",
"admin_state_up": True,
"router:external": False}
output = client.create_network(input)
# Create a subnet
subnet_id = "dc313de0-86ef-4aac-9781-5ad25232777a"
input = {"id": subnet_id,
"name": "tenant",
"tenant_id": "tenant_id",
"ip_version": 4,
"network_id": net_id,
"cidr": "10.0.0.0/24",
"gateway_ip": "10.0.0.1",
"enable_dhcp": True,
"shared": False}
output = client.create_subnet(input)
# Delete subnet
client.delete_subnet(subnet_id)
# Delete network
client.delete_network(net_id)
==================================================
Overview and pre-requisites
This is the client library which can be used by Python applications to interact with MidoNet, network virtualization platform.
MidoNet provides scalable distributed network services for OpenStack. In order to use this client you must have MidoNet configured and running.
How to Install
--------------
Run the following command:
::
$ sudo python ./setup.py
Package dependencies
--------------------
Standard library
logging
json
urllib
base64
threading
External packages
webob
httplib2
Examples
--------
# Instantiate a client. Project ID is required when the API
# is integrated with Keystone.
client = MidonetClient('http://api_uri'', 'username', 'password',
project_id='project_id')
# Create a network
net_id = "174a9db3-94e8-416e-8e48-0eabadfdf664"
input = {"id": net_id,
"name": "tenant",
"tenant_id": "tenant_id",
"admin_state_up": True,
"router:external": False}
output = client.create_network(input)
# Create a subnet
subnet_id = "dc313de0-86ef-4aac-9781-5ad25232777a"
input = {"id": subnet_id,
"name": "tenant",
"tenant_id": "tenant_id",
"ip_version": 4,
"network_id": net_id,
"cidr": "10.0.0.0/24",
"gateway_ip": "10.0.0.1",
"enable_dhcp": True,
"shared": False}
output = client.create_subnet(input)
# Delete subnet
client.delete_subnet(subnet_id)
# Delete network
client.delete_network(net_id)
Metadata
Release files for midonetclient 5.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| midonetclient-5.2.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / midonetclient-5.2.0-py2.py3-none-any.whl
| Download URL | midonetclient-5.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 154.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a98921faf32d686f636f9fcc9b1fd9326d65a6eb7a75cd0e3e7d326093c2239b
|
|
BLAKE2b-256 checksum How to use checksums |
34ff503ee84dde737841a5b077b5fa70d35be83b82a51572ed538dbde46a3aa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for midonetclient 5.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.