Modified IPMI watchdog script for timer action validation

Added code to validate the watchdog timer action whether the
host/Chassis is performed the expected action.

Changed the power_state_change variable value to 3 sec.

Changed keyword from "Check If BMC Is Up" to "Is BMC Operational"
since old keyword using Rest to verfiy BMC is up or not so changed
it to redfish.

Tested: Ran ipmi/test_ipmi_watchdog.robot

Change-Id: I6ec66721fa7fba397789f1b9ed531dac97399955
Signed-off-by: Nagarjun B  <nagarjunb@ami.com>
diff --git a/lib/common_utils.robot b/lib/common_utils.robot
index afe6f80..adb1fe1 100755
--- a/lib/common_utils.robot
+++ b/lib/common_utils.robot
@@ -984,6 +984,18 @@
     Should be equal  ${RC}  ${1}
 
 
+Is Host Unpingable
+    [Documentation]  Check if Given IP is unpingable.
+    [Arguments]  ${ip}
+
+    # Description of argument(s):
+    # ip           HostOS IP address (e.g. "10.7.7.7").
+
+    ${RC}  ${output}=  Run and return RC and Output  ping -c 4 ${ip}
+    Log  RC: ${RC}\nOutput:\n${output}
+    Should be equal  ${RC}  ${1}
+
+
 Redfish BMC Match States
     [Documentation]  Verify the BMC match state.
     [Arguments]  ${match_state}