summaryrefslogtreecommitdiffstats
path: root/modules/opnfv/installer_adapters
diff options
context:
space:
mode:
authorJing Sun <sun.jing22@zte.com.cn>2016-12-30 10:23:04 +0800
committerJing Sun <sun.jing22@zte.com.cn>2017-01-12 08:47:44 +0000
commitd53bc21e5b8eed5fb24a0f994db289e2b50953f1 (patch)
treedd31f5b097ea6fba936e705c384588b4db76fccf /modules/opnfv/installer_adapters
parent3a8b548460d91072f7a38a6d27c0a90548421fbd (diff)
Add a new installer daisy adapter to modules directory
Change-Id: I9a46665941f8536f08d27a1c6d7e62f2a50ffbc2 Signed-off-by: Jing Sun <sun.jing22@zte.com.cn>
Diffstat (limited to 'modules/opnfv/installer_adapters')
-rw-r--r--modules/opnfv/installer_adapters/InstallerHandler.py5
-rw-r--r--modules/opnfv/installer_adapters/daisy/DaisyAdapter.py32
-rw-r--r--modules/opnfv/installer_adapters/daisy/__init__.py0
3 files changed, 36 insertions, 1 deletions
diff --git a/modules/opnfv/installer_adapters/InstallerHandler.py b/modules/opnfv/installer_adapters/InstallerHandler.py
index e353ef3f4..dc5bdb9d6 100644
--- a/modules/opnfv/installer_adapters/InstallerHandler.py
+++ b/modules/opnfv/installer_adapters/InstallerHandler.py
@@ -11,9 +11,10 @@ from opnfv.installer_adapters.fuel.FuelAdapter import FuelAdapter
from opnfv.installer_adapters.apex.ApexAdapter import ApexAdapter
from opnfv.installer_adapters.compass.CompassAdapter import CompassAdapter
from opnfv.installer_adapters.joid.JoidAdapter import JoidAdapter
+from opnfv.installer_adapters.daisy.DaisyAdapter import DaisyAdapter
-INSTALLERS = ["fuel", "apex", "compass", "joid"]
+INSTALLERS = ["fuel", "apex", "compass", "joid", "daisy"]
class InstallerHandler:
@@ -38,6 +39,8 @@ class InstallerHandler:
self.InstallerAdapter = CompassAdapter(self.installer_ip)
elif self.installer == INSTALLERS[3]:
self.InstallerAdapter = JoidAdapter(self.installer_ip)
+ elif self.installer == INSTALLERS[4]:
+ self.InstallerAdapter = DaisyAdapter(self.installer_ip)
else:
print("Installer %s is not valid. "
"Please use one of the followings: %s"
diff --git a/modules/opnfv/installer_adapters/daisy/DaisyAdapter.py b/modules/opnfv/installer_adapters/daisy/DaisyAdapter.py
new file mode 100644
index 000000000..9b06f4c3c
--- /dev/null
+++ b/modules/opnfv/installer_adapters/daisy/DaisyAdapter.py
@@ -0,0 +1,32 @@
+##############################################################################
+# Copyright (c) 2016 Ericsson AB and others.
+# Author: Jose Lausuch (jose.lausuch@ericsson.com)
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+
+class DaisyAdapter:
+
+ def __init__(self, installer_ip):
+ self.installer_ip = installer_ip
+
+ def get_deployment_info(self):
+ pass
+
+ def get_nodes(self):
+ pass
+
+ def get_controller_ips(self):
+ pass
+
+ def get_compute_ips(self):
+ pass
+
+ def get_file_from_installer(self, origin, target, options=None):
+ pass
+
+ def get_file_from_controller(self, origin, target, ip=None, options=None):
+ pass
diff --git a/modules/opnfv/installer_adapters/daisy/__init__.py b/modules/opnfv/installer_adapters/daisy/__init__.py
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/modules/opnfv/installer_adapters/daisy/__init__.py