Remove legacy BMC reboot from upload_and_update.py

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/leiyu/obmc-utils/upload_and_update.py b/leiyu/obmc-utils/upload_and_update.py
index c99f325..eca1d87 100755
--- a/leiyu/obmc-utils/upload_and_update.py
+++ b/leiyu/obmc-utils/upload_and_update.py
@@ -113,10 +113,10 @@
 
 
 def reboot(bmc):
-    url = 'https://%s/org/openbmc/control/bmc0/action/warmReset' % bmc
-    cmds = ['curl', '-s', '-b', 'cjar', '-k', '-X', 'POST', '-H',
+    url = 'https://%s/xyz/openbmc_project/state/bmc0/attr/RequestedBMCTransition' % bmc
+    cmds = ['curl', '-s', '-b', 'cjar', '-k', '-X', 'PUT', '-H',
             'Content-Type: application/json', '-d',
-            '{"data": []}', url]
+            '{"data": "xyz.openbmc_project.State.BMC.Transition.Reboot"}', url]
     check_call(cmds, stdout=FNULL, stderr=FNULL)