diff options
author | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-29 00:51:54 -0700 |
---|---|---|
committer | Ethan Lynn <ethanlynnl@vmware.com> | 2018-03-29 01:00:06 -0700 |
commit | 06a5598b298f67dbc891e5613a255f58eb263dfb (patch) | |
tree | 447d753e2976485a6f81a6e3235592e8b2bbaa11 /multivimbroker | |
parent | 63bf19e9be7fe29fc691bef4088ec544444a4a19 (diff) |
Support vmware_fake requests
Directly route vmware_fake requests to vio-plugin
Change-Id: Ia6bf611c3cb0966e8717a9eff6baf7a5f2023a96
Issue-ID: MULTICLOUD-156
Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'multivimbroker')
-rw-r--r-- | multivimbroker/multivimbroker/pub/msapi/extsys.py | 6 |
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" % ( |