Remove legacy BMC reboot from openbmc-sfw
This has been deprecated and new xyz interface to reboot
BMC should be used
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/geissonator/openbmc-events/openbmc-sfw b/geissonator/openbmc-events/openbmc-sfw
index 67a8ec3..2d67ab2 100755
--- a/geissonator/openbmc-events/openbmc-sfw
+++ b/geissonator/openbmc-events/openbmc-sfw
@@ -97,10 +97,10 @@
self.reboot()
def reboot(self):
- r = self.session.post(
- self.url + '/org/openbmc/control/bmc0/action/warmReset',
+ r = self.session.put(
+ self.url + '/xyz/openbmc_project/state/bmc0/attr/RequestedBMCTransition',
headers={'Content-Type': 'application/json'},
- data='{"data":[]}',
+ data='{"data": "xyz.openbmc_project.State.BMC.Transition.Reboot"}',
verify=False)
j = r.json()