All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bmcweb/Redfish] Chassis Physical Connectivity Support on bmcweb
@ 2021-06-08  1:22 Willy Tu
  2021-06-10 16:43 ` Willy Tu
  0 siblings, 1 reply; 2+ messages in thread
From: Willy Tu @ 2021-06-08  1:22 UTC (permalink / raw)
  To: OpenBMC Maillist; +Cc: Jie Yang, Ed Tanous, Derek Chan

[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]

Hi all,

I am thinking about adding better support for Physical Connectivity between
Boards/Chassises in bmcweb. Since Inventory.Board is treated as a chassis,
I want to have a way to better connect the different boards with the
existing ContainedBy/Contains.

I was thinking of using xyz.openbmc_project.Association to do it. Since it
is a list with fixed order, we can use the first chassis it finds
for ContainedBy and the rest for Contains. For the root Chassis, it will
have itself as the first Chassis and then just not include it.

Is this something we can work with? or do we need something more
complicated to support chassis relationship?

----

Another question that is kind of related.
I am also thinking about using Physical Location for each Chassis.
It is already using `xyz.openbmc_project.Inventory.Decorator.LocationCode`
as the ServiceLabel
https://github.com/openbmc/bmcweb/blob/90e97e1d26b78d899a543831a8051dacbbdde71a/redfish-core/lib/chassis.hpp#L295-L331

With that in mind, I am wondering how LocationCode is configured with
EntityManager? Since the number of FRUs is dynamic, there is no way to tell
which location the FRU is connected to without a mapping. I am wondering
how that can be done with Entity Manager.

I was thinking of doing something like getEntityName
<https://github.com/openbmc/google-ipmi-sys/blob/3b1b427c1fa4bcddcab1fc003410e5fa5d7a8334/handler.cpp#L235>
in
IPMI OEM handler which utilizes a json file for the mapping from entity
instance to location. This is a simple way of doing it within
EntityManager, but I am not sure if we want to do it this way.

Maybe something related?
https://gerrit.openbmc-project.xyz/c/openbmc/entity-manager/+/42971

Best,

Willy Tu

[-- Attachment #2: Type: text/html, Size: 4160 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bmcweb/Redfish] Chassis Physical Connectivity Support on bmcweb
  2021-06-08  1:22 [Bmcweb/Redfish] Chassis Physical Connectivity Support on bmcweb Willy Tu
@ 2021-06-10 16:43 ` Willy Tu
  0 siblings, 0 replies; 2+ messages in thread
From: Willy Tu @ 2021-06-10 16:43 UTC (permalink / raw)
  To: OpenBMC Maillist; +Cc: Jie Yang, Ed Tanous, Derek Chan

[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]

Related doc for the Chassis Inventory Connections:
https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/41468

On Mon, Jun 7, 2021 at 6:22 PM Willy Tu <wltu@google.com> wrote:

> Hi all,
>
> I am thinking about adding better support for Physical Connectivity
> between Boards/Chassises in bmcweb. Since Inventory.Board is treated as a
> chassis, I want to have a way to better connect the different boards with
> the existing ContainedBy/Contains.
>
> I was thinking of using xyz.openbmc_project.Association to do it. Since
> it is a list with fixed order, we can use the first chassis it finds
> for ContainedBy and the rest for Contains. For the root Chassis, it will
> have itself as the first Chassis and then just not include it.
>
> Is this something we can work with? or do we need something more
> complicated to support chassis relationship?
>
> ----
>
> Another question that is kind of related.
> I am also thinking about using Physical Location for each Chassis.
> It is already using `xyz.openbmc_project.Inventory.Decorator.LocationCode`
> as the ServiceLabel
> https://github.com/openbmc/bmcweb/blob/90e97e1d26b78d899a543831a8051dacbbdde71a/redfish-core/lib/chassis.hpp#L295-L331
>
> With that in mind, I am wondering how LocationCode is configured with
> EntityManager? Since the number of FRUs is dynamic, there is no way to tell
> which location the FRU is connected to without a mapping. I am wondering
> how that can be done with Entity Manager.
>
> I was thinking of doing something like getEntityName
> <https://github.com/openbmc/google-ipmi-sys/blob/3b1b427c1fa4bcddcab1fc003410e5fa5d7a8334/handler.cpp#L235> in
> IPMI OEM handler which utilizes a json file for the mapping from entity
> instance to location. This is a simple way of doing it within
> EntityManager, but I am not sure if we want to do it this way.
>
> Maybe something related?
> https://gerrit.openbmc-project.xyz/c/openbmc/entity-manager/+/42971
>
> Best,
>
> Willy Tu
>

[-- Attachment #2: Type: text/html, Size: 4745 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-10 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  1:22 [Bmcweb/Redfish] Chassis Physical Connectivity Support on bmcweb Willy Tu
2021-06-10 16:43 ` Willy Tu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.