neutron_lib.clients package

neutron_lib.clients package

Submodules

neutron_lib.clients.placement module

class neutron_lib.clients.placement.PlacementAPIClient(conf, openstack_api_version='placement 1.1')

Bases: object

Client class for placement ReST API.

associate_aggregates(*a, **k)

Associate a list of aggregates with a resource provider.

Parameters:
  • resource_provider_uuid – UUID of the resource provider.
  • aggregates – aggregates to be associated to the resource provider.
create_inventory(*a, **k)

Create an inventory.

Parameters:
  • resource_provider_uuid – UUID of the resource provider.
  • inventory – The inventory. A dict with resource_class (required), total (required), reserved (required), min_unit (required), max_unit (required), step_size (required) and allocation_ratio (required).
create_resource_provider(*a, **k)

Create a resource provider.

Parameters:resource_provider – The resource provider. A dict with the name (required) and the uuid (required).
delete_resource_provider(*a, **k)

Delete a resource provider.

Parameters:resource_provider_uuid – UUID of the resource provider.
get_inventory(*a, **k)

Get resource provider inventory.

Parameters:
  • resource_provider_uuid – UUID of the resource provider.
  • resource_class – Resource class name of the inventory to be returned.
Raises:

PlacementInventoryNotFound – For failure to find inventory for a resource provider.

list_aggregates(*a, **k)

List resource provider aggregates.

Parameters:resource_provider_uuid – UUID of the resource provider.
Raises:PlacementAggregateNotFound – For failure to the aggregates of a resource provider.
update_inventory(*a, **k)

Update an inventory.

Parameters:
  • resource_provider_uuid – UUID of the resource provider.
  • inventory – The inventory, in a dictionary.
  • resource_class – The resource class of the inventory to update.
Raises:

PlacementInventoryUpdateConflict – For failure to update inventory due to outdated resource_provider_generation.

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.