support pep8 check
[doctor.git] / doctor_tests / installer / base.py
1 ##############################################################################
2 # Copyright (c) 2017 ZTE Corporation and others.
3 #
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 ##############################################################################
9 import abc
10 import six
11
12
13 @six.add_metaclass(abc.ABCMeta)
14 class BaseInstaller(object):
15     def __init__(self, conf, log):
16         self.conf = conf
17         self.log = log
18
19     @abc.abstractproperty
20     def node_user_name(self):
21         """user name for login to cloud node"""
22
23     @abc.abstractmethod
24     def get_ssh_key_from_installer(self):
25         pass
26
27     @abc.abstractmethod
28     def get_host_ip_from_hostname(self, hostname):
29         pass
30
31     @abc.abstractmethod
32     def setup(self):
33         pass
34
35     @abc.abstractmethod
36     def cleanup(self):
37         pass