1 ###############################################################################
2 # Copyright (c) 2016 Ericsson AB, ZTE and others.
3 # szilard.cserey@ericsson.com
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ###############################################################################
12 from ipmi_adapter import IpmiAdapter
21 class ZteAdapter(IpmiAdapter):
23 def __init__(self, yaml_path, attempts=100):
24 super(ZteAdapter, self).__init__(yaml_path, attempts)
26 def node_reset(self, node_id):
27 log('RESET Node %s' % node_id)
28 cmd = '%s chassis power cycle' % self.ipmi_cmd(node_id)
29 exec_cmd(cmd, attempts=self.attempts, delay=self.delay,