<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/redfish-core/include/utils/resource_utils.hpp, branch master</title>
<subtitle>A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/'/>
<updated>2026-09-17T21:04:52+00:00</updated>
<entry>
<title>subprocessor: Add Status.State/Health to cores</title>
<updated>2026-09-17T21:04:52+00:00</updated>
<author>
<name>George Liu</name>
<email>liuxiwei@inspur.com</email>
</author>
<published>2023-07-14T06:57:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=58f34b5f9133c3a302acbf517aefefde2b9746cd'/>
<id>urn:sha1:58f34b5f9133c3a302acbf517aefefde2b9746cd</id>
<content type='text'>
Populate Redfish Status.Health and Status.State for processor core
resources

resource_utils::getResourceState() and getResourceHealth() are extended
to accept MapperServiceMap and use the first service implementing the
required interface. This avoids duplicate requests when multiple
services advertise the same interface for a core object

This commit also changes the iterator name in HEAD and GET path from
`it` to `coreIt` for better readability as well as passing coreId by
reference to avoid copies

Tested:

```
curl -k -X GET https://${bmc}/redfish/v1/Systems/system/Processors/cpu0/SubProcessors/core0
{
  ...
  "Status": {
    "Health": "OK",
    "State": "Enabled"
  }
}
```
- Where "State" can be "Present", "Available", "Enabled"

- Redfish Validator Passed

Change-Id: I5833541dceb9627b56b96e8235afcde78a09081f
Signed-off-by: Myung Bae &lt;myungbae@us.ibm.com&gt;
Signed-off-by: Justin Nguyen &lt;justinnanguyen@gmail.com&gt;
</content>
</entry>
<entry>
<title>utils: Map Available to UnavailableOffline</title>
<updated>2026-08-19T20:01:10+00:00</updated>
<author>
<name>Justin Nguyen</name>
<email>justinnanguyen@gmail.com</email>
</author>
<published>2026-07-20T15:07:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=e7df55ce35e441b4a97d0db9ae280a71968ffee6'/>
<id>urn:sha1:e7df55ce35e441b4a97d0db9ae280a71968ffee6</id>
<content type='text'>
- State `Available` will be mapped to `UnavailableOffline` for
  Status.State for resources that are present but unavailable
- Added a utility function to reduce code duplication for retrieving
  resource's Status.State (`getResourceState`) and Status.Health
  (`getResourceHealth`)

Tested:
- Compiles and builds
- Unit tests pass

Change-Id: I1164a9412cbd4e1ab8938366ffc7ea9c7fe58786
Signed-off-by: Justin Nguyen &lt;justinnanguyen@gmail.com&gt;
</content>
</entry>
</feed>
