diff options
author | Zenghui Shi <zshi@redhat.com> | 2018-05-08 14:49:05 +0800 |
---|---|---|
committer | Zenghui Shi <zshi@redhat.com> | 2018-05-08 15:16:52 +0800 |
commit | 1e24ef9dde30602c02e834c4723a259823f027ec (patch) | |
tree | e287c5539af71c60df66bd46bb80bd6e224b2c82 /ironic/common/driver_factory.py | |
parent | 02aad838a59d8ac6709092691abe5dbb25b8714a (diff) | |
download | ironic-1e24ef9dde30602c02e834c4723a259823f027ec.tar.gz |
BIOS Settings: Add BIOSInterface
* Adds 'bios' interface to 'BaseDriver'
* Adds BIOSInterface driver class
* Adds fake & no-bios drivers and entries
* Implements it for 'fake-hardare' hardware type
* Adds configuration parameters:
+ [DEFAULT]/enabled_bios_interfaces
+ [DEFAULT]/default_bios_interface
* Adds 'bios_interface' field to Node object
* Handle 'bios_interface' field in _convert_to_version
* Adds bios in CLEANING_INTERFACE_PRIORITY
Drivers can implement this interface to do BIOS
configuration.
Co-Authored-By: Yolanda Robla Mota <yroblamo@redhat.com>
Co-Authored-By: Luong Anh Tuan <tuanla@vn.fujitsu.com>
Change-Id: I7e57130242b6cab21b54e35dc3c0b7819bdc43c0
Story: #1712032
Diffstat (limited to 'ironic/common/driver_factory.py')
-rw-r--r-- | ironic/common/driver_factory.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ironic/common/driver_factory.py b/ironic/common/driver_factory.py index d33e71838..88da2d544 100644 --- a/ironic/common/driver_factory.py +++ b/ironic/common/driver_factory.py @@ -596,7 +596,8 @@ def calculate_migration_delta(driver_name, driver_class, None if a migration is not possible. """ # NOTE(dtantsur): provide defaults for optional interfaces - defaults = {'console': 'no-console', + defaults = {'bios': 'no-bios', + 'console': 'no-console', 'inspect': 'no-inspect', 'raid': 'no-raid', 'rescue': 'no-rescue', |