Redfish NTP: Handled code to add ntp address and enable ntp if bmc time was 1970
Changes:
- In suite setup, add code to handle if bmc date was in 1970 ntp will be enabled
and ntp address will be added.
- If bmc date was not in 1970, it will continue for test execution.
- Added ${NTP_ADDRESSES} variable in lib/resource.robot to get ntp addresses as an list.
Tested:
- Ran All The Scripts Successfully
Change-Id: Ifcfdc9bf87c46150a628a537fee05de083200c6e
Signed-off-by: ganesanb <ganesanb@ami.com>
diff --git a/lib/resource.robot b/lib/resource.robot
index 4624d7e..7bbda8c 100755
--- a/lib/resource.robot
+++ b/lib/resource.robot
@@ -159,6 +159,14 @@
# FFDC_DEFAULT == 1; use Default FFDC methods
${FFDC_DEFAULT} ${1}
+# NTP Server Address
+# NTP Address needs to be given as an list.
+# For example,
+# 1 NTP Address - 14.139.60.103
+# 2 NTP Address - 14.139.60.103 14.139.60.106
+@{NTP_SERVER_ADDRESSES} ${EMPTY}
+
+
*** Keywords ***
Get Inventory Schema
[Documentation] Get inventory schema.