diff options
author | mbeierl <mark.beierl@dell.com> | 2018-06-20 09:29:30 -0400 |
---|---|---|
committer | Mark Beierl <mark.beierl@dell.com> | 2018-06-26 19:15:59 +0000 |
commit | 9014800e1b5ebcd0f3e254c03ad937b0583dd818 (patch) | |
tree | 013b4d7bccf043cb6d6ed073339e462bb855aebb /docker/storperf-master/rest_server.py | |
parent | e71013c4cb73c8ccbd01782cbd814030f4008b9b (diff) |
Adds IP Addresses to Config API
Uses the IP addresses of the VMs in the stack to populate
a new slave_addresses field in the REST API.
Change-Id: I363a4d118cf5c786f4faf8432ea884cb010c6db5
JIRA: STORPERF-239
Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'docker/storperf-master/rest_server.py')
-rw-r--r-- | docker/storperf-master/rest_server.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/storperf-master/rest_server.py b/docker/storperf-master/rest_server.py index 1b66af3..839ea81 100644 --- a/docker/storperf-master/rest_server.py +++ b/docker/storperf-master/rest_server.py @@ -37,6 +37,7 @@ class ReverseProxied(object): :param app: the WSGI application ''' + def __init__(self, app): self.app = app @@ -117,7 +118,8 @@ class ConfigurationResponseModel: 'stack_id': fields.String, 'volume_count': fields.Integer, 'volume_size': fields.Integer, - 'availability_zone': fields.String + 'availability_zone': fields.String, + 'slave_addresses': fields.Nested } @@ -141,6 +143,7 @@ class Configure(Resource): 'volume_size': storperf.volume_size, 'stack_created': storperf.is_stack_created, 'availability_zone': storperf.availability_zone, + 'slave_addresses': storperf.slave_addresses, 'stack_id': storperf.stack_id}) @swagger.operation( |