ComputeBase[source]¶Bases: object
attach_network_or_port(compute_id, network_id=None, ip_address=None, port_id=None)[source]¶Connects an existing amphora to an existing network.
| Parameters: |
|
|---|---|
| Returns: | nova interface |
| Raises: | Exception |
build(name='amphora_name', amphora_flavor=None, image_id=None, image_tag=None, image_owner=None, key_name=None, sec_groups=None, network_ids=None, config_drive_files=None, user_data=None, server_group_id=None)[source]¶Build a new amphora.
| Parameters: |
|
|---|---|
| Raises: | ComputeBuildException – if compute failed to build amphora |
| Returns: | UUID of amphora |
create_server_group(name, policy)[source]¶Create a server group object
| Parameters: |
|
|---|---|
| Returns: | the server group object |
delete(compute_id)[source]¶Delete the specified amphora
| Parameters: | compute_id – The id of the amphora to delete |
|---|
delete_server_group(server_group_id)[source]¶Delete a server group object
| Parameters: | server_group_id – the uuid of a server group |
|---|
detach_port(compute_id, port_id)[source]¶Disconnects an existing amphora from an existing port.
| Parameters: |
|
|---|---|
| Returns: | None |
| Raises: | Exception |
get_amphora(compute_id)[source]¶Retrieve an amphora object
| Parameters: | compute_id – the id of the desired amphora |
|---|---|
| Returns: | the amphora object |
| Returns: | fault message or None |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.