summaryrefslogtreecommitdiffstats
path: root/multivimbroker
diff options
context:
space:
mode:
authorLiang Ke <lokyse@163.com>2018-03-30 01:53:46 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-30 01:53:46 +0000
commitc30d3bb3ebf964a3eed91b6883f7a13588c3b458 (patch)
tree8684f7cb428fd2edb2ea29017016dbb82d014139 /multivimbroker
parentff40a0cee1f8de73d8d764cc97495f6615c3d1eb (diff)
parent06a5598b298f67dbc891e5613a255f58eb263dfb (diff)
Merge "Support vmware_fake requests"
Diffstat (limited to 'multivimbroker')
-rw-r--r--multivimbroker/multivimbroker/pub/msapi/extsys.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/multivimbroker/multivimbroker/pub/msapi/extsys.py b/multivimbroker/multivimbroker/pub/msapi/extsys.py
index e04c5f5..1208ac9 100644
--- a/multivimbroker/multivimbroker/pub/msapi/extsys.py
+++ b/multivimbroker/multivimbroker/pub/msapi/extsys.py
@@ -27,6 +27,12 @@ def split_vim_to_owner_region(vim_id):
def get_vim_by_id(vim_id):
+ if vim_id == "vmware_fake":
+ return {
+ "type": "vmware",
+ "version": "4.0",
+ "vimId": vim_id
+ }
cloud_owner, cloud_region = split_vim_to_owner_region(vim_id)
ret = restcall.get_res_from_aai("/cloud-infrastructure/cloud-regions/"
"cloud-region/%s/%s" % (