PLDM Date time changes

Changes:
    - Add keyword to switch time to manunal mode. Currently
      with NTP enabled PLDM set date fails

Tested:
    - Tested suite pldm/test_pldm_bios.robot

Change-Id: Ide1bdc967b219df0397ce1730fe12e2b2a7be5d4
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/pldm/test_pldm_bios.robot b/pldm/test_pldm_bios.robot
index 9b939cb..1135dd3 100755
--- a/pldm/test_pldm_bios.robot
+++ b/pldm/test_pldm_bios.robot
@@ -117,6 +117,10 @@
     ${pldm_output}=  Pldmtool  bios GetBIOSTable --type AttributeTable
     Set Global Variable  ${attr_table_data}  ${pldm_output}
 
+    Set Time To Manual Mode
+
+    Sleep  10s
+
 
 PLDM BIOS Suite Cleanup
     [Documentation]  Perform PLDM BIOS suite cleanup.
@@ -126,3 +130,10 @@
     ${cmd_set_date_time}=  Evaluate  $CMD_SETDATETIME % '${current_date_time}'
     ${pldm_output}=  Pldmtool  ${cmd_set_date_time}
     Valid Value  pldm_output['Response']  ['SUCCESS']
+
+
+Set Time To Manual Mode
+    [Documentation]  Set date time to manual mode via Redfish.
+
+    Redfish.Patch  ${REDFISH_NW_PROTOCOL_URI}  body={'NTP':{'ProtocolEnabled': ${False}}}
+    ...  valid_status_codes=[${HTTP_OK}, ${HTTP_NO_CONTENT}]