Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 1 | # Copyright 2017 - present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | # FIXME Can we use the same test against BBSim and Hardware? |
| 15 | |
| 16 | *** Settings *** |
| 17 | Documentation Test various end-to-end scenarios |
| 18 | Suite Setup Common Test Suite Setup |
| 19 | Test Setup Setup |
| 20 | Test Teardown Teardown |
Suchitra Vemuri | 32dea01 | 2020-07-08 16:40:06 -0700 | [diff] [blame] | 21 | Suite Teardown Teardown Suite |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 22 | Library Collections |
| 23 | Library String |
| 24 | Library OperatingSystem |
| 25 | Library XML |
| 26 | Library RequestsLibrary |
| 27 | Library ../../libraries/DependencyLibrary.py |
| 28 | Resource ../../libraries/onos.robot |
| 29 | Resource ../../libraries/voltctl.robot |
| 30 | Resource ../../libraries/voltha.robot |
| 31 | Resource ../../libraries/utils.robot |
| 32 | Resource ../../libraries/k8s.robot |
| 33 | Resource ../../variables/variables.robot |
| 34 | |
| 35 | *** Variables *** |
| 36 | ${POD_NAME} flex-ocp-cord |
| 37 | ${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 38 | ${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs |
| 39 | #${KUBERNETES_CONFIGS_DIR} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 40 | ${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml |
| 41 | ${HELM_CHARTS_DIR} ~/helm-charts |
| 42 | ${VOLTHA_POD_NUM} 8 |
| 43 | ${NAMESPACE} voltha |
| 44 | # For below variable value, using deployment name as using grep for |
| 45 | # parsing radius pod name, we can also use full radius pod name |
| 46 | ${RESTART_POD_NAME} radius |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 47 | ${timeout} 360s |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 48 | ${of_id} 0 |
| 49 | ${logical_id} 0 |
Suchitra Vemuri | 2fa9bba | 2020-01-22 17:38:48 -0800 | [diff] [blame] | 50 | ${has_dataplane} True |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 51 | ${teardown_device} False |
| 52 | ${scripts} ../../scripts |
Hardik Windlass | cbcca31 | 2020-04-20 21:46:11 +0530 | [diff] [blame] | 53 | ${workflow} ATT |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 54 | |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 55 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 56 | ${container_log_dir} ${None} |
| 57 | |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 58 | *** Test Cases *** |
| 59 | Adding the same OLT before and after enabling the device |
| 60 | [Documentation] Create OLT, Create the same OLT again and Check for the Error message |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 61 | ... VOL-2405 VOL-2406 |
| 62 | [Tags] AddSameOLT functional released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 63 | [Setup] Start Logging AddSameOLT |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 64 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 65 | ... AND Stop Logging AddSameOLT |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 66 | # Add OLT device |
Suchitra Vemuri | e9c79bf | 2020-02-26 23:11:39 -0800 | [diff] [blame] | 67 | #setup |
Andy Bavier | c1904dc | 2020-03-20 11:39:15 -0700 | [diff] [blame] | 68 | Delete All Devices and Verify |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 69 | Run Keyword and Ignore Error Collect Logs |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 70 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 71 | Set Suite Variable ${olt_device_id} |
| 72 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 73 | ... ${olt_device_id} |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 74 | ${rc} ${output}= Run and Return Rc and Output |
| 75 | ... ${VOLTCTL_CONFIG}; voltctl device create -t openolt -H ${olt_ip}:${OLT_PORT} |
| 76 | Should Not Be Equal As Integers ${rc} 0 |
Suchitra Vemuri | 14eec43 | 2020-06-19 14:55:47 -0700 | [diff] [blame] | 77 | Should Contain ${output} device is already pre-provisioned ignore_case=True |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 78 | #Enable the created OLT device |
| 79 | Enable Device ${olt_device_id} |
| 80 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 81 | ... ${olt_serial_number} |
| 82 | ${rc} ${output}= Run and Return Rc and Output |
| 83 | ... ${VOLTCTL_CONFIG}; voltctl device create -t openolt -H ${olt_ip}:${OLT_PORT} |
| 84 | Should Not Be Equal As Integers ${rc} 0 |
| 85 | Log ${output} |
Suchitra Vemuri | 14eec43 | 2020-06-19 14:55:47 -0700 | [diff] [blame] | 86 | Should Contain ${output} device is already pre-provisioned ignore_case=True |
Gayathri.Selvan | ee4a91b | 2020-01-17 06:49:53 +0000 | [diff] [blame] | 87 | Log "This OLT is added already and enabled" |
Gayathri.Selvan | 3dfe6c2 | 2020-01-27 13:08:55 +0000 | [diff] [blame] | 88 | |
Gayathri.Selvan | 967f5a5 | 2020-02-12 06:58:38 +0000 | [diff] [blame] | 89 | Test Disable or Enable different device id which is not in the device list |
| 90 | [Documentation] Disable or Enable a device id which is not listed in the voltctl device list |
Gayathri.Selvan | 3dfe6c2 | 2020-01-27 13:08:55 +0000 | [diff] [blame] | 91 | ... command and ensure that error message is shown. |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 92 | ... VOL-2412-2413 |
| 93 | [Tags] functional DisableEnableInvalidDevice released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 94 | [Setup] Start Logging DisableInvalidDevice |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 95 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 96 | ... AND Stop Logging DisableInvalidDevice |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 97 | Run Keyword and Ignore Error Collect Logs |
Gayathri.Selvan | 3dfe6c2 | 2020-01-27 13:08:55 +0000 | [diff] [blame] | 98 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device list -o json |
| 99 | Should Be Equal As Integers ${rc} 0 |
| 100 | ${jsondata}= To Json ${output} |
| 101 | Log ${jsondata} |
| 102 | ${length}= Get Length ${jsondata} |
| 103 | @{ids}= Create List |
| 104 | FOR ${INDEX} IN RANGE 0 ${length} |
| 105 | ${value}= Get From List ${jsondata} ${INDEX} |
| 106 | ${device_id}= Get From Dictionary ${value} id |
| 107 | Append To List ${ids} ${device_id} |
| 108 | END |
| 109 | #Create a new fake device id |
| 110 | ${fakeDeviceId} Replace String Using Regexp ${device_id} \\d\\d xx count=1 |
| 111 | Log ${fakeDeviceId} |
| 112 | #Ensure that the new id created is not in the device id list |
| 113 | List Should Not Contain Value ${ids} ${fakeDeviceId} |
| 114 | #Disable fake device id |
| 115 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${fakeDeviceId} |
Suchitra Vemuri | a7e8ad2 | 2020-02-11 18:02:40 -0800 | [diff] [blame] | 116 | Should Contain ${output} Error while disabling '${fakeDeviceId}' |
Gayathri.Selvan | 967f5a5 | 2020-02-12 06:58:38 +0000 | [diff] [blame] | 117 | #Disable device for VOL-2413 |
| 118 | Disable Device ${device_id} |
| 119 | #Enable fake device id |
| 120 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device enable ${fakeDeviceId} |
| 121 | Should Contain ${output} Error while enabling '${fakeDeviceId}' |
suraj gour | baee2c6 | 2020-02-03 10:21:32 +0000 | [diff] [blame] | 122 | |
| 123 | Check deletion of OLT/ONU before disabling |
| 124 | [Documentation] Try deleting OL/ONU before disabling and check error message |
| 125 | ... Assuming devices are already created, up and running fine; test1 or sanity was |
| 126 | ... executed where all the ONUs are authenticated/DHCP/pingable |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 127 | ... VOL-2411 |
Hardik Windlass | cbcca31 | 2020-04-20 21:46:11 +0530 | [diff] [blame] | 128 | #TODO: If this TC gets updated in future, To add support for DT workflow as well (refer JIRA: VOL-2945) |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 129 | [Tags] functional DeleteBeforeDisableCheck notready |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 130 | [Setup] Start Logging DeleteBeforeDisableCheck |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 131 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 132 | ... AND Stop Logging DeleteBeforeDisableCheck |
suraj gour | baee2c6 | 2020-02-03 10:21:32 +0000 | [diff] [blame] | 133 | #validate olt states |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 134 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 135 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
suraj gour | baee2c6 | 2020-02-03 10:21:32 +0000 | [diff] [blame] | 136 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 137 | ... ${olt_serial_number} |
| 138 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device delete ${olt_device_id} |
| 139 | Log ${output} |
| 140 | Should Contain ${output} expected-admin-state:DISABLED |
| 141 | Wait Until Keyword Succeeds ${timeout} 5s |
| 142 | ... Validate OLT Device ENABLED ACTIVE REACHABLE ${olt_serial_number} |
| 143 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
| 144 | Set Global Variable ${of_id} |
| 145 | FOR ${I} IN RANGE 0 ${num_onus} |
| 146 | ${src}= Set Variable ${hosts.src[${I}]} |
| 147 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 148 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 149 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 150 | ... ENABLED ACTIVE REACHABLE |
| 151 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 152 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device delete ${onu_device_id} |
| 153 | Log ${output} |
| 154 | Should Contain ${output} expected-admin-state:DISABLED |
| 155 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 156 | ... ENABLED ACTIVE REACHABLE |
| 157 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 158 | END |
suraj gour | b316041 | 2020-02-04 06:11:31 +0000 | [diff] [blame] | 159 | |
| 160 | Check disabling of pre-provisioned OLT before enabling |
| 161 | [Documentation] Create OLT, disable same OLT, check error message and validates ONU |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 162 | ... VOL-2414 |
| 163 | [Tags] functional DisablePreprovisionedOLTCheck |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 164 | [Setup] Run Keywords Start Logging DisablePreprovisionedOLTCheck |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 165 | ... AND Delete All Devices and Verify |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 166 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 167 | ... AND Stop Logging DisablePreprovisionedOLTCheck |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 168 | Sleep 180s |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 169 | Run Keyword and Ignore Error Collect Logs |
suraj gour | b316041 | 2020-02-04 06:11:31 +0000 | [diff] [blame] | 170 | #create/preprovision device |
| 171 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 172 | Set Suite Variable ${olt_device_id} |
| 173 | #validate olt states |
| 174 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 175 | ... ${olt_device_id} |
suraj gour | b316041 | 2020-02-04 06:11:31 +0000 | [diff] [blame] | 176 | #Try disabling pre-provisioned OLT |
| 177 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id} |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 178 | Should Not Be Equal As Integers ${rc} 0 |
suraj gour | b316041 | 2020-02-04 06:11:31 +0000 | [diff] [blame] | 179 | Log ${output} |
| 180 | Should Contain ${output} invalid-admin-state:PREPROVISIONED |
| 181 | #Enable OLT |
| 182 | Enable Device ${olt_device_id} |
| 183 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 184 | ... ${olt_serial_number} |
| 185 | ${logical_id}= Get Logical Device ID From SN ${olt_serial_number} |
| 186 | Set Suite Variable ${logical_id} |
Hardik Windlass | cbcca31 | 2020-04-20 21:46:11 +0530 | [diff] [blame] | 187 | ${onu_reason}= Set Variable If '${workflow}' == 'DT' initial-mib-downloaded omci-flows-pushed |
suraj gour | b316041 | 2020-02-04 06:11:31 +0000 | [diff] [blame] | 188 | FOR ${I} IN RANGE 0 ${num_onus} |
| 189 | ${src}= Set Variable ${hosts.src[${I}]} |
| 190 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 191 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 192 | ... ENABLED ACTIVE REACHABLE |
Hardik Windlass | cbcca31 | 2020-04-20 21:46:11 +0530 | [diff] [blame] | 193 | ... ${src['onu']} onu=True onu_reason=${onu_reason} |
suraj gour | b316041 | 2020-02-04 06:11:31 +0000 | [diff] [blame] | 194 | END |
Hema | 526eceb | 2020-02-04 13:11:40 +0530 | [diff] [blame] | 195 | |
| 196 | Disable and Delete the logical device directly |
| 197 | [Documentation] Disable and delete the logical device directly is not possible |
| 198 | ... since it is allowed only through OLT device deletion. |
Suchitra Vemuri | 5f66f42 | 2020-03-02 16:43:49 -0800 | [diff] [blame] | 199 | ... VOL-2418 |
| 200 | [Tags] functional DisableDelete_LogicalDevice |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 201 | [Setup] Run Keywords Start Logging DisableDelete_LogicalDevice |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 202 | ... AND Delete All Devices and Verify |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 203 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 204 | ... AND Stop Logging DisableDelete_LogicalDevice |
Hema | 526eceb | 2020-02-04 13:11:40 +0530 | [diff] [blame] | 205 | Run Keyword If ${has_dataplane} Sleep 180s |
| 206 | #create/preprovision OLT device |
| 207 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 208 | Set Suite Variable ${olt_device_id} |
| 209 | #validate olt states |
| 210 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 211 | ... ${olt_device_id} |
Hema | 526eceb | 2020-02-04 13:11:40 +0530 | [diff] [blame] | 212 | #Enable the created OLT device |
| 213 | Enable Device ${olt_device_id} |
| 214 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 215 | ... ${olt_serial_number} |
| 216 | #Check whether logical devices are also created |
| 217 | ${rc} ${output}= Run and Return Rc and Output |
| 218 | ... ${VOLTCTL_CONFIG}; voltctl logicaldevice list |
| 219 | Should Be Equal As Integers ${rc} 0 |
| 220 | Log ${output} |
| 221 | ${logical_id}= Get Logical Device ID From SN ${olt_serial_number} |
| 222 | Should Not Be Empty ${logical_id} |
| 223 | ${rc} ${output}= Run and Return Rc and Output |
| 224 | ... ${VOLTCTL_CONFIG}; voltctl logicaldevice disable ${logical_id} |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 225 | Should Not Be Equal As Integers ${rc} 0 |
Hema | 526eceb | 2020-02-04 13:11:40 +0530 | [diff] [blame] | 226 | Log ${output} |
| 227 | Should Contain '${output}' Unknown command |
| 228 | ${rc} ${output1}= Run and Return Rc and Output |
| 229 | ... ${VOLTCTL_CONFIG}; voltctl logicaldevice delete ${logical_id} |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 230 | Should Not Be Equal As Integers ${rc} 0 |
Hema | 526eceb | 2020-02-04 13:11:40 +0530 | [diff] [blame] | 231 | Log ${output1} |
| 232 | Should Contain '${output1}' Unknown command |
suraj gour | a416622 | 2020-02-03 12:09:11 +0000 | [diff] [blame] | 233 | |
| 234 | Check logical device creation and deletion |
| 235 | [Documentation] Deletes all devices, checks logical device, creates devices again and checks |
| 236 | ... logical device, flows, ports |
Suchitra Vemuri | 5f66f42 | 2020-03-02 16:43:49 -0800 | [diff] [blame] | 237 | ... VOL-2416 VOL-2417 |
| 238 | [Tags] functional LogicalDeviceCheck |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 239 | [Setup] Start Logging LogicalDeviceCheck |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 240 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 241 | ... AND Stop Logging LogicalDeviceCheck |
Andy Bavier | de53a1f | 2020-03-25 14:53:56 -0700 | [diff] [blame] | 242 | Delete All Devices and Verify |
suraj gour | a416622 | 2020-02-03 12:09:11 +0000 | [diff] [blame] | 243 | ${logical_id}= Get Logical Device ID From SN ${olt_serial_number} |
| 244 | Should Be Empty ${logical_id} |
| 245 | Run Keyword If ${has_dataplane} Sleep 180s |
| 246 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 247 | Set Suite Variable ${olt_device_id} |
| 248 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 249 | ... ${olt_device_id} |
suraj gour | a416622 | 2020-02-03 12:09:11 +0000 | [diff] [blame] | 250 | Enable Device ${olt_device_id} |
| 251 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 252 | ... ${olt_serial_number} |
| 253 | ${logical_id}= Get Logical Device ID From SN ${olt_serial_number} |
| 254 | Should Not Be Empty ${logical_id} |
| 255 | ${rc} ${output}= Run and Return Rc and Output |
| 256 | ... ${VOLTCTL_CONFIG}; voltctl logicaldevice list |
| 257 | Should Be Equal As Integers ${rc} 0 |
| 258 | Log ${output} |
| 259 | Should Contain ${output} ${olt_device_id} |
| 260 | Set Suite Variable ${logical_id} |
| 261 | Wait Until Keyword Succeeds ${timeout} 5s Validate Logical Device Ports ${logical_id} |
| 262 | Wait Until Keyword Succeeds ${timeout} 5s Validate Logical Device Flows ${logical_id} |
| 263 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | e9c79bf | 2020-02-26 23:11:39 -0800 | [diff] [blame] | 264 | |
| 265 | *** Keywords *** |
| 266 | Setup Suite |
| 267 | [Documentation] Set up the test suite |
| 268 | Common Test Suite Setup |
| 269 | |
Suchitra Vemuri | 32dea01 | 2020-07-08 16:40:06 -0700 | [diff] [blame] | 270 | Teardown Suite |
| 271 | [Documentation] Teardown suite |
| 272 | Run Keyword If ${has_dataplane} Clean Up Linux |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 273 | #Restore all ONUs |
| 274 | # Run Keyword If ${has_dataplane} RestoreONUs ${num_onus} |