aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/dha.py
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-04-28 03:27:15 -0400
committerwu.zhihui <wu.zhihui1@zte.com.cn>2016-04-28 03:27:15 -0400
commit1fbdece8ecca78f8caea3f994307efbbe20a98ab (patch)
tree8bb57509cf9c0d740d44cb722d59859d22d2ab75 /deploy/dha.py
parentf50747c9ec79b9f89df6a6ba6d680a89bd6a3de3 (diff)
Add a dha adapter python file for ZTE hardware.
ZTE hardware need use IPMI command "chassis power cycle" on function node_reset(). JIRA: FUEL-127 Change-Id: I286fd9cda43d2e1799b134f0a391f57d08cd1928 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'deploy/dha.py')
-rw-r--r--deploy/dha.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/deploy/dha.py b/deploy/dha.py
index cb413cbb0..3f09da40a 100644
--- a/deploy/dha.py
+++ b/deploy/dha.py
@@ -15,6 +15,7 @@ from dha_adapters.libvirt_adapter import LibvirtAdapter
from dha_adapters.ipmi_adapter import IpmiAdapter
from dha_adapters.hp_adapter import HpAdapter
from dha_adapters.amt_adapter import AmtAdapter
+from dha_adapters.zte_adapter import ZteAdapter
class DeploymentHardwareAdapter(object):
@@ -32,4 +33,6 @@ class DeploymentHardwareAdapter(object):
return HpAdapter(yaml_path)
if type == 'amt':
return AmtAdapter(yaml_path)
+ if type == 'zte':
+ return ZteAdapter(yaml_path)
return super(DeploymentHardwareAdapter, cls).__new__(cls)