Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation This suite is for testing System time in Open BMC. |
| 3 | |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 4 | Resource ../lib/rest_client.robot |
George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 5 | Resource ../lib/ipmi_client.robot |
George Keishing | d55a4be | 2016-08-26 03:28:17 -0500 | [diff] [blame] | 6 | Resource ../lib/openbmc_ffdc.robot |
Rahul Maheshwari | 2c72504 | 2017-01-29 22:55:28 -0600 | [diff] [blame] | 7 | Resource ../lib/state_manager.robot |
George Keishing | ab1bd92 | 2016-12-05 05:29:59 -0600 | [diff] [blame] | 8 | Resource ../lib/resource.txt |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 9 | |
George Keishing | 4d6c1da | 2016-07-15 05:51:22 -0500 | [diff] [blame] | 10 | Library OperatingSystem |
| 11 | Library DateTime |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 12 | |
Rahul Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 13 | Test Setup Open Connection And Log In |
| 14 | Test Teardown Post Test Case Execution |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 15 | |
Sweta Potthuri | b163120 | 2017-08-28 04:11:34 -0500 | [diff] [blame] | 16 | Force Tags Clock_Time |
| 17 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 18 | *** Variables *** |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 19 | ${SYSTEM_TIME_INVALID} 01/01/1969 00:00:00 |
| 20 | ${SYSTEM_TIME_VALID} 02/29/2016 09:10:00 |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 21 | ${ALLOWED_TIME_DIFF} 3 |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 22 | # Equivalent epoch time for 02/17/2017 04:11:40 |
| 23 | ${SYSTEM_TIME_VALID_EPOCH} ${1487304700000000} |
George Keishing | ab1bd92 | 2016-12-05 05:29:59 -0600 | [diff] [blame] | 24 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 25 | *** Test Cases *** |
| 26 | |
| 27 | Get System Time |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 28 | [Documentation] Get system time using IPMI and verify that it matches |
| 29 | ... with BMC date time. |
George Keishing | 845fb82 | 2016-11-01 13:23:19 -0500 | [diff] [blame] | 30 | [Tags] Get_System_Time |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 31 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 32 | ${resp}= Run IPMI Standard Command sel time get |
| 33 | ${ipmidate}= Convert Date ${resp} date_format=%m/%d/%Y %H:%M:%S |
| 34 | ... exclude_millis=yes |
| 35 | ${bmcdate}= Get BMC Time Using IPMI |
| 36 | ${diff}= Subtract Date From Date ${bmcdate} ${ipmidate} |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 37 | ${diff}= Convert To Number ${diff} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 38 | Should Be True ${diff} < ${ALLOWED_TIME_DIFF} |
| 39 | ... Open BMC time does not match with IPMI sel time |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 40 | |
Rahul Maheshwari | 52d9294 | 2019-01-21 10:54:52 -0600 | [diff] [blame] | 41 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 42 | Set Valid System Time |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 43 | [Documentation] Set system time using IPMI and verify that it is |
| 44 | ... correctly set in BMC. |
George Keishing | 845fb82 | 2016-11-01 13:23:19 -0500 | [diff] [blame] | 45 | [Tags] Set_Valid_System_Time |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 46 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 47 | Set Time Owner ${HOST_OWNER} |
| 48 | Set Time Mode ${MANUAL_MODE} |
Rahul Maheshwari | 7588f87 | 2017-04-13 05:51:24 -0500 | [diff] [blame] | 49 | |
Rahul Maheshwari | 11a1cc3 | 2019-01-24 02:53:05 -0600 | [diff] [blame] | 50 | # Added delay for NTP mode to get disabled fully |
| 51 | Sleep 30s |
| 52 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 53 | ${resp}= Run IPMI Standard Command sel time set "${SYSTEM_TIME_VALID}" |
| 54 | ${setdate}= Convert Date ${SYSTEM_TIME_VALID} |
| 55 | ... date_format=%m/%d/%Y %H:%M:%S exclude_millis=yes |
| 56 | ${bmcdate}= Get BMC Time Using IPMI |
| 57 | ${diff}= Subtract Date From Date ${bmcdate} ${setdate} |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 58 | ${diff}= Convert To Number ${diff} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 59 | Should Be True ${diff} < ${ALLOWED_TIME_DIFF} |
| 60 | ... Open BMC time does not match with set time |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 61 | |
Rahul Maheshwari | 52d9294 | 2019-01-21 10:54:52 -0600 | [diff] [blame] | 62 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 63 | Set Invalid System Time |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 64 | [Documentation] Set system time with invalid time using IPMI and verify |
| 65 | ... that it should throw error. |
George Keishing | 845fb82 | 2016-11-01 13:23:19 -0500 | [diff] [blame] | 66 | [Tags] Set_Invalid_System_Time |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 67 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 68 | Set Time Owner ${HOST_OWNER} |
| 69 | Set Time Mode ${MANUAL_MODE} |
Rahul Maheshwari | 7588f87 | 2017-04-13 05:51:24 -0500 | [diff] [blame] | 70 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 71 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 72 | ... sel time set "${SYSTEM_TIME_INVALID}" |
| 73 | Should Start With ${msg} Specified time could not be parsed |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 74 | |
| 75 | Set System Time with no time |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 76 | [Documentation] Set system time with no time using IPMI and verify |
| 77 | ... that it should throw error. |
George Keishing | 845fb82 | 2016-11-01 13:23:19 -0500 | [diff] [blame] | 78 | [Tags] Set_System_Time_with_no_time |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 79 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 80 | Set Time Owner ${HOST_OWNER} |
| 81 | Set Time Mode ${MANUAL_MODE} |
Rahul Maheshwari | 7588f87 | 2017-04-13 05:51:24 -0500 | [diff] [blame] | 82 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 83 | ${msg}= Run Keyword And Expect Error * Run IPMI Standard Command |
| 84 | ... sel time set "" |
| 85 | Should Start With ${msg} Specified time could not be parsed |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 86 | |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 87 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 88 | Set BMC Time With BMC And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 89 | [Documentation] Set BMC time when time owner is BMC and time mode is |
| 90 | ... manual. |
| 91 | [Tags] Set_BMC_Time_With_BMC_And_Manual |
| 92 | [Template] Set Time Using REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 93 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 94 | #Operation Owner Mode Status BMC Time Host Time |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 95 | Set BMC Time ${BMC_OWNER} ${MANUAL_MODE} ok Set Change |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 96 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 97 | |
| 98 | Set BMC Time With Both And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 99 | [Documentation] Set BMC time when time owner is Both and time mode is |
| 100 | ... manual. |
| 101 | [Tags] Set_BMC_Time_With_Both_And_Manual |
| 102 | [Template] Set Time Using REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 103 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 104 | #Operation Owner Mode Status BMC Time Host Time |
| 105 | Set BMC Time ${BOTH_OWNER} ${MANUAL_MODE} ok Set Change |
| 106 | |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 107 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 108 | Set BMC Time With Split And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 109 | [Documentation] Set BMC time when time owner is Split and time mode is |
| 110 | ... manual. |
| 111 | [Tags] Set_BMC_Time_With_Split_And_Manual |
| 112 | [Template] Set Time Using REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 113 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 114 | #Operation Owner Mode Status BMC Time Host Time |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 115 | Set BMC Time ${SPLIT_OWNER} ${MANUAL_MODE} ok Set No Change |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 116 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 117 | |
| 118 | Set BMC Time With BMC And NTP |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 119 | [Documentation] Set BMC time when time owner is BMC and time mode is |
| 120 | ... NTP. |
| 121 | [Tags] Set_BMC_Time_With_BMC_And_NTP |
| 122 | [Template] Set Time Using REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 123 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 124 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 125 | Set BMC Time ${BMC_OWNER} ${NTP_MODE} error Not Set No Change |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 126 | |
| 127 | |
| 128 | Set BMC Time With Host And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 129 | [Documentation] Set BMC time when time owner is Host and time mode is |
| 130 | ... Manual. |
| 131 | [Tags] Set_BMC_Time_With_Host_And_Manual |
| 132 | [Template] Set Time Using REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 133 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 134 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 135 | Set BMC Time ${HOST_OWNER} ${MANUAL_MODE} error Not Set No Change |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 136 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 137 | |
| 138 | Set BMC Time With Both And NTP |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 139 | [Documentation] Set BMC time when time owner is Both and time mode is |
| 140 | ... NTP. |
| 141 | [Tags] Set_BMC_Time_With_Both_And_NTP |
| 142 | [Template] Set Time Using REST |
| 143 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 144 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 145 | Set BMC Time ${BOTH_OWNER} ${NTP_MODE} error Not Set No Change |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 146 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 147 | |
| 148 | Set BMC Time With Split And NTP |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 149 | [Documentation] Set BMC time when time owner is Split and time mode is |
| 150 | ... NTP. |
| 151 | [Tags] Set_BMC_Time_With_Split_And_NTP |
| 152 | [Template] Set Time Using REST |
| 153 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 154 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 155 | Set BMC Time ${SPLIT_OWNER} ${NTP_MODE} error Not Set No Change |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 156 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 157 | |
| 158 | Set BMC Time With Host And NTP |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 159 | [Documentation] Set BMC time when time owner is Host and time mode is |
| 160 | ... NTP. |
| 161 | [Tags] Set_BMC_Time_With_Host_And_NTP |
| 162 | [Template] Set Time Using REST |
| 163 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 164 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 165 | Set BMC Time ${HOST_OWNER} ${NTP_MODE} error Not Set No Change |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 166 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 167 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 168 | Set Host Time With Host And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 169 | [Documentation] Set host time when time owner is host and time mode is |
| 170 | ... manual. |
| 171 | [Tags] Set_Host_Time_With_Host_And_Manual |
| 172 | [Template] Set Time Using REST |
| 173 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 174 | #Operation Owner Mode Status BMC Time Host Time |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 175 | Set Host Time ${HOST_OWNER} ${MANUAL_MODE} ok Change Set |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 176 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 177 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 178 | Set Host Time With Both And NTP |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 179 | [Documentation] Set host time when time owner is both and time mode is |
| 180 | ... NTP. |
| 181 | [Tags] Set_Host_Time_With_Both_And_NTP |
| 182 | [Template] Set Time Using REST |
| 183 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 184 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 185 | Set Host Time ${BOTH_OWNER} ${NTP_MODE} error No Change Not Set |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 186 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 187 | |
| 188 | Set Host Time With Split And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 189 | [Documentation] Set host time when time owner is split and time mode is |
| 190 | ... manual. |
| 191 | [Tags] Set_Host_Time_With_Split_And_Manual |
| 192 | [Template] Set Time Using REST |
| 193 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 194 | #Operation Owner Mode Status BMC Time Host Time |
| 195 | Set Host Time ${SPLIT_OWNER} ${MANUAL_MODE} ok No Change Set |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 196 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 197 | |
| 198 | Set Host Time With Split And NTP |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 199 | [Documentation] Set host time when time owner is split and time mode is |
| 200 | ... NTP. |
| 201 | [Tags] Set_Host_Time_With_Split_And_NTP |
| 202 | [Template] Set Time Using REST |
| 203 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 204 | #Operation Owner Mode Status BMC Time HOST Time |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 205 | Set Host Time ${SPLIT_OWNER} ${NTP_MODE} ok No Change Set |
| 206 | |
| 207 | |
| 208 | Set Host Time With BMC And Manual |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 209 | [Documentation] Set host time when time owner is BMC and time mode is |
| 210 | ... Manual. |
| 211 | [Tags] Set_Host_Time_With_BMC_And_Manual |
| 212 | [Template] Set Time Using REST |
| 213 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 214 | #Operation Owner Mode Status BMC Time HOST Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 215 | Set Host Time ${BMC_OWNER} ${MANUAL_MODE} error No Change Not Set |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 216 | |
| 217 | |
| 218 | Set Host Time With BMC Owner NTP |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 219 | [Documentation] Set host time when time owner is BMC and time mode is |
| 220 | ... NTP. |
| 221 | [Tags] Set_Host_Time_With_BMC_And_NTP |
| 222 | [Template] Set Time Using REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 223 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 224 | #Operation Owner Mode Status BMC Time HOST Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 225 | Set Host Time ${BMC_OWNER} ${NTP_MODE} error No Change Not Set |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 226 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 227 | |
| 228 | Set Host Time With Host And NTP |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 229 | [Documentation] Set host time when time owner is Host and time mode is |
| 230 | ... NTP. |
| 231 | [Tags] Set_Host_Time_With_Host_And_NTP |
| 232 | [Template] Set Time Using REST |
| 233 | |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 234 | #Operation Owner Mode Status BMC Time Host Time |
Rahul Maheshwari | 8cc4717 | 2018-09-06 01:46:50 -0500 | [diff] [blame] | 235 | Set Host Time ${HOST_OWNER} ${NTP_MODE} error Not Change No Set |
George Keishing | 5abfe60 | 2018-07-05 11:54:37 -0500 | [diff] [blame] | 236 | |
| 237 | |
Rahul Maheshwari | 52d9294 | 2019-01-21 10:54:52 -0600 | [diff] [blame] | 238 | Set Host Time With Both And Manual |
| 239 | [Documentation] Set host time when time owner is both and time mode is |
| 240 | ... manual. |
| 241 | [Tags] Set_Host_Time_With_Both_And_Manual |
| 242 | [Template] Set Time Using REST |
| 243 | |
| 244 | #Operation Owner Mode Status BMC Time Host Time |
| 245 | Set Host Time ${BOTH_OWNER} ${MANUAL_MODE} ok Change Set |
| 246 | |
| 247 | |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 248 | Set Invalid Time Mode |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 249 | [Documentation] Set time mode with invalid value using REST and verify |
| 250 | ... that it should throw error. |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 251 | [Tags] Set_Invalid_Time_Mode |
| 252 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 253 | ${timemode}= |
| 254 | ... Set Variable xyz.openbmc_project.Time.Synchronization.Method.abc |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 255 | ${valueDict}= Create Dictionary data=${timemode} |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 256 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 257 | ${resp}= OpenBMC Put Request |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 258 | ... ${TIME_MANAGER_URI}sync_method/attr/TimeSyncMethod data=${valueDict} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 259 | ${jsondata}= to JSON ${resp.content} |
| 260 | Should Be Equal ${jsondata['status']} error |
| 261 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 262 | ${mode}= Read Attribute ${TIME_MANAGER_URI}sync_method TimeSyncMethod |
| 263 | Should Not Be Equal ${mode} |
| 264 | ... xyz.openbmc_project.Time.Synchronization.Method.abc |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 265 | |
| 266 | Set Invalid Time Owner |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 267 | [Documentation] Set time owner with invalid value using REST and verify |
| 268 | ... that it should throw error. |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 269 | [Tags] Set_Invalid_Time_Owner |
| 270 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 271 | ${timeowner}= Set Variable xyz.openbmc_project.Time.Owner.Owners.xyz |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 272 | ${valueDict}= Create Dictionary data=${timeowner} |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 273 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 274 | ${resp}= OpenBMC Put Request |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 275 | ... ${TIME_MANAGER_URI}owner/attr/TimeOwner data=${valueDict} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 276 | ${jsondata}= to JSON ${resp.content} |
| 277 | Should Be Equal ${jsondata['status']} error |
| 278 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 279 | ${owner}= Read Attribute ${TIME_MANAGER_URI}owner TimeOwner |
| 280 | Should Not Be Equal ${owner} xyz.openbmc_project.Time.Owner.Owners.xyz |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 281 | |
| 282 | |
Chris Austen | b29d2e8 | 2016-06-07 12:25:35 -0500 | [diff] [blame] | 283 | *** Keywords *** |
| 284 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 285 | Get BMC Time Using IPMI |
| 286 | [Documentation] Returns BMC time of the system via IPMI |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 287 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 288 | ${stdout} ${stderr} ${output}= |
| 289 | ... Execute Command date "+%m/%d/%Y %H:%M:%S" |
| 290 | ... return_stdout=True return_stderr= True return_rc=True |
| 291 | Should Be Equal ${output} ${0} msg=${stderr} |
| 292 | |
| 293 | ${resp}= Convert Date ${stdout} date_format=%m/%d/%Y %H:%M:%S |
| 294 | ... exclude_millis=yes |
| 295 | Should Not Be Empty ${resp} |
| 296 | [Return] ${resp} |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 297 | |
Rahul Maheshwari | 52d9294 | 2019-01-21 10:54:52 -0600 | [diff] [blame] | 298 | |
| 299 | Verify Set Time Via REST |
| 300 | [Documentation] Verify set time via REST. |
| 301 | [Arguments] ${target} ${expected_status} |
| 302 | # Description of argument(s): |
| 303 | # target The target of the set time operation: "bmc" or "host". |
| 304 | # expected_status Expected status of set time operation |
| 305 | |
| 306 | ${time_owner_url}= Set Variable ${TIME_MANAGER_URI}${target} |
| 307 | |
| 308 | ${args}= Create Dictionary data=${SYSTEM_TIME_VALID_EPOCH} |
| 309 | ${resp}= OpenBMC Put Request |
| 310 | ... ${time_owner_url}/attr/Elapsed data=${args} |
| 311 | ${jsondata}= to Json ${resp.content} |
| 312 | Run Keyword If "${expected_status}" == "ok" |
| 313 | ... Should Not Be Equal As Strings ${jsondata['message']} 403 Forbidden |
| 314 | Should Be Equal As Strings ${jsondata['status']} ${expected_status} |
| 315 | |
| 316 | |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 317 | Set Time Owner |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 318 | [Arguments] ${args} |
| 319 | [Documentation] Set time owner of the system via REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 320 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 321 | ${timeowner}= Set Variable ${args} |
| 322 | ${valueDict}= Create Dictionary data=${timeowner} |
| 323 | |
| 324 | ${resp}= OpenBMC Put Request |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 325 | ... ${TIME_MANAGER_URI}owner/attr/TimeOwner data=${valueDict} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 326 | ${jsondata}= to JSON ${resp.content} |
| 327 | |
Rahul Maheshwari | 2c72504 | 2017-01-29 22:55:28 -0600 | [diff] [blame] | 328 | ${host_state}= Get Host State |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 329 | |
Rahul Maheshwari | 2c72504 | 2017-01-29 22:55:28 -0600 | [diff] [blame] | 330 | Run Keyword If '${host_state}' == 'Off' |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 331 | ... Log System is in off state so owner change will get applied. |
| 332 | ... ELSE Run keyword |
Rahul Maheshwari | 2c72504 | 2017-01-29 22:55:28 -0600 | [diff] [blame] | 333 | ... Initiate Host PowerOff |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 334 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 335 | ${owner}= Read Attribute ${TIME_MANAGER_URI}owner TimeOwner |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 336 | Should Be Equal ${owner} ${args} |
| 337 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 338 | [Return] ${jsondata['status']} |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 339 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 340 | |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 341 | Set Time Mode |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 342 | [Arguments] ${args} |
| 343 | [Documentation] Set time mode of the system via REST |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 344 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 345 | ${timemode}= Set Variable ${args} |
| 346 | ${valueDict}= Create Dictionary data=${timemode} |
| 347 | |
| 348 | ${resp}= OpenBMC Put Request |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 349 | ... ${TIME_MANAGER_URI}sync_method/attr/TimeSyncMethod data=${valueDict} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 350 | ${jsondata}= to JSON ${resp.content} |
| 351 | Sleep 5s |
| 352 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 353 | ${mode}= Read Attribute ${TIME_MANAGER_URI}sync_method TimeSyncMethod |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 354 | Should Be Equal ${mode} ${args} |
| 355 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 356 | |
| 357 | Get BMC Time Using REST |
| 358 | [Documentation] Returns BMC time of the system via REST |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 359 | ... Time Format : epoch time in microseconds |
| 360 | ... e.g 1507809604687329 |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 361 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 362 | ${resp}= Read Attribute ${TIME_MANAGER_URI}/bmc Elapsed |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 363 | [Return] ${resp} |
| 364 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 365 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 366 | Get HOST Time Using REST |
| 367 | [Documentation] Returns HOST time of the system via REST |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 368 | ... Time Format : epoch time in microseconds |
| 369 | ... e.g 1507809604687329 |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 370 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 371 | ${resp}= Read Attribute ${TIME_MANAGER_URI}/host Elapsed |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 372 | [Return] ${resp} |
| 373 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 374 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 375 | Set Time Using REST |
| 376 | [Arguments] ${operation} ${owner} ${mode} ${status} ${bmc_time} |
| 377 | ... ${host_time} |
| 378 | [Documentation] Set BMC or Host time on system via REST. |
| 379 | ... Description of arguments: |
| 380 | ... operation : Set BMC/Host time |
| 381 | ... owner: Time owner |
| 382 | ... mode: Time mode |
| 383 | ... status: Expected status of set BMC time URI |
| 384 | ... bmc_time: Status of BMC time after operation |
| 385 | ... host_time: Status of HOST time after operation |
| 386 | ... Set - Given time is set |
| 387 | ... Not Set - Given time is not set |
| 388 | ... Change - time is change |
| 389 | ... No Change - time is not change |
| 390 | |
| 391 | Set Time Owner ${owner} |
| 392 | Set Time Mode ${mode} |
| 393 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 394 | ${setdate}= Set Variable ${SYSTEM_TIME_VALID_EPOCH} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 395 | |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 396 | ${start_time}= Get Current Date |
| 397 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 398 | ${old_bmc_time}= Get BMC Time Using REST |
| 399 | ${old_host_time}= Get HOST Time Using REST |
| 400 | |
Rahul Maheshwari | 52d9294 | 2019-01-21 10:54:52 -0600 | [diff] [blame] | 401 | Run Keyword If '${operation}' == 'Set BMC Time' |
| 402 | ... Wait Until Keyword Succeeds 1 min 20 sec Verify Set Time Via REST |
| 403 | ... bmc ${status} |
| 404 | ... ELSE IF '${operation}' == 'Set Host Time' |
| 405 | ... Wait Until Keyword Succeeds 1 min 20 sec Verify Set Time Via REST |
| 406 | ... host ${status} |
| 407 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 408 | |
| 409 | ${new_bmc_time}= Get BMC Time Using REST |
| 410 | ${new_host_time}= Get HOST Time Using REST |
| 411 | |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 412 | ${end_time}= Get Current Date |
| 413 | ${time_duration}= Subtract Date From Date ${start_time} ${end_time} |
| 414 | ${time_duration} Evaluate abs(${time_duration}) |
| 415 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 416 | # Convert epoch to date format: YYYY-MM-DD hh:mm:ss.mil |
| 417 | ${setdate}= Convert epoch to date ${setdate} |
| 418 | ${new_bmc_time}= Convert epoch to date ${new_bmc_time} |
| 419 | ${old_bmc_time}= Convert epoch to date ${old_bmc_time} |
| 420 | ${new_host_time}= Convert epoch to date ${new_host_time} |
| 421 | ${old_host_time}= Convert epoch to date ${old_host_time} |
| 422 | |
| 423 | |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 424 | ${bmc_diff_set_new}= |
| 425 | ... Subtract Date From Date ${setdate} ${new_bmc_time} |
| 426 | ${bmc_diff_set_new}= Evaluate abs(${bmc_diff_set_new}) |
| 427 | ${bmc_diff_old_new}= |
| 428 | ... Subtract Date From Date ${old_bmc_time} ${new_bmc_time} |
| 429 | ${bmc_diff_old_new}= Evaluate abs(${bmc_diff_old_new}) |
| 430 | |
| 431 | ${host_diff_set_new}= |
| 432 | ... Subtract Date From Date ${setdate} ${new_host_time} |
| 433 | ${host_diff_set_new}= Evaluate abs(${host_diff_set_new}) |
| 434 | ${host_diff_old_new}= |
| 435 | ... Subtract Date From Date ${old_host_time} ${new_host_time} |
| 436 | ${host_diff_old_new}= Evaluate abs(${host_diff_old_new}) |
| 437 | |
| 438 | Run Keyword If '${bmc_time}' == 'Not Set' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 439 | ... Should Be True ${bmc_diff_set_new} >= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 440 | ... ELSE IF '${bmc_time}' == 'Set' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 441 | ... Should Be True ${bmc_diff_set_new} <= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 442 | ... ELSE IF '${bmc_time}' == 'No Change' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 443 | ... Should Be True ${bmc_diff_old_new} <= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 444 | ... ELSE IF '${bmc_time}' == 'Change' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 445 | ... Should Be True ${bmc_diff_old_new} >= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 446 | |
| 447 | Run Keyword If '${host_time}' == 'No Change' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 448 | ... Should Be True ${host_diff_old_new} <= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 449 | ... ELSE IF '${host_time}' == 'Change' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 450 | ... Should Be True ${host_diff_old_new} >= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 451 | ... ELSE IF '${host_time}' == 'Not Set' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 452 | ... Should Be True ${host_diff_set_new} >= ${time_duration} |
Rahul Maheshwari | f878590 | 2016-12-12 01:23:13 -0600 | [diff] [blame] | 453 | ... ELSE IF '${host_time}' == 'Set' |
Sridevi Ramesh | ae44482 | 2017-02-13 05:51:52 -0600 | [diff] [blame] | 454 | ... Should Be True ${host_diff_set_new} <= ${time_duration} |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 455 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 456 | Convert epoch to date |
| 457 | [Documentation] Convert epoch time to date format. |
| 458 | [Arguments] ${epoch_time} |
| 459 | # Description of argument(s): |
Rahul Maheshwari | 7e86332 | 2018-02-02 06:03:06 -0600 | [diff] [blame] | 460 | # epoch_time epoch time in milliseconds. |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 461 | # (e.g. 1487304700000000) |
| 462 | |
Rahul Maheshwari | 7e86332 | 2018-02-02 06:03:06 -0600 | [diff] [blame] | 463 | # Convert epoch_time into floating point number. |
| 464 | ${epoch_time}= Convert To Number ${epoch_time} |
| 465 | |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 466 | # Convert epoch time from microseconds to seconds |
| 467 | ${epoch_time_sec}= Evaluate ${epoch_time}/1000000 |
| 468 | |
| 469 | # Convert epoch time to date format: YYYY-MM-DD hh:mm:ss.mil |
| 470 | # e.g. 2017-02-16 22:14:11.000 |
| 471 | ${date}= Convert Date ${epoch_time_sec} |
| 472 | |
| 473 | [Return] ${date} |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 474 | |
Rahul Maheshwari | 52d9294 | 2019-01-21 10:54:52 -0600 | [diff] [blame] | 475 | |
Rahul Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 476 | Post Test Case Execution |
| 477 | [Documentation] Do the post test teardown. |
| 478 | ... 1. Capture FFDC on test failure. |
| 479 | ... 2. Sets defaults for time mode and owner. |
| 480 | ... 3. Close all open SSH connections. |
Rahul Maheshwari | 93f6809 | 2016-10-24 02:42:12 -0500 | [diff] [blame] | 481 | |
Rahul Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 482 | FFDC On Test Case Fail |
Rahul Maheshwari | f486ae8 | 2017-10-24 06:10:14 -0500 | [diff] [blame] | 483 | Set Time Owner ${BMC_OWNER} |
| 484 | Set Time Mode ${NTP_MODE} |
Rahul Maheshwari | 06174f2 | 2017-03-06 03:17:09 -0600 | [diff] [blame] | 485 | Close All Connections |