summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-25 10:07:33 +0000
committerGerrit Code Review <review@openstack.org>2018-07-25 10:07:33 +0000
commit191527ce8b4a994fbdae329e4a314ea7a28cbd01 (patch)
tree25030e23daaeb482c2221eb151b6787c875151ed
parentd535a414a03a884baeec59949303b3e8ede02214 (diff)
parentdb3ade4fc72f10f14deb424fccd9d8e6f5e5bb4e (diff)
downloadpython-saharaclient-191527ce8b4a994fbdae329e4a314ea7a28cbd01.tar.gz
Merge "Adding boot from volume"
-rw-r--r--saharaclient/api/node_group_templates.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/saharaclient/api/node_group_templates.py b/saharaclient/api/node_group_templates.py
index db45798..9486e8b 100644
--- a/saharaclient/api/node_group_templates.py
+++ b/saharaclient/api/node_group_templates.py
@@ -57,7 +57,8 @@ class NodeGroupTemplateManagerV1(base.ResourceManager):
auto_security_group, availability_zone,
volumes_availability_zone, volume_type, image_id,
is_proxy_gateway, volume_local_to_instance, use_autoconfig,
- shares, is_public, is_protected, volume_mount_prefix):
+ shares, is_public, is_protected, volume_mount_prefix,
+ boot_from_volume=None):
self._copy_if_defined(data,
description=description,
@@ -71,7 +72,8 @@ class NodeGroupTemplateManagerV1(base.ResourceManager):
use_autoconfig=use_autoconfig,
shares=shares,
is_public=is_public,
- is_protected=is_protected
+ is_protected=is_protected,
+ boot_from_volume=boot_from_volume
)
if volumes_per_node:
@@ -160,7 +162,7 @@ class NodeGroupTemplateManagerV2(NodeGroupTemplateManagerV1):
volume_type=None, image_id=None, is_proxy_gateway=None,
volume_local_to_instance=None, use_autoconfig=None,
shares=None, is_public=None, is_protected=None,
- volume_mount_prefix=None):
+ volume_mount_prefix=None, boot_from_volume=None):
"""Create a Node Group Template."""
data = {
@@ -178,7 +180,7 @@ class NodeGroupTemplateManagerV2(NodeGroupTemplateManagerV1):
volume_type, image_id, is_proxy_gateway,
volume_local_to_instance, use_autoconfig,
shares, is_public, is_protected,
- volume_mount_prefix)
+ volume_mount_prefix, boot_from_volume)
def update(self, ng_template_id, name=NotUpdated, plugin_name=NotUpdated,
plugin_version=NotUpdated, flavor_id=NotUpdated,
@@ -191,7 +193,8 @@ class NodeGroupTemplateManagerV2(NodeGroupTemplateManagerV1):
image_id=NotUpdated, is_proxy_gateway=NotUpdated,
volume_local_to_instance=NotUpdated, use_autoconfig=NotUpdated,
shares=NotUpdated, is_public=NotUpdated,
- is_protected=NotUpdated, volume_mount_prefix=NotUpdated):
+ is_protected=NotUpdated, volume_mount_prefix=NotUpdated,
+ boot_from_volume=NotUpdated):
"""Update a Node Group Template."""
data = {}
@@ -210,7 +213,8 @@ class NodeGroupTemplateManagerV2(NodeGroupTemplateManagerV1):
volume_local_to_instance=volume_local_to_instance,
use_autoconfig=use_autoconfig, shares=shares,
is_public=is_public, is_protected=is_protected,
- volume_mount_prefix=volume_mount_prefix
+ volume_mount_prefix=volume_mount_prefix,
+ boot_from_volume=boot_from_volume
)
return self._patch('/node-group-templates/%s' % ng_template_id, data,