e5d0e74469038eef76bbaaf516f4843b7d0d1061
While implementing the OpenStackClient "port show" command [1], the following problems were identified with the Port resource object: -- allowed_address_pairs is not a dict -- binding_profile is a dict -- dns_assignment was not explicitely parsed -- dns_name was not explicitely parsed -- extra_dhcp_opts is not a dict -- security_groups is a list Most of these problems do not cause any issues for the "port show" command. However, the allowed_address_pairs and extra_dhcp_opts problems cause the "port show" command to fail due to SDK parsing problems when these properties contain data. [1] https://review.openstack.org/273242/ Change-Id: Ifd94cd2176ebc868b023cdc260d38f147955f772
OpenStack Python SDK
The python-openstacksdk is a collection of libraries for
building applications to work with OpenStack clouds. The project aims to
provide a consistent and complete set of interactions with OpenStack's
many services, along with complete documentation, examples, and
tools.
This SDK is under active development, and in the interests of providing a high-quality interface, the APIs provided in this release may differ from those provided in future release.
Usage
The following example simply connects to an OpenStack cloud and lists the containers in the Object Store service.:
from openstack import connection
conn = connection.Connection(auth_url="http://openstack:5000/v3",
project_name="big_project",
username="SDK_user",
password="Super5ecretPassw0rd")
for container in conn.object_store.containers():
print(container.name)
Documentation
Documentation is available at http://developer.openstack.org/sdks/python/openstacksdk/
License
Apache 2.0
Description