summaryrefslogtreecommitdiff
path: root/ironic_python_agent
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-03-15 17:04:25 +0000
committerGerrit Code Review <review@openstack.org>2016-03-15 17:04:25 +0000
commitdcd1c8f19b3b516ee626f57eb458380352ebdc0f (patch)
tree6170f0156885dc305e9ac274ec7e59a2e699468a /ironic_python_agent
parentc9f7c951dcd223caeadd27e7ddbba7a5169e9f2f (diff)
parentc9674da220361482b679717e7fca56e34bfa0dca (diff)
downloadironic-python-agent-dcd1c8f19b3b516ee626f57eb458380352ebdc0f.tar.gz
Merge "Document hardware inventory sent to lookup and inspection"
Diffstat (limited to 'ironic_python_agent')
-rw-r--r--ironic_python_agent/hardware.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py
index e1a72818..e3af49cf 100644
--- a/ironic_python_agent/hardware.py
+++ b/ironic_python_agent/hardware.py
@@ -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()