summaryrefslogtreecommitdiff
path: root/ironic/drivers/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/drivers/base.py')
-rw-r--r--ironic/drivers/base.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/ironic/drivers/base.py b/ironic/drivers/base.py
index 90025ab48..6c7ca4dd8 100644
--- a/ironic/drivers/base.py
+++ b/ironic/drivers/base.py
@@ -131,7 +131,6 @@ class BaseDriver(object):
"""
standard_interfaces.append('raid')
- @abc.abstractmethod
def __init__(self):
pass
@@ -164,20 +163,19 @@ class BareDriver(BaseDriver):
class, as well as appended to core_interfaces or standard_interfaces here.
"""
- def __init__(self):
- self.network = None
- """`Core` attribute for network connectivity.
+ network = None
+ """`Core` attribute for network connectivity.
- A reference to an instance of :class:NetworkInterface.
- """
- self.core_interfaces.append('network')
+ A reference to an instance of :class:NetworkInterface.
+ """
+ core_interfaces = BaseDriver.core_interfaces + ['network']
- self.storage = None
- """`Standard` attribute for (remote) storage interface.
+ storage = None
+ """`Standard` attribute for (remote) storage interface.
- A reference to an instance of :class:StorageInterface.
- """
- self.standard_interfaces.append('storage')
+ A reference to an instance of :class:StorageInterface.
+ """
+ standard_interfaces = BaseDriver.standard_interfaces + ['storage']
ALL_INTERFACES = set(BareDriver().all_interfaces)