4db1e580e28f9b9e4a5bee94165816e41fa3a95a
This patch introduces the instrumentation of redfish object's method invocation from ``ilo.client.IloClient`` object. When a method is invoked on client, based on the target hardware the execution of that corresponding method bestows on RIBCL, RIS or Redfish. Again, when the context is Redfish then there RIBCL can remain enabled/disabled. In case of RIBCL enabled, we fall back to RIBCL for any method invocation which is not (yet) implemented in Redfish. For RIBCL being disabled, we raise ``NotImplementedError``. This also introduces a parameter in client constructor named 'use_redfish_only' which when set to True will force the use of redfish. Default value is False. Change-Id: Iaf261a17da137a6fa49e62d9ff2a7cf34c97c2e3 Partial-Bug: 1646685
proliantutils
proliantutils is a set of utility libraries for interfacing and managing various components (like iLO, HPSSA) for HP Proliant Servers. This library is used by iLO drivers in Ironic for managing Proliant Servers (though the library can be used by anyone who wants to manage HP Proliant servers).
Please use launchpad_ to report bugs and ask questions.
.. _launchpad: https://bugs.launchpad.net/proliantutils
Installation
Install the module from PyPI_. If you are using Ironic, install the module on Ironic conductor node::
pip install proliantutils
.. _PyPI: https://pypi.python.org/pypi/proliantutils
Some GNU/Linux distributions provide python-proliantutils package.
Usage
iLO
For interfacing with the iLO, use *IloClient* object::
>>> from proliantutils.ilo import client
>>> ilo_client = client.IloClient('10.10.1.57', 'Administrator', 'password')
>>> ilo_client.get_host_power_status()
'OFF'
>>>
For operations supported on the client object, please refer
*proliantutils.ilo.operations*.
Description
Languages
Python
100%