|
Post by saravanans on Oct 4, 2023 9:04:32 GMT
"Hi all, My goal is to create a patch property under a structure. I have written a YAML file, and it is reflected in the busctl tree named obmc_property. However, it doesn't show within the structure braces {}; instead, it appears within function braces (). Using the busctl set command, I am able to set the property successfully. 1.Is it the case that user-defined structures are indicated within function braces? 2.However, when using the Postman tool, I encounter difficulties setting the property. Kindly help me to overcome the error
|
|
|
Post by mraineri on Oct 4, 2023 13:02:58 GMT
It looks like you're trying to directly set internal values, but using a standard Redfish resource to do so. The Redfish model abstracts these internal details away from external users. So, when you invoke PATCH operations through Redfish, you'll need to specify Redfish properties you're attempting to modify (not direct internal value). Unfortunately I do not know how your BMC is mapping those internal values in your first screenshot to Redfish.
|
|
|
Post by saravanans on Oct 4, 2023 13:40:04 GMT
Hi @ mraineri "I have attached the first screenshot of a normal patchable property, which returned a '200 OK' status. In the second screenshot, I added the structure name 'myRedfish,' which resulted in an error.
|
|
|
Post by mraineri on Oct 4, 2023 16:54:16 GMT
I don't know how the request in that first screenshot would even work in the first place. The "Chassis" resource in Redfish does not contain "HostConf" or "ServiceEnabled" properties, so I would expect the service to reject the request with a 400 Bad Request due to unknown properties in the request body. The service you're using is not conforming with the Redfish spec.
|
|
|
Post by saravanans on Oct 5, 2023 12:40:49 GMT
Hi @ mraineri , I have written a YAML file for HostConf and ServiceEnabled, and I have made some modifications in the chassis.hpp file. As a result, it now returns a 200 OK response. However, when I added the structure, it resulted in a 404 error. Kindly help me to resolve the issue. Note: I am trying to add one structure in Redfish, can you please send any example or syntax to add one structure.
|
|
|
Post by mraineri on Oct 5, 2023 19:22:17 GMT
Unfortunately I don't know enough about OpenBMC to be able to help you with that, and I don't know if anyone on this forum knows either. You would have better luck reaching out to the OpenBMC community since this involves how their software works.
|
|