def _get_capabilities(node, ilo_object):
    capabilities = None
    try:
        capabilities = ilo_object.get_server_capabilities()
    except ilo_error.IloError:
        LOG.debug(("Node %s did not return any additional capabilities."),
                  node.uuid)

    return capabilities
inspects hardware and gets additional capabilities.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ilo/inspect.py/_get_capabilities