Adding keywords to do host power off & on using external IPMI.

Resolves openbmc/openbmc-test-automation#521

Change-Id: I7ddae02a0ef81a7dccea2d215e076049f2a707e1
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/ipmi_client.robot b/lib/ipmi_client.robot
index bd96c39..5cca359 100755
--- a/lib/ipmi_client.robot
+++ b/lib/ipmi_client.robot
@@ -196,3 +196,17 @@
     SSHLibrary.Open Connection     ${OPENBMC_HOST}
     Login   ${OPENBMC_USERNAME}    ${OPENBMC_PASSWORD}
     Execute Command     chmod +x /tmp/ipmitool
+
+Initiate Host Boot Via External IPMI
+    [Documentation]  Initiate host power on using external IPMI.
+    ${output}=  Run External IPMI Standard Command  chassis power on
+    Should Not Contain  ${output}  Error
+    Wait Until Keyword Succeeds
+    ...  10 min  10 sec  Is Host Running
+
+Initiate Host PowerOff Via External IPMI
+    [Documentation]  Initiate host power off using external IPMI.
+    ${output}=  Run External IPMI Standard Command  chassis power off
+    Should Not Contain  ${output}  Error
+    Wait Until Keyword Succeeds
+    ...  3 min  10 sec  Is Host Off