Skip to main content

Midonet API client library for Python applications

Project description

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 ./

Package dependencies

Standard library

External packages


# Instantiate a client. Project ID is required when the API
# is integrated with Keystone.
client = MidonetClient('http://api_uri'', 'username', 'password',

# 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": "",
"gateway_ip": "",
"enable_dhcp": True,
"shared": False}
output = client.create_subnet(input)

# Delete subnet

# Delete network

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for midonetclient, version 5.2.0
Filename, size File type Python version Upload date Hashes
Filename, size midonetclient-5.2.0-py2.py3-none-any.whl (154.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page