"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ironic/drivers/base.py" between
ironic-16.0.2.tar.gz and ironic-16.0.3.tar.gz

About: OpenStack Ironic (Optional Service: Bare-Metal Provisioning) aims to provision bare metal machines instead of virtual machines, forked from the Nova baremetal driver.
The "Victoria" series (latest release).

base.py  (ironic-16.0.2):base.py  (ironic-16.0.3)
skipping to change at line 1096 skipping to change at line 1096
:raises: InvalidParameterValue if an invalid component or indicator :raises: InvalidParameterValue if an invalid component or indicator
is specified. is specified.
:raises: MissingParameterValue if a required parameter is missing :raises: MissingParameterValue if a required parameter is missing
:returns: Current state of the indicator, one of :returns: Current state of the indicator, one of
:mod:`ironic.common.indicator_states`. :mod:`ironic.common.indicator_states`.
""" """
raise exception.UnsupportedDriverExtension( raise exception.UnsupportedDriverExtension(
driver=task.node.driver, extension='get_indicator_state') driver=task.node.driver, extension='get_indicator_state')
def detect_vendor(self, task):
"""Detects, stores, and returns the hardware vendor.
If the Node object ``properties`` field does not already contain
a ``vendor`` field, then this method is intended to query
Detects the BMC hardware vendor and stores the returned value
with-in the Node object ``properties`` field if detected.
:param task: A task from TaskManager.
:raises: InvalidParameterValue if an invalid component, indicator
or state is specified.
:raises: MissingParameterValue if a required parameter is missing
:returns: String representing the BMC reported Vendor or
Manufacturer, otherwise returns None.
"""
raise exception.UnsupportedDriverExtension(
driver=task.node.driver, extension='detect_vendor')
class InspectInterface(BaseInterface): class InspectInterface(BaseInterface):
"""Interface for inspection-related actions.""" """Interface for inspection-related actions."""
interface_type = 'inspect' interface_type = 'inspect'
ESSENTIAL_PROPERTIES = {'memory_mb', 'local_gb', 'cpus', 'cpu_arch'} ESSENTIAL_PROPERTIES = {'memory_mb', 'local_gb', 'cpus', 'cpu_arch'}
"""The properties required by scheduler/deploy.""" """The properties required by scheduler/deploy."""
@abc.abstractmethod @abc.abstractmethod
def inspect_hardware(self, task): def inspect_hardware(self, task):
"""Inspect hardware. """Inspect hardware.
 End of changes. 1 change blocks. 
0 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)