summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-08-22 10:07:41 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-08-22 10:07:41 +0800
commit20975af33981a2b53bd3128823e7e22cf59166e8 (patch)
tree7ff3b2cd3d87b4b8ff5180664b028b6acfcd8c86
parent0c7bc062700c44c837d5180b25ce18aea2bf6dbe (diff)
Update openstack access to multicloud api
Change-Id: I41bde093bdeb6e529e3cd623316cd46991adc622 Issue-Id: VFC-127 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/pub/nfvi/vim/vimadaptor.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/lcm/pub/nfvi/vim/vimadaptor.py b/lcm/pub/nfvi/vim/vimadaptor.py
index 5f08d0b1..6f63a48c 100644
--- a/lcm/pub/nfvi/vim/vimadaptor.py
+++ b/lcm/pub/nfvi/vim/vimadaptor.py
@@ -35,10 +35,7 @@ class VimAdaptor:
def create_api(self, connectInfo):
vimtype = connectInfo['vimtype'] if 'vimtype' in connectInfo else None
logger.info("call %s, vimtype=%s" % (fun_name(), vimtype))
- if vimtype == const.VIM_OPENSTACK:
- from lcm.pub.nfvi.vim.api.openstack.api import OpenstackApi
- self.apiImpl = OpenstackApi()
- elif vimtype == const.VIM_VMWARE:
+ if vimtype in (const.VIM_OPENSTACK, const.VIM_VMWARE):
from lcm.pub.nfvi.vim.api.multivim.api import MultiVimApi
self.apiImpl = MultiVimApi()
else: