Merge "Document hardware inventory sent to lookup and inspection"

This commit is contained in:
Jenkins
2016-03-15 17:04:25 +00:00
committed by Gerrit Code Review
2 changed files with 49 additions and 0 deletions
doc/source
ironic_python_agent

@ -284,6 +284,14 @@ class HardwareManager(object):
return erase_results
def list_hardware_info(self):
"""Return full hardware inventory as a serializable dict.
This inventory is sent to Ironic on lookup and to Inspector on
inspection.
:return: a dictionary representing inventory
"""
# NOTE(dtantsur): don't forget to update docs when extending inventory
hardware_info = {}
hardware_info['interfaces'] = self.list_network_interfaces()
hardware_info['cpu'] = self.get_cpus()