Update driver names and base class.

Also, add (task, node) to the base and fake driver method parameters.
Prepares the way for adding TaskManagers in a following patch.

Change-Id: I846227b2416445a539f9ac51d86b33ea49d4abcb
This commit is contained in:
Devananda van der Veen 2013-05-21 18:32:13 -07:00
parent 250db43549
commit 820bfc0f32
2 changed files with 13 additions and 4 deletions

View File

@ -83,12 +83,12 @@ def _get_console_pid(node_id):
return None
class IPMIPowerDriver(base.BMCDriver):
class IPMIPowerDriver(base.ControlDriver):
"""Generic IPMI Power Driver
This BMCDriver class provides mechanism for controlling the power state
of physical hardware via IPMI calls. It also provides console access
for some supported hardware.
This ControlDriver class provides mechanism for controlling the power state
of physical hardware via IPMI calls. It also provides console access for
some supported hardware.
"""
def __init__(self, node, **kwargs):

View File

@ -32,6 +32,15 @@ console_scripts =
ironic-dbsync = ironic.cmd.dbsync:main
ironic-manager = ironic.cmd.manager:main
ironic.controllers =
fake = ironic.drivers.fake:FakeControlDriver
ipmi = ironic.drivers.ipmi:IPMIPowerDriver
# vpd = ironic.drivers.vpd:VirtualPowerDriver
ironic.deployers =
fake = ironic.drivers.fake:FakeDeployDriver
# pxe = ironic.drivers.pxe.PXEDeployDriver
[build_sphinx]
all_files = 1
build-dir = doc/build