Add more entity ids
The entity ids are defined in the IPMI spec Section 43.14 Table 43-,
Entity ID Codes.
Tested:
GetEntityName [1] works with these new ids when combined with a json
file that uses them. For example:
{
"system_board": [
{"instance": 1, "name": "foo"}
],
"power_system_board": [
{"instance": 1, "name": "bar"}
],
"system_internal_expansion_board": [
{"instance": 1, "name": "baz"}
],
"fan": [
{"instance": 1, "name": "qux"}
]
}
[1]: https://github.com/openbmc/google-ipmi-sys#getentityname---subcommand-0x06
Signed-off-by: Peter Lundgren <peterlundgren@google.com>
Change-Id: I8f546aa23d9da8a3ddf282b0c2de89f9c17edf8c
diff --git a/handler.hpp b/handler.hpp
index ae84945..e84ab74 100644
--- a/handler.hpp
+++ b/handler.hpp
@@ -117,9 +117,13 @@
{0x03, "cpu"},
{0x04, "storage_device"},
{0x06, "system_management_module"},
+ {0x07, "system_board"},
{0x08, "memory_module"},
{0x0B, "add_in_card"},
+ {0x0E, "power_system_board"},
+ {0x10, "system_internal_expansion_board"},
{0x17, "system_chassis"},
+ {0x1D, "fan"},
{0x20, "memory_device"}};
nlohmann::json _entityConfig{};