summaryrefslogtreecommitdiff
path: root/saharaclient/api/node_group_templates.py
diff options
context:
space:
mode:
authorAndrew Lazarev <alazarev@mirantis.com>2014-11-20 12:25:51 -0800
committerAndrew Lazarev <alazarev@mirantis.com>2015-02-03 15:41:26 -0800
commitb433efc9c46830823a3f9290733cbf89e517c08f (patch)
treebc35e70724019e9021965096312c68e9af389fc1 /saharaclient/api/node_group_templates.py
parent7c0efcab31e3f115a720f33392ed80e521a01349 (diff)
downloadpython-saharaclient-b433efc9c46830823a3f9290733cbf89e517c08f.tar.gz
Added support of is_proxy_gateway field for node group
Requires https://review.openstack.org/#/c/133590/ to be merged first. Implements blueprint: indirect-vm-access Change-Id: Ifbd680ac759a48327e50d1a525c0d2cedf55b41d
Diffstat (limited to 'saharaclient/api/node_group_templates.py')
-rw-r--r--saharaclient/api/node_group_templates.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/saharaclient/api/node_group_templates.py b/saharaclient/api/node_group_templates.py
index b4f0dfc..75bdeb1 100644
--- a/saharaclient/api/node_group_templates.py
+++ b/saharaclient/api/node_group_templates.py
@@ -29,7 +29,7 @@ class NodeGroupTemplateManager(base.ResourceManager):
node_configs=None, floating_ip_pool=None,
security_groups=None, auto_security_group=None,
availability_zone=None, volumes_availability_zone=None,
- volume_type=None, image_id=None):
+ volume_type=None, image_id=None, is_proxy_gateway=None):
data = {
'name': name,
@@ -46,7 +46,8 @@ class NodeGroupTemplateManager(base.ResourceManager):
security_groups=security_groups,
auto_security_group=auto_security_group,
availability_zone=availability_zone,
- image_id=image_id
+ image_id=image_id,
+ is_proxy_gateway=is_proxy_gateway
)
if volumes_per_node:
@@ -65,7 +66,7 @@ class NodeGroupTemplateManager(base.ResourceManager):
node_processes=None, node_configs=None, floating_ip_pool=None,
security_groups=None, auto_security_group=None,
availability_zone=None, volumes_availability_zone=None,
- volume_type=None, image_id=None):
+ volume_type=None, image_id=None, is_proxy_gateway=None):
data = self._assign_field(name, plugin_name, hadoop_version, flavor_id,
description, volumes_per_node, volumes_size,
@@ -73,7 +74,7 @@ class NodeGroupTemplateManager(base.ResourceManager):
floating_ip_pool, security_groups,
auto_security_group, availability_zone,
volumes_availability_zone, volume_type,
- image_id)
+ image_id, is_proxy_gateway)
return self._create('/node-group-templates', data,
'node_group_template')
@@ -84,7 +85,7 @@ class NodeGroupTemplateManager(base.ResourceManager):
floating_ip_pool=None, security_groups=None,
auto_security_group=None, availability_zone=None,
volumes_availability_zone=None, volume_type=None,
- image_id=None):
+ image_id=None, is_proxy_gateway=None):
data = self._assign_field(name, plugin_name, hadoop_version, flavor_id,
description, volumes_per_node, volumes_size,
@@ -92,7 +93,7 @@ class NodeGroupTemplateManager(base.ResourceManager):
floating_ip_pool, security_groups,
auto_security_group, availability_zone,
volumes_availability_zone, volume_type,
- image_id)
+ image_id, is_proxy_gateway)
return self._update('/node-group-templates/%s' % ng_template_id, data,
'node_group_template')