summaryrefslogtreecommitdiff
path: root/ironic/drivers/modules/fake.py
diff options
context:
space:
mode:
Diffstat (limited to 'ironic/drivers/modules/fake.py')
-rw-r--r--ironic/drivers/modules/fake.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/ironic/drivers/modules/fake.py b/ironic/drivers/modules/fake.py
index 2391cba0a..d588675eb 100644
--- a/ironic/drivers/modules/fake.py
+++ b/ironic/drivers/modules/fake.py
@@ -60,10 +60,6 @@ class FakePower(base.PowerInterface):
states.SOFT_REBOOT, states.SOFT_POWER_OFF]
-# NOTE(dtantsur): for backward compatibility
-FakeSoftPower = FakePower
-
-
class FakeBoot(base.BootInterface):
"""Example implementation of a simple boot interface."""
@@ -246,6 +242,10 @@ class FakeBIOS(base.BIOSInterface):
def validate(self, task):
pass
+ @base.clean_step(priority=0, argsinfo={
+ 'settings': {'description': ('List of BIOS settings, each item needs '
+ 'to contain a dictionary with name/value pairs'),
+ 'required': True}})
def apply_configuration(self, task, settings):
# Note: the implementation of apply_configuration in fake interface
# is just for testing purpose, for real driver implementation, please
@@ -271,6 +271,7 @@ class FakeBIOS(base.BIOSInterface):
if len(nochange_list) > 0:
pass
+ @base.clean_step(priority=0)
def factory_reset(self, task):
# Note: the implementation of factory_reset in fake interface is
# just for testing purpose, for real driver implementation, please
@@ -282,6 +283,7 @@ class FakeBIOS(base.BIOSInterface):
for setting in setting_objs:
objects.BIOSSetting.delete(task.context, node_id, setting.name)
+ @base.clean_step(priority=0)
def cache_bios_settings(self, task):
# Note: the implementation of cache_bios_settings in fake interface
# is just for testing purpose, for real driver implementation, please