Added keyword to verify the system state

Changes:
   - Redfish BMC Match States

Tested:
      Ran successfully
      Verify_Lock_Is_Not_Persistent_On_BMC_Reboot

Change-Id: Ib0a445eb62e123478f6fb022b653c6bcec3fb899
Signed-off-by: Sushil Singh <susilsi7@in.ibm.com>
diff --git a/lib/external_intf/management_console_utils.robot b/lib/external_intf/management_console_utils.robot
index 9262a5d..9af6c70 100644
--- a/lib/external_intf/management_console_utils.robot
+++ b/lib/external_intf/management_console_utils.robot
@@ -124,3 +124,15 @@
     Rprint Vars  resource_lock_json
 
     [Return]  ${resource_lock_json}
+
+
+Redfish BMC Match States
+    [Documentation]  Verify the BMC match state.
+    [Arguments]  ${match_state}
+
+    # Description of argument(s):
+    # match_state    Match the state of BMC.
+
+    ${bmc_state}=  Redfish Get BMC State
+    Should Be Equal As Strings  ${match_state}  ${bmc_state}
+