Replacing host reboot with host off and on

Host reboot does not work properly in host booting
state. So replacing it with host power off and on.

Resolves openbmc/openbmc-test-automation#1476

Change-Id: I9984ab27c8be66c40ca176ea60b20b3eb7d256b5
Signed-off-by: Rahul Maheshwari <rahulmaheshwari@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index 72dbc96..8f6db0b 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -5,6 +5,7 @@
 Resource                ../lib/resource.txt
 Resource                ../lib/rest_client.robot
 Resource                ../lib/connection_client.robot
+Resource                ../lib/boot_utils.robot
 Library                 String
 Library                 DateTime
 Library                 Process
@@ -1165,11 +1166,7 @@
     # ${os_username}  OS Host Login user name.
     # ${os_password}  OS Host Login passwrd.
 
-    ${os_state}=  Run Keyword And Return Status  Ping Host  ${os_host}
-    Run Keyword If  '${os_state}' == 'False'
-    ...  Run Keywords  Initiate Host Reboot  AND
-    ...  Is Host Running  AND
-    ...  Wait for OS  ${os_host}  ${os_username}  ${os_password}
+    REST Power On  stack_mode=skip  quiet=1
 
     SSHLibrary.Open Connection  ${os_host}
     ${resp}=  Login  ${os_username}  ${os_password}