summaryrefslogtreecommitdiffstats
path: root/command/payload_cmds.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Handle invalid length for Disable Payload commandSumanth Bhat2019-03-251-0/+6
| | | | | | | | | | | | | | Invalid length error check added for disable payload command Tested: 1. Verified negative case by providing improper length ipmitool -I lanplus -H x.x.x.x -U root -P 0penBmc raw 6 0x49 0x11 0x01 0x00 0x00 0x00 0x00 0x00 0x00 2. Verified normal case works fine. Change-Id: I1d0dfcadb2dbaf4f538597fbff236540127a3667 Signed-off-by: Sumanth Bhat <sumanth.bhat@intel.com> Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* Convert host-ipmid -> libipmidWilliam A. Kennington III2019-02-191-1/+1
| | | | | | | | | phosphor-host-ipmid now exposes a library along with headers for interfacing with the ipmi daemon. Compile and link against the new library. Change-Id: Ifb914004df2b73cff913bf653db14ff2e710434f Signed-off-by: William A. Kennington III <wak@google.com>
* Fix: Get Payload info for non active payloadRichard Marian Thomaiyar2019-01-281-8/+10
| | | | | | | | | | | | | | | Return 0 as session id, for non active payload instance instead of failure error code. This is as per IPMI specification Get Payload Instance Info command. Unit-test: 1. Verified the reponse of ipmitool -I lanplus -H 127.0.0.1 -U root -P 0penBmc raw 6 0x4B 1 1 with session id 0, when no SOL is session is active, and with proper session id, when SOL session is active Change-Id: I41e5378606f8f4d4c15f1bb07fd635098b837f4a Signed-off-by: Richard Marian Thomaiyar <richard.marian.thomaiyar@linux.intel.com>
* netipmid: use std::shared_ptr instead of weak_ptr/lockVernon Mauery2018-11-061-3/+2
| | | | | | | | | | | | | All of the instances of getSession and startSession were assigning the result to a local shared_ptr via lock on the weak_ptr. It doesn't make sense to demote the shared_ptr (from the sessionsMap) to a weak_ptr via the return, only to promote to a shared_ptr again via lock. Tested-by: running ipmitool -H a.b.c.d -P 0penBmc -I lanplus mc info Sessions start and stop, same as before. Change-Id: Ic10779285891d73ee51115f16ed0000b38d1c52a Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* netipmid: apply clang-format rulesVernon Mauery2018-11-021-41/+45
| | | | | | | | Lots of whitespace change. Let clang-format do its job and keep the code looking nice. Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Implement get payload instance info commandTom Joseph2018-04-111-0/+34
| | | | | | | Resolves openbmc/openbmc#2892 Change-Id: Id5f95df64bcdc97646f11d6d3630eead062c4193 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* sol: Handle deactivate payload correctly when session is closedTom Joseph2017-08-141-2/+17
| | | | | | | | Resolves openbmc/openbmc#1781 Resolves openbmc/openbmc#2053 Change-Id: Iabb61fc510d33a4132e7ad07184eb8847301b686 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Allow SOL activation only if SOL is enabled.Tom Joseph2017-05-081-0/+6
| | | | | Change-Id: Id5de2417b2cddd7711179c2516d5557983ace78e Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Change the signature of the command handler functions.Tom Joseph2017-04-251-6/+8
| | | | | | | Resolves openbmc/openbmc#857 Change-Id: I0b7ca6665dd89629838a238d77aff67fec1818c7 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add command handler for Payload activation status command.Tom Joseph2017-04-251-1/+25
| | | | | Change-Id: I12d9f5ff759042295654daef638fd30153f44ce0 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add handler for Deactivate payload command.Tom Joseph2017-04-251-0/+61
| | | | | Change-Id: I6d01757b7b526ad15b1c059506603b5921e30473 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add command handler for Activate payload command.Tom Joseph2017-04-251-0/+86
Change-Id: I95d2d82409dabde7139871c7d62d5b5106c1c4d8 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud