aboutsummaryrefslogtreecommitdiffstats
path: root/opnfv/deployment/factory.py
diff options
context:
space:
mode:
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.")