diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-17 10:52:49 -0500 |
---|---|---|
committer | Andrew Geissler <andrewg@us.ibm.com> | 2017-05-19 08:15:42 -0500 |
commit | 2cbbb67c78d3762f7f5e29adee6cfec6e9da785f (patch) | |
tree | 4a5667a01c56fbce29937ea22bd7c3754e94d803 /pytools | |
parent | 8506f281aea41b81620c97c50dca61bccba8ae63 (diff) | |
download | blackbird-skeleton-2cbbb67c78d3762f7f5e29adee6cfec6e9da785f.tar.gz blackbird-skeleton-2cbbb67c78d3762f7f5e29adee6cfec6e9da785f.zip |
Add chassis power on/off to obmcutil
The recent refactoring of the systemd target names to power on
and off the chassis had a significant impact to openpower partners
because they'd encoded the systemctl command to power on just
the chassis into a lot of instructions and scripts. There's no
guarantee the team won't do this again in the future so a wrapper
around the command for this function makes sense to have. Now if
the target name changes, it's all abstracted within obmcutil.
Change-Id: Ib7b1907cf4618cf0985f76f2c5f5c5e04d4c162f
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'pytools')
-rw-r--r-- | pytools/obmcutil | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pytools/obmcutil b/pytools/obmcutil index 5ebe70b..7217344 100644 --- a/pytools/obmcutil +++ b/pytools/obmcutil @@ -62,6 +62,20 @@ dbus_objects = { 'object_name': '/org/openbmc/control/power0', 'interface_name': 'org.openbmc.control.Power' }, + 'chassison': { + 'bus_name': 'xyz.openbmc_project.State.Chassis', + 'object_name': '/xyz/openbmc_project/state/chassis0', + 'interface_name': 'xyz.openbmc_project.State.Chassis', + 'property': 'RequestedPowerTransition', + 'value': 'xyz.openbmc_project.State.Chassis.Transition.On' + }, + 'chassisoff': { + 'bus_name': 'xyz.openbmc_project.State.Chassis', + 'object_name': '/xyz/openbmc_project/state/chassis0', + 'interface_name': 'xyz.openbmc_project.State.Chassis', + 'property': 'RequestedPowerTransition', + 'value': 'xyz.openbmc_project.State.Chassis.Transition.Off' + }, 'poweron': { 'bus_name': 'xyz.openbmc_project.State.Host', 'object_name': '/xyz/openbmc_project/state/host0', |