Project

General

Profile

Actions

Feature #10898

closed

Add topo method to determine occupant status

Added by Rob Johnston about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
2019-05-01
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triag
Gerrit CR:
External Bug:

Description

There are a number of topo node types that represent FRU containers. For example. "bay" and "slot" nodes. It would be useful if there was a node method one could invoke on such nodes to determine whether or not the FRU occupant was present.

One use case involves code which manages drive bay indicators (LEDs). It's common for drive bay indicators to not be controllable when the drive bay is not occupied. Thus it would be useful to have a method one could invoke on a "bay" node to determine if that bay was occupied. before attempting to set the drive bay indicator states.

This ticket it to cover adding a new method TOPO_METH_OCCUPIED which can be registered onto FRU container nodes.

As part of this work we will also extend the "-S" option fmtopo to invoke this method and print the result on each node as it walks the tree.

Finally we'll add a new API - topo_node_occupied() - which wraps the code to invoke TOPO_METH_OCCUPIED on a node.

We will also update various enumerator modules to register this new method onto nodes, where appropriate.

Actions

Also available in: Atom PDF