Gayathri.Selvan | 283a63c | 2020-01-23 04:09:18 +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. |
Gayathri.Selvan | 283a63c | 2020-01-23 04:09:18 +0000 | [diff] [blame] | 14 | |
| 15 | *** Settings *** |
HungWei Chiu | 87edb1f | 2020-01-28 00:10:58 +0000 | [diff] [blame] | 16 | Documentation Test various failure scenarios |
HungWei Chiu | 1408fb9 | 2020-03-03 19:43:30 -0500 | [diff] [blame] | 17 | Suite Setup Setup Suite |
Gayathri.Selvan | 283a63c | 2020-01-23 04:09:18 +0000 | [diff] [blame] | 18 | Test Setup Setup |
| 19 | Test Teardown Teardown |
| 20 | #Suite Teardown Teardown Suite |
| 21 | Library Collections |
| 22 | Library String |
| 23 | Library OperatingSystem |
| 24 | Library XML |
| 25 | Library RequestsLibrary |
| 26 | Library ../../libraries/DependencyLibrary.py |
| 27 | Resource ../../libraries/onos.robot |
| 28 | Resource ../../libraries/voltctl.robot |
| 29 | Resource ../../libraries/voltha.robot |
| 30 | Resource ../../libraries/utils.robot |
| 31 | Resource ../../libraries/k8s.robot |
| 32 | Resource ../../variables/variables.robot |
HungWei Chiu | 87edb1f | 2020-01-28 00:10:58 +0000 | [diff] [blame] | 33 | Resource ../../libraries/power_switch.robot |
Gayathri.Selvan | 283a63c | 2020-01-23 04:09:18 +0000 | [diff] [blame] | 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 |
| 47 | ${timeout} 60s |
| 48 | ${of_id} 0 |
| 49 | ${logical_id} 0 |
Suchitra Vemuri | 109feb1 | 2020-01-23 16:25:02 -0800 | [diff] [blame] | 50 | ${has_dataplane} True |
Gayathri.Selvan | 283a63c | 2020-01-23 04:09:18 +0000 | [diff] [blame] | 51 | ${teardown_device} False |
| 52 | ${scripts} ../../scripts |
| 53 | |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 54 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 55 | ${container_log_dir} ${None} |
| 56 | |
Gayathri.Selvan | 283a63c | 2020-01-23 04:09:18 +0000 | [diff] [blame] | 57 | *** Test Cases *** |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 58 | Verify ONU after rebooting physically |
| 59 | [Documentation] Test the ONU functionality by physically turning on/off ONU. |
| 60 | ... Prerequisite : Subscriber are authenticated/DHCP/pingable state |
| 61 | ... Test case runs only on the PODs that are configured with PowerSwitch that |
| 62 | ... controls the power off/on ONUs/OLT remotely (simulating a physical reboot) |
| 63 | ... VOL-2634 |
| 64 | [Tags] functional PowerSwitch |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 65 | [Setup] Run Keywords Announce Message START TEST ONUreboot_PowerSwitch |
| 66 | ... AND Start Logging ONUreboot_PowerSwitch |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 67 | [Teardown] Run Keywords Collect Logs |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 68 | ... AND Stop Logging ONUreboot_PowerSwitch |
| 69 | ... AND Announce Message END TEST ONUreboot_PowerSwitch |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 70 | # Add OLT device |
| 71 | setup |
| 72 | # Performing Sanity Test to make sure subscribers are all AUTH+DHCP and pingable |
| 73 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 74 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 75 | Power Switch Connection Suite ${web_power_switch.ip} ${web_power_switch.user} ${web_power_switch.password} |
| 76 | FOR ${I} IN RANGE 0 ${num_onus} |
| 77 | ${src}= Set Variable ${hosts.src[${I}]} |
| 78 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 79 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 80 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
| 81 | Disable Switch Outlet ${src['power_switch_port']} |
| 82 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 83 | ... Wait Until Keyword Succeeds 60s 2s |
| 84 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 85 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 86 | |
| 87 | Enable Switch Outlet ${src['power_switch_port']} |
| 88 | # Check ONU port is Enabled in ONOS |
| 89 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 120s 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 90 | ... Verify ONU Port Is Enabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 91 | # Verify EAPOL flows are added for the ONU port |
| 92 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 93 | ... Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 94 | # Verify ONU state in voltha |
| 95 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 96 | ... ENABLED ACTIVE REACHABLE |
| 97 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 98 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 99 | ... Wait Until Keyword Succeeds 60s 2s |
| 100 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 101 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 102 | Run Keyword And Ignore Error Collect Logs |
| 103 | END |
Suchitra Vemuri | d709613 | 2020-02-21 14:50:47 -0800 | [diff] [blame] | 104 | # Deleting OLT after tests completes independently (as this test doesn't not run on each POD) |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 105 | Run Keyword If ${has_dataplane} Delete Device and Verify |
| 106 | |
Suchitra Vemuri | 784e1ae | 2020-03-16 18:40:25 -0700 | [diff] [blame] | 107 | Verify OLT after rebooting physically |
| 108 | [Documentation] Test the physical reboot of the OLT |
| 109 | ... Prerequisite : Subscriber are authenticated/DHCP/pingable state |
| 110 | ... Test performs a physical reboot, performs "reboot" from the OLT CLI |
| 111 | ... VOL-1956 |
| 112 | [Tags] functional PhysicalOLTReboot |
| 113 | [Setup] Run Keywords Announce Message START TEST PhysicalOLTReboot |
| 114 | ... AND Start Logging PhysicalOLTReboot |
| 115 | [Teardown] Run Keywords Collect Logs |
| 116 | ... AND Stop Logging PhysicalOLTReboot |
| 117 | ... AND Announce Message END TEST PhysicalOLTReboot |
| 118 | # Add OLT device |
| 119 | setup |
| 120 | # Performing Sanity Test to make sure subscribers are all AUTH+DHCP and pingable |
| 121 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 122 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 123 | # Reboot the OLT from the OLT CLI |
| 124 | Run Keyword If ${has_dataplane} Login And Run Command On Remote System |
| 125 | ... sudo reboot ${olt_ip} ${olt_user} ${olt_pass} prompt=# |
| 126 | Run Keyword And Ignore Error Collect Logs |
| 127 | FOR ${I} IN RANGE 0 ${num_onus} |
| 128 | ${src}= Set Variable ${hosts.src[${I}]} |
| 129 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 130 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 131 | ... Wait Until Keyword Succeeds 60s 2s |
| 132 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 133 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 134 | END |
| 135 | # Wait for the OLT to come back up |
| 136 | Wait Until Keyword Succeeds 120s 10s Check Remote System Reachability True ${olt_ip} |
| 137 | Run Keyword And Ignore Error Collect Logs |
| 138 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 139 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 140 | # Deleting OLT after test completes |
| 141 | Run Keyword If ${has_dataplane} Delete Device and Verify |
| 142 | |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 143 | Verify restart openolt-adapter container after VOLTHA is operational |
| 144 | [Documentation] Restart openolt-adapter container after VOLTHA is operational. |
| 145 | ... Prerequisite : ONUs are authenticated and pingable. |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 146 | [Tags] functional VOL-1958 Restart-OpenOlt released |
| 147 | [Setup] Run Keywords Announce Message START TEST Restart-OpenOlt |
| 148 | ... AND Start Logging Restart-OpenOlt |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 149 | [Teardown] Run Keywords Collect Logs |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 150 | ... AND Stop Logging Restart-OpenOlt |
| 151 | ... AND Announce Message END TEST Restart-OpenOlt |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 152 | # Add OLT device |
| 153 | setup |
| 154 | # Performing Sanity Test to make sure subscribers are all AUTH+DHCP and pingable |
| 155 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 156 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 157 | ${waitforRestart} Set Variable 120s |
| 158 | ${podStatusOutput}= Run kubectl get pods -n ${NAMESPACE} |
| 159 | Log ${podStatusOutput} |
| 160 | ${countBforRestart}= Run kubectl get pods -n ${NAMESPACE} | grep Running | wc -l |
| 161 | ${podName} Set Variable adapter-open-olt |
| 162 | Restart Pod ${NAMESPACE} ${podName} |
| 163 | Wait Until Keyword Succeeds ${waitforRestart} 2s Validate Pod Status ${podName} ${NAMESPACE} |
| 164 | ... Running |
Suchitra Vemuri | 312bfe0 | 2020-03-16 16:11:34 -0700 | [diff] [blame] | 165 | # Wait for 1min after openolt adapter is restarted |
| 166 | Sleep 60s |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 167 | Repeat Sanity Test |
Suchitra Vemuri | d709613 | 2020-02-21 14:50:47 -0800 | [diff] [blame] | 168 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 169 | ${podStatusOutput}= Run kubectl get pods -n ${NAMESPACE} |
| 170 | Log ${podStatusOutput} |
| 171 | ${countAfterRestart}= Run kubectl get pods -n ${NAMESPACE} | grep Running | wc -l |
| 172 | Should Be Equal As Strings ${countAfterRestart} ${countBforRestart} |
| 173 | Log to console Pod ${podName} restarted and sanity checks passed successfully |
Suchitra Vemuri | 60be98b | 2020-02-19 16:41:21 -0800 | [diff] [blame] | 174 | |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 175 | Check OLT/ONU Authentication After Radius Pod Restart |
| 176 | [Documentation] After radius restart, triggers reassociation, checks status and |
| 177 | ... authentication, validates dhcp and ping. Note : wpa reassociate works only when |
| 178 | ... wpa supplicant is running in background hence it is recommended to remove |
| 179 | ... teardown from previous test or uncomment 'Teardown None'. |
| 180 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 181 | [Tags] functional RadiusRestart released |
| 182 | [Setup] Run Keywords Announce Message START TEST RadiusRestart |
| 183 | ... AND Start Logging RadiusRestart |
| 184 | [Teardown] Run Keywords Collect Logs |
| 185 | ... AND Stop Logging RadiusRestart |
| 186 | ... AND Announce Message END TEST RadiusRestart |
| 187 | ${waitforRestart} Set Variable 120s |
| 188 | Wait Until Keyword Succeeds ${timeout} 15s Restart Pod ${NAMESPACE} ${RESTART_POD_NAME} |
| 189 | Wait Until Keyword Succeeds ${waitforRestart} 2s Validate Pod Status ${RESTART_POD_NAME} ${NAMESPACE} |
| 190 | ... Running |
| 191 | FOR ${I} IN RANGE 0 ${num_onus} |
| 192 | ${src}= Set Variable ${hosts.src[${I}]} |
| 193 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 194 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 195 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s |
| 196 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
| 197 | Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 198 | ... Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 199 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 200 | ... Validate Authentication After Reassociate True ${src['dp_iface_name']} |
| 201 | ... ${src['ip']} ${src['user']} ${src['pass']} |
| 202 | ... ${src['container_type']} ${src['container_name']} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 203 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 204 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 205 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 206 | ... Validate DHCP and Ping True True ${src['dp_iface_name']} |
| 207 | ... ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 208 | ... ${src['ip']} ${src['user']} ${src['pass']} |
| 209 | ... ${src['container_type']} ${src['container_name']} |
| 210 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} |
| 211 | ... ${dst['pass']} ${dst['container_type']} ${dst['container_name']} |
| 212 | Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 213 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 214 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 215 | Run Keyword and Ignore Error Collect Logs |
| 216 | END |
| 217 | |
| 218 | Sanity E2E Test for OLT/ONU on POD With Core Fail and Restart |
| 219 | [Documentation] Deploys an device instance and waits for it to authenticate. After |
| 220 | ... authentication is successful the rw-core deployment is scaled to 0 instances to |
| 221 | ... simulate a POD crash. The test then scales the rw-core back to a single instance |
| 222 | ... and configures ONOS for access. The test succeeds if the device is able to |
| 223 | ... complete the DHCP sequence. |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 224 | [Tags] bbsim rwcore-restart |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 225 | [Setup] Run Keywords Announce Message START TEST RwCoreFailAndRestart |
| 226 | ... AND Start Logging RwCoreFailAndRestart |
| 227 | ... AND Clear All Devices Then Create New Device |
| 228 | [Teardown] Run Keywords Collect Logs |
| 229 | ... AND Stop Logging RwCoreFailAndRestart |
| 230 | ... AND Announce Message END TEST RwCoreFailAndRestart |
| 231 | ... AND Delete Device and Verify |
| 232 | Run Keyword and Ignore Error Collect Logs |
| 233 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 234 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
| 235 | Set Global Variable ${of_id} |
| 236 | FOR ${I} IN RANGE 0 ${num_onus} |
| 237 | ${src}= Set Variable ${hosts.src[${I}]} |
| 238 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 239 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 240 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 241 | ... ${of_id} |
| 242 | # Bring up the device and verify it authenticates |
| 243 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE REACHABLE |
| 244 | ... ${onu_device_id} onu=True onu_reason=omci-flows-pushed |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 245 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 246 | ... ${ONOS_SSH_PORT} ${onu_port} |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 247 | ${wpa_log}= Run Keyword If ${has_dataplane} Catenate SEPARATOR=. |
| 248 | ... /tmp/wpa ${src['dp_iface_name']} log |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 249 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True |
| 250 | ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']} |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 251 | ... ${src['container_type']} ${src['container_name']} ${wpa_log} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 252 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 253 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 254 | END |
| 255 | |
| 256 | # Scale down the rw-core deployment to 0 PODs and once confirmed, scale it back to 1 |
| 257 | Scale K8s Deployment voltha voltha-rw-core 0 |
| 258 | Wait Until Keyword Succeeds ${timeout} 2s Pod Does Not Exist voltha voltha-rw-core |
| 259 | # Ensure the ofagent POD goes "not-ready" as expected |
| 260 | Wait Until keyword Succeeds ${timeout} 2s |
| 261 | ... Check Expected Available Deployment Replicas voltha voltha-ofagent 0 |
| 262 | # Scale up the core deployment and make sure both it and the ofagent deployment are back |
| 263 | Scale K8s Deployment voltha voltha-rw-core 1 |
| 264 | Wait Until Keyword Succeeds ${timeout} 2s |
| 265 | ... Check Expected Available Deployment Replicas voltha voltha-rw-core 1 |
| 266 | Wait Until Keyword Succeeds ${timeout} 2s |
| 267 | ... Check Expected Available Deployment Replicas voltha voltha-ofagent 1 |
| 268 | # For some reason scaling down and up the POD behind a service causes the port forward to stop working, |
| 269 | # so restart the port forwarding for the API service |
| 270 | Restart VOLTHA Port Foward voltha-api-minimal |
| 271 | # Ensure that the ofagent pod is up and ready and the device is available in ONOS, this |
| 272 | # represents system connectivity being restored |
| 273 | Wait Until Keyword Succeeds ${timeout} 2s Device Is Available In ONOS |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 274 | ... http://karaf:karaf@${ONOS_REST_IP}:${ONOS_REST_PORT} ${of_id} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 275 | |
| 276 | FOR ${I} IN RANGE 0 ${num_onus} |
| 277 | # Add subscriber access and verify that DHCP completes to ensure system is still functioning properly |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 278 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 279 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 280 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 281 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 282 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 283 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 284 | ... ${dst['container_name']} |
| 285 | Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 286 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 287 | END |
| 288 | |
| 289 | Sanity E2E Test for OLT/ONU on POD With OLT Adapters Fail and Restart |
| 290 | [Documentation] Deploys an device instance and waits for it to authenticate. After |
| 291 | ... authentication is successful the rw-core deployment is scaled to 0 instances to |
| 292 | ... simulate a POD crash. The test then scales the rw-core back to a single instance |
| 293 | ... and configures ONOS for access. The test succeeds if the device is able to |
| 294 | ... complete the DHCP sequence. |
| 295 | [Tags] bbsim olt-adapter-restart |
| 296 | [Setup] Run Keywords Announce Message START TEST OltAdapterRestart |
| 297 | ... AND Start Logging OltAdapterRestart |
| 298 | ... AND Clear All Devices Then Create New Device |
| 299 | [Teardown] Run Keywords Collect Logs |
| 300 | ... AND Stop Logging OltAdapterRestart |
| 301 | ... AND Announce Message END TEST OltAdapterRestart |
| 302 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 303 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
| 304 | Set Global Variable ${of_id} |
| 305 | |
| 306 | FOR ${I} IN RANGE 0 ${num_onus} |
| 307 | ${src}= Set Variable ${hosts.src[${I}]} |
| 308 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 309 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 310 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 311 | ... ${of_id} |
| 312 | |
| 313 | # Bring up the device and verify it authenticates |
| 314 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE REACHABLE |
| 315 | ... ${onu_device_id} onu=True onu_reason=omci-flows-pushed |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 316 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 317 | ... ${ONOS_SSH_PORT} ${onu_port} |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 318 | ${wpa_log}= Run Keyword If ${has_dataplane} Catenate SEPARATOR=. |
| 319 | ... /tmp/wpa ${src['dp_iface_name']} log |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 320 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True |
| 321 | ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']} |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 322 | ... ${src['container_type']} ${src['container_name']} ${wpa_log} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 323 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 324 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 325 | END |
| 326 | # Scale down the open OLT adapter deployment to 0 PODs and once confirmed, scale it back to 1 |
| 327 | Scale K8s Deployment voltha adapter-open-olt 0 |
| 328 | Wait Until Keyword Succeeds ${timeout} 2s Pod Does Not Exist voltha adapter-open-olt |
| 329 | # Scale up the open OLT adapter deployment and make sure both it and the ofagent deployment are back |
| 330 | Scale K8s Deployment voltha adapter-open-olt 1 |
| 331 | Wait Until Keyword Succeeds ${timeout} 2s |
| 332 | ... Check Expected Available Deployment Replicas voltha adapter-open-olt 1 |
| 333 | |
| 334 | # Ensure the device is available in ONOS, this represents system connectivity being restored |
| 335 | Wait Until Keyword Succeeds ${timeout} 2s Device Is Available In ONOS |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 336 | ... http://karaf:karaf@${ONOS_REST_IP}:${ONOS_REST_PORT} ${of_id} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 337 | |
| 338 | FOR ${I} IN RANGE 0 ${num_onus} |
| 339 | # Add subscriber access and verify that DHCP completes to ensure system is still functioning properly |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 340 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 341 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 342 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 343 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 344 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 345 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 346 | ... ${dst['container_name']} |
| 347 | Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 348 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 349 | END |
| 350 | |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 351 | Verify restart ofagent container after VOLTHA is operational |
| 352 | [Documentation] Restart ofagent container after VOLTHA is operational. |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 353 | ... Prerequisite : ONUs are authenticated and pingable. |
Hardik Windlass | 8f2aadc | 2020-03-16 20:16:39 +0530 | [diff] [blame] | 354 | #TODO: remove "notready" tag once olt reboot and ofagent restart work items are done |
| 355 | [Tags] functional VOL-2409 ofagentRestart notready |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 356 | [Setup] Run Keywords Announce Message START TEST ofagentRestart |
| 357 | ... AND Start Logging ofagentRestart |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 358 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 359 | ... AND Stop Logging ofagentRestart |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 360 | ... AND Announce Message END TEST ofagentRestart |
Hardik Windlass | 8f2aadc | 2020-03-16 20:16:39 +0530 | [diff] [blame] | 361 | ... AND Scale K8s Deployment ${NAMESPACE} voltha-ofagent 1 |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 362 | ${waitforRestart} Set Variable 120s |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 363 | ${podStatusOutput}= Run kubectl get pods -n ${NAMESPACE} |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 364 | Log ${podStatusOutput} |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 365 | ${countBforRestart}= Run kubectl get pods -n ${NAMESPACE} | grep Running | wc -l |
Hardik Windlass | 8f2aadc | 2020-03-16 20:16:39 +0530 | [diff] [blame] | 366 | ${podName} Set Variable ofagent |
| 367 | Restart Pod ${NAMESPACE} ${podName} |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 368 | Sleep 60s |
| 369 | Wait Until Keyword Succeeds ${waitforRestart} 2s Validate Pod Status ofagent ${NAMESPACE} |
| 370 | ... Running |
Hardik Windlass | 8f2aadc | 2020-03-16 20:16:39 +0530 | [diff] [blame] | 371 | # Performing Sanity Test to make sure subscribers are all AUTH+DHCP and pingable |
| 372 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 373 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 374 | ${podStatusOutput}= Run kubectl get pods -n ${NAMESPACE} |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 375 | Log ${podStatusOutput} |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 376 | ${countAfterRestart}= Run kubectl get pods -n ${NAMESPACE} | grep Running | wc -l |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 377 | Should Be Equal As Strings ${countAfterRestart} ${countBforRestart} |
Hardik Windlass | 8f2aadc | 2020-03-16 20:16:39 +0530 | [diff] [blame] | 378 | # Scale Down the Of-Agent Deployment |
| 379 | Scale K8s Deployment ${NAMESPACE} voltha-ofagent 0 |
| 380 | Sleep 30s |
| 381 | FOR ${I} IN RANGE 0 ${num_onus} |
| 382 | ${src}= Set Variable ${hosts.src[${I}]} |
| 383 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 384 | Run Keyword and Ignore Error Collect Logs |
| 385 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 386 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 387 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
| 388 | # Verify ONU state in voltha |
| 389 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 390 | ... ENABLED ACTIVE REACHABLE |
| 391 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 392 | # Check ONU port is Disabled in ONOS |
| 393 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 120s 2s |
| 394 | ... Verify ONU Port Is Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 395 | # Verify EAPOL flows are present for the ONU port |
| 396 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 397 | ... Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 398 | # Verify ONU in AAA-Users |
| 399 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2 |
| 400 | ... Verify ONU in AAA-Users ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 401 | # Verify DHCP-Allocations |
| 402 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 403 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 404 | # Verify Ping |
| 405 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Check Ping True |
| 406 | ... ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} ${src['ip']} |
| 407 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 408 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 409 | Run Keyword and Ignore Error Collect Logs |
| 410 | END |
| 411 | # Scale Up the Of-Agent Deployment |
| 412 | Scale K8s Deployment ${NAMESPACE} voltha-ofagent 1 |
| 413 | Wait Until Keyword Succeeds ${waitforRestart} 2s Validate Pod Status ofagent ${NAMESPACE} |
| 414 | ... Running |
| 415 | # Performing Sanity Test to make sure subscribers are all AUTH+DHCP and pingable |
| 416 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 417 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 418 | Log to console Pod ${podName} restarted and sanity checks passed successfully |
Gayathri.Selvan | b6a2b54 | 2020-01-24 07:24:23 +0000 | [diff] [blame] | 419 | |
Gayathri.Selvan | c0b3702 | 2020-02-06 05:17:00 +0000 | [diff] [blame] | 420 | Check ONU adapter crash not forcing authentication again |
| 421 | [Documentation] After ONU adapter restart, checks wpa log for 'authentication started' |
| 422 | ... message count to make sure auth not started again and validates EAP status and ping. |
| 423 | ... Assuming that test1 or sanity was executed where all the ONUs are authenticated/DHCP/pingable |
| 424 | [Tags] functional ONUAdaptCrash notready |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 425 | [Setup] Run Keywords Announce Message START TEST ONUAdaptCrash |
| 426 | ... AND Start Logging ONUAdaptCrash |
| 427 | [Teardown] Run Keywords Collect Logs |
| 428 | ... AND Stop Logging ONUAdaptCrash |
| 429 | ... AND Announce Message END TEST ONUAdaptCrash |
Gayathri.Selvan | c0b3702 | 2020-02-06 05:17:00 +0000 | [diff] [blame] | 430 | @{before_list}= Create List |
| 431 | @{after_list}= Create List |
| 432 | FOR ${I} IN RANGE 0 ${num_onus} |
| 433 | ${src}= Set Variable ${hosts.src[${I}]} |
| 434 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 435 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 436 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 437 | ... ${of_id} |
| 438 | ${before}= Run Keyword If ${has_dataplane} Check Remote File Contents For WPA Logs |
| 439 | ... True /tmp/wpa.log authentication started ${src['ip']} ${src['user']} ${src['pass']} |
| 440 | ... ${src['container_type']} ${src['container_name']} |
| 441 | Append To List ${before_list} ${before} |
| 442 | END |
| 443 | Wait Until Keyword Succeeds ${timeout} 15s Restart Pod ${NAMESPACE} adapter-open-onu |
| 444 | Wait Until Keyword Succeeds ${timeout} 2s Validate Pod Status ${podName} ${NAMESPACE} |
| 445 | ... Running |
| 446 | FOR ${I} IN RANGE 0 ${num_onus} |
| 447 | ${src}= Set Variable ${hosts.src[${I}]} |
| 448 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 449 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 450 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 451 | ... ${of_id} |
| 452 | ${after}= Run Keyword If ${has_dataplane} Check Remote File Contents For WPA Logs |
| 453 | ... True /tmp/wpa.log authentication started ${src['ip']} ${src['user']} ${src['pass']} |
| 454 | ... ${src['container_type']} ${src['container_name']} |
| 455 | Append To List ${after_list} ${after} |
| 456 | ${output}= Run Keyword If ${has_dataplane} Login And Run Command On Remote System |
| 457 | ... wpa_cli status | grep SUCCESS ${src['ip']} ${src['user']} ${src['pass']} |
| 458 | ... ${src['container_type']} ${src['container_name']} |
| 459 | Run Keyword If ${has_dataplane} Should Contain ${output} SUCCESS |
| 460 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 461 | ... Wait Until Keyword Succeeds 60s 2s Check Ping |
| 462 | ... True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} ${src['ip']} ${src['user']} |
| 463 | ... ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 464 | END |
| 465 | Lists Should Be Equal ${after_list} ${before_list} |
| 466 | Log ${after_list} |
| 467 | Log ${before_list} |
| 468 | Run Keyword and Ignore Error Collect Logs |
| 469 | |
Gayathri.Selvan | f68ea4b | 2020-02-03 07:36:39 +0000 | [diff] [blame] | 470 | ONU Reboot |
| 471 | [Documentation] Reboot ONU and verify that ONU comes up properly |
| 472 | [Tags] VOL-1957 RebootONU notready |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 473 | [Setup] Run Keywords Announce Message START TEST RebootONU |
| 474 | ... AND Start Logging RebootONU |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 475 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 476 | ... AND Stop Logging RebootONU |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 477 | ... AND Announce Message END TEST RebootONU |
Gayathri.Selvan | f68ea4b | 2020-02-03 07:36:39 +0000 | [diff] [blame] | 478 | FOR ${I} IN RANGE 0 ${num_onus} |
| 479 | ${src}= Set Variable ${hosts.src[${I}]} |
| 480 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 481 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | cd2f64f | 2020-02-18 18:30:27 -0800 | [diff] [blame] | 482 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 483 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
Gayathri.Selvan | f68ea4b | 2020-02-03 07:36:39 +0000 | [diff] [blame] | 484 | Reboot ONU ${onu_device_id} ${src} ${dst} |
| 485 | Verify ping is succesful except for given device ${num_onus} ${onu_device_id} |
Suchitra Vemuri | cd2f64f | 2020-02-18 18:30:27 -0800 | [diff] [blame] | 486 | # Check ONU port is Enabled in ONOS |
| 487 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 120s 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 488 | ... Verify ONU Port Is Enabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | cd2f64f | 2020-02-18 18:30:27 -0800 | [diff] [blame] | 489 | # Verify EAPOL flows are added for the ONU port |
| 490 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 491 | ... Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | cd2f64f | 2020-02-18 18:30:27 -0800 | [diff] [blame] | 492 | # Verify ONU state in voltha |
| 493 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 494 | ... ENABLED ACTIVE REACHABLE |
| 495 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 496 | # Verify pings are successful after reboot on the current ONU |
| 497 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 498 | ... Wait Until Keyword Succeeds 60s 2s |
| 499 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 500 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Gayathri.Selvan | f68ea4b | 2020-02-03 07:36:39 +0000 | [diff] [blame] | 501 | END |
Suchitra Vemuri | cd2f64f | 2020-02-18 18:30:27 -0800 | [diff] [blame] | 502 | #Run Keyword If ${has_dataplane} Clean Up Linux |
| 503 | #Check after reboot that ONUs are active, authenticated/DHCP/pingable |
| 504 | #Perform Sanity Test |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 505 | |
| 506 | *** Keywords *** |
| 507 | Setup Suite |
| 508 | [Documentation] Set up the test suite |
| 509 | Common Test Suite Setup |
HungWei Chiu | 1408fb9 | 2020-03-03 19:43:30 -0500 | [diff] [blame] | 510 | #power_switch.robot needs it to support different vendor's power switch |
Hung-Wei Chiu | fcc6d8e | 2020-03-10 12:05:11 -0700 | [diff] [blame] | 511 | ${switch_type}= Get Variable Value ${web_power_switch.type} |
| 512 | Run Keyword If "${switch_type}"!="" Set Global Variable ${powerswitch_type} ${switch_type} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 513 | |
| 514 | Clear All Devices Then Create New Device |
| 515 | [Documentation] Remove any devices from VOLTHA and ONOS |
| 516 | # Remove all devices from voltha and nos |
| 517 | Delete All Devices and Verify |
| 518 | # Execute normal test Setup Keyword |
| 519 | Setup |