summaryrefslogtreecommitdiffstats
path: root/chassishandler.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix power restore policy input parameter checkJason M. Bills2019-06-241-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the power restore policy command to return invalid parameter for any unsupported policy option (greater than 0x03). Tested: ipmitool raw 0 6 0 07 ipmitool chassis status Power Restore Policy : always-off ipmitool raw 0 6 1 07 ipmitool chassis status Power Restore Policy : previous ipmitool raw 0 6 2 07 ipmitool chassis status Power Restore Policy : always-on ipmitool raw 0 6 3 07 ipmitool chassis status Power Restore Policy : always-on ipmitool raw 0 6 4 Unable to send RAW command (channel=0x0 netfn=0x0 lun=0x0 cmd=0x6 rsp=0xcc): Invalid data field in request Change-Id: Ie78e00753f6dfd8b7bccce38c239a8103b6cc3fd Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
* Chassishandler: Add chassis identify state support for chassis status commandYong Li2019-05-241-0/+8
| | | | | | | | | | | | | | | | | | | | Return the present chassis identify state in get chassis status command: Off Temporary on Indefinite on Reserved Tested: Set chassis identify in different states: ipmitool raw 0 4 10 0 ipmitool raw 0 4 0 1 ipmitool raw 0 4 0 0 Then query the chassis status and check on the third byte ipmitool raw 0 1 Signed-off-by: Yong Li <yong.b.li@linux.intel.com> Change-Id: I66690b74823a6b819c4fda25d95bc8690b98181a
* Implement set chassis capabilities IPMI commandsYong Li2018-12-111-0/+1
| | | | | | | | | | | | Create a new dbus interface for the chassis capabilities, and store the chassis capabilities using phosphor settings manager Tested By: ipmitool -H $BMCIP -U root -P 0penBmc -I lanplus raw 0 5 0 2 4 6 8 0xa ipmitool -H $BMCIP -U root -P 0penBmc -I lanplus raw 0 0 Change-Id: Id01555358adfec3814fd03b3e6d422916c861039 Signed-off-by: Yong Li <yong.b.li@linux.intel.com>
* rename headers to match stylePatrick Venture2018-09-251-0/+59
Moving headers from ".h" to ".hpp" Reworked the header inclusion a bit so that host-ipmid is treated as a library, and local headers aren't. renamed apphandler.h => apphandler.hpp renamed chassishandler.h => chassishandler.hpp renamed globalhandler.h => globalhandler.hpp renamed sensorhandler.h => sensorhandler.hpp renamed storageaddsel.h => storageaddsel.hpp renamed storagehandler.h => storagehandler.hpp renamed systemintfcmds.h => systemintfcmds.hpp Change-Id: I9d4ce3dd57e2e996800f9020a10cc10cdf2c3914 Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud