summaryrefslogtreecommitdiffstats
path: root/docker/storperf-master/rest_server.py
diff options
context:
space:
mode:
authorMark Beierl <mark.beierl@dell.com>2017-09-06 00:48:57 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-06 00:48:57 +0000
commitbeb902a7975843dd25a618f1fcfd4bc980ac53c1 (patch)
treed0956f857b6720e4ca011a4d45710dfa985cf607 /docker/storperf-master/rest_server.py
parent9eff0c44a1eca5f265f3e1bc5f1073b4165b9c83 (diff)
parent0468cfe6858e83d04078945d98a831fe92592243 (diff)
Merge "Support for different agent OS"
Diffstat (limited to 'docker/storperf-master/rest_server.py')
-rw-r--r--docker/storperf-master/rest_server.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/storperf-master/rest_server.py b/docker/storperf-master/rest_server.py
index 6da2004..0634b8f 100644
--- a/docker/storperf-master/rest_server.py
+++ b/docker/storperf-master/rest_server.py
@@ -64,7 +64,9 @@ class ConfigurationRequestModel:
'agent_image': fields.String,
'public_network': fields.String,
'volume_size': fields.Integer,
- 'availability_zone': fields.String
+ 'availability_zone': fields.String,
+ 'username': fields.String,
+ 'password': fields.String
}
@@ -137,6 +139,10 @@ class Configure(Resource):
storperf.volume_size = request.json['volume_size']
if ('availability_zone' in request.json):
storperf.availabilty_zone = request.json['availability_zone']
+ if ('username' in request.json):
+ storperf.username = request.json['username']
+ if ('password' in request.json):
+ storperf.password = request.json['password']
storperf.create_stack()
if storperf.stack_id is None: