Add share network id field in share server info

In share server responce in manila api only information about
share network name is exist. But name can be different. That's
why separate field with share network id is added.

Change-Id: Iac429a2d38f9565239d08d57a8f6cece696124a1
Closes-Bug: #1378687
This commit is contained in:
Vladimir Vechkanov 2014-10-08 04:14:18 -04:00
parent 250ca24a7d
commit 8193f5f38b
2 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class ViewBuilder(common.ViewBuilder):
'status': share_server.status,
'host': share_server.host,
'share_network_name': share_server.share_network_name,
'share_network_id': share_server.share_network_id,
}
if detailed:
share_server_dict['created_at'] = share_server.created_at

View File

@ -31,6 +31,7 @@ fake_share_server_list = {
'status': constants.STATUS_ACTIVE,
'updated_at': None,
'host': 'fake_host',
'share_network_id': 'fake_sn_id',
'share_network_name': 'fake_sn_name',
'project_id': 'fake_project_id',
'id': 'fake_server_id',
@ -39,6 +40,7 @@ fake_share_server_list = {
'status': constants.STATUS_ERROR,
'updated_at': None,
'host': 'fake_host_2',
'share_network_id': 'fake_sn_id_2',
'share_network_name': 'fake_sn_id_2',
'project_id': 'fake_project_id_2',
'id': 'fake_server_id_2',
@ -54,6 +56,7 @@ fake_share_server_get_result = {
'updated_at': None,
'host': 'fake_host',
'share_network_name': 'fake_sn_name',
'share_network_id': 'fake_sn_id',
'project_id': 'fake_project_id',
'id': 'fake_server_id',
'backend_details': {