From cb3a426ab0b0b77944202d894ccc09bb820f3d1c Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Fri, 20 Oct 2023 10:49:48 +1300 Subject: [PATCH] [baremetal] driver add missing firmware interface Change-Id: Icd6861b2edb32078a9377dd538644fe666a6e60d --- openstack/baremetal/v1/driver.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openstack/baremetal/v1/driver.py b/openstack/baremetal/v1/driver.py index 9018816d0..c4bb374ed 100644 --- a/openstack/baremetal/v1/driver.py +++ b/openstack/baremetal/v1/driver.py @@ -30,7 +30,8 @@ class Driver(resource.Resource): _query_mapping = resource.QueryParameters(details='detail') # The BIOS interface fields introduced in 1.40 (Rocky). - _max_microversion = '1.40' + # The firmware interface fields introduced in 1.86. + _max_microversion = '1.86' #: A list of active hosts that support this driver. hosts = resource.Body('hosts', type=list) @@ -56,6 +57,9 @@ class Driver(resource.Resource): #: Default deploy interface implementation. #: Introduced in API microversion 1.30. default_deploy_interface = resource.Body("default_deploy_interface") + #: Default firmware interface implementation. + #: Introduced in API microversion 1.86. + default_firmware_interface = resource.Body("default_firmware_interface") #: Default inspect interface implementation. #: Introduced in API microversion 1.30. default_inspect_interface = resource.Body("default_inspect_interface") @@ -95,6 +99,9 @@ class Driver(resource.Resource): #: Enabled deploy interface implementations. #: Introduced in API microversion 1.30. enabled_deploy_interfaces = resource.Body("enabled_deploy_interfaces") + #: Enabled firmware interface implementations. + #: Introduced in API microversion 1.86. + enabled_firmware_interfaces = resource.Body("enabled_firmware_interfaces") #: Enabled inspect interface implementations. #: Introduced in API microversion 1.30. enabled_inspect_interfaces = resource.Body("enabled_inspect_interfaces")