aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/deployment/factory.py
diff options
context:
space:
mode:
authorJose Lausuch <jalausuch@suse.com>2017-09-12 12:06:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-09-12 12:06:11 +0000
commit7ea71686055dc42aec6bc38213ea7d09e3690dad (patch)
tree750971c8a62091ea1f2696c80e28ee891e971778 /opnfv/deployment/factory.py
parentd16d4a027afcae16c6920ec69a4cc3a1f2833cb7 (diff)
parent5e9779b53f66803469108fa54c2cb479e695fb41 (diff)
Merge "Add OSA adapter for XCI"
Diffstat (limited to 'opnfv/deployment/factory.py')
-rw-r--r--opnfv/deployment/factory.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/opnfv/deployment/factory.py b/opnfv/deployment/factory.py
index b8e5c8e..55fb2e2 100644
--- a/opnfv/deployment/factory.py
+++ b/opnfv/deployment/factory.py
@@ -11,6 +11,7 @@
from opnfv.deployment.apex import adapter as apex_adapter
from opnfv.deployment.compass import adapter as compass_adapter
from opnfv.deployment.fuel import adapter as fuel_adapter
+from opnfv.deployment.OSA import adapter as osa_adapter
from opnfv.utils import opnfv_logger as logger
logger = logger.Logger(__name__).getLogger()
@@ -18,7 +19,7 @@ logger = logger.Logger(__name__).getLogger()
class Factory(object):
- INSTALLERS = ["fuel", "apex", "compass", "joid", "daisy"]
+ INSTALLERS = ["fuel", "apex", "compass", "joid", "daisy", "OSA"]
def __init__(self):
pass
@@ -46,6 +47,10 @@ class Factory(object):
installer_ip=installer_ip,
installer_user=installer_user,
installer_pwd=installer_pwd)
+ elif installer.lower() == "osa":
+ return osa_adapter.OSAAdapter(installer_ip=installer_ip,
+ installer_user=installer_user,
+ pkey_file=pkey_file)
else:
raise Exception("Installer adapter is not implemented for "
"the given installer.")