Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +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 Setup Suite |
| 19 | Test Setup Setup |
| 20 | Test Teardown Teardown |
| 21 | Suite Teardown Teardown Suite |
| 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 |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 34 | Resource ../../libraries/power_switch.robot |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 35 | |
| 36 | *** Variables *** |
| 37 | ${POD_NAME} flex-ocp-cord |
| 38 | ${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 39 | ${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs |
| 40 | #${KUBERNETES_CONFIGS_DIR} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf |
| 41 | ${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml |
| 42 | ${HELM_CHARTS_DIR} ~/helm-charts |
| 43 | ${VOLTHA_POD_NUM} 8 |
| 44 | ${NAMESPACE} voltha |
| 45 | # For below variable value, using deployment name as using grep for |
| 46 | # parsing radius pod name, we can also use full radius pod name |
| 47 | ${RESTART_POD_NAME} radius |
Suchitra Vemuri | e9c6ca6 | 2020-07-27 16:44:53 -0700 | [diff] [blame] | 48 | ${timeout} 360s |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 49 | ${of_id} 0 |
| 50 | ${logical_id} 0 |
Andrea Campanella | 86e2406 | 2020-08-05 19:09:18 +0200 | [diff] [blame] | 51 | ${uprate} 0 |
| 52 | ${dnrate} 0 |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 53 | ${has_dataplane} True |
Hardik Windlass | ffbf060 | 2020-04-24 23:14:45 +0530 | [diff] [blame] | 54 | ${teardown_device} True |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 55 | ${scripts} ../../scripts |
| 56 | |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 57 | # For dataplane bandwidth testing |
| 58 | ${upper_margin_pct} 105 # Allow 5% over the limit |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 59 | ${lower_margin_pct} 90 # Allow 8% under the limit |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 60 | ${udp_rate_multiplier} 1.10 # Send UDP at bw profile limit * rate_multiplier |
Andy Bavier | c80a274 | 2020-08-28 10:59:05 -0700 | [diff] [blame] | 61 | ${udp_packet_bytes} 1470 # UDP payload in bytes |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 62 | |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 63 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 64 | ${container_log_dir} ${None} |
| 65 | |
| 66 | *** Test Cases *** |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 67 | Reboot DT ONUs Physically |
| 68 | [Documentation] This test reboots ONUs physically before execution all the tests |
| 69 | ... Test case runs only on the PODs that are configured with PowerSwitch that |
| 70 | ... controls the power off/on ONUs/OLT remotely (simulating a physical reboot) |
Hardik Windlass | d6aa082 | 2020-06-29 20:18:12 +0530 | [diff] [blame] | 71 | [Tags] functionalDt PowerSwitch RebootAllDTONUs |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 72 | [Setup] Start Logging RebootAllDTONUs |
| 73 | [Teardown] Run Keywords Collect Logs |
| 74 | ... AND Stop Logging RebootAllDTONUs |
| 75 | Power Switch Connection Suite ${web_power_switch.ip} ${web_power_switch.user} ${web_power_switch.password} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 76 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 77 | ${src}= Set Variable ${hosts.src[${I}]} |
| 78 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 79 | Disable Switch Outlet ${src['power_switch_port']} |
| 80 | Sleep 60s |
| 81 | Enable Switch Outlet ${src['power_switch_port']} |
| 82 | Sleep 60s |
| 83 | END |
| 84 | |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 85 | Sanity E2E Test for OLT/ONU on POD for DT |
| 86 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 87 | ... Validate successful DHCP/E2E ping (no EAPOL and DHCP flows) for the tech profile that is used |
| 88 | ... Traffic sent with same vlan from different RGs, |
| 89 | ... should reach the NNI port on the OLT with the expected double tagged vlan ids |
| 90 | ... Inner vlans from the RG should not change |
Suchitra Vemuri | f2388ad | 2020-03-15 21:44:44 -0700 | [diff] [blame] | 91 | [Tags] sanityDt |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 92 | [Setup] Run Keywords Start Logging SanityTestDt |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 93 | ... AND Setup |
| 94 | [Teardown] Run Keywords Collect Logs |
| 95 | ... AND Stop Logging SanityTestDt |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 96 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 97 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT |
| 98 | |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 99 | Test Subscriber Delete and Add for DT |
| 100 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 101 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 102 | ... Delete a subscriber and validate that the pings do not succeed and state is purged |
| 103 | ... Disable and Enable the ONU (This is to replicate the existing DT behaviour) |
| 104 | ... Re-add the subscriber, and validate that the flows are present and pings are successful |
Suchitra Vemuri | f2388ad | 2020-03-15 21:44:44 -0700 | [diff] [blame] | 105 | [Tags] functionalDt SubAddDeleteDt |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 106 | [Setup] Start Logging SubAddDeleteDt |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 107 | [Teardown] Run Keywords Collect Logs |
| 108 | ... AND Stop Logging SubAddDeleteDt |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 109 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 110 | ${src}= Set Variable ${hosts.src[${I}]} |
| 111 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 112 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 113 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 114 | ${olt_device_id}= Get OLTDeviceID From OLT List ${src['olt']} |
Andrea Campanella | d848de0 | 2020-11-24 10:23:41 +0100 | [diff] [blame] | 115 | ${num_of_olt_onus}= Get Num of Onus From OLT SN ${src['olt']} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 116 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 117 | ... ${of_id} |
| 118 | # Remove Subscriber Access |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 119 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 120 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
| 121 | Sleep 10s |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 122 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 123 | ... Wait Until Keyword Succeeds 60s 2s |
| 124 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 125 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Andrea Campanella | d848de0 | 2020-11-24 10:23:41 +0100 | [diff] [blame] | 126 | |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 127 | # Number of Access Flows on ONOS equals 4 * the Number of Active ONUs (2 for each downstream and upstream) |
Andrea Campanella | d848de0 | 2020-11-24 10:23:41 +0100 | [diff] [blame] | 128 | ${onos_flows_count}= Evaluate 4 * ( ${num_of_olt_onus} - 1 ) |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 129 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 130 | ... Verify Subscriber Access Flows Added Count DT ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
Suchitra Vemuri | 93db32b | 2020-11-23 21:27:05 -0800 | [diff] [blame] | 131 | ... ${of_id} ${onos_flows_count} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 132 | # Verify VOLTHA flows for OLT equals twice the number of ONUS (minus ONU under test) + 1 for LLDP |
Andrea Campanella | d848de0 | 2020-11-24 10:23:41 +0100 | [diff] [blame] | 133 | ${olt_flows}= Evaluate 2 * ( ${num_of_olt_onus} - 1 ) + 1 |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 134 | Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Flows ${olt_flows} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 135 | ... ${olt_device_id} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 136 | # Verify VOLTHA flows for ONU under test is Zero |
| 137 | Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate Device Flows |
| 138 | ... ${onu_device_id} 0 |
| 139 | # Disable and Re-Enable the ONU (To replicate DT current workflow) |
| 140 | # TODO: Delete and Auto-Discovery Add of ONU (not yet supported) |
| 141 | Disable Device ${onu_device_id} |
| 142 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 143 | ... Validate Device DISABLED UNKNOWN |
| 144 | ... REACHABLE ${src['onu']} |
| 145 | Enable Device ${onu_device_id} |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 146 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 360s 5s |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 147 | ... Validate Device ENABLED ACTIVE |
| 148 | ... REACHABLE ${src['onu']} |
| 149 | # Add Subscriber Access |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 150 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 151 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 152 | Sleep 10s |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 153 | # Verify subscriber access flows are added for the ONU port |
| 154 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
Hardik Windlass | 25e1170 | 2020-03-30 20:05:19 +0530 | [diff] [blame] | 155 | ... Verify Subscriber Access Flows Added For ONU DT ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 156 | ... ${onu_port} ${nni_port} ${src['s_tag']} |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 157 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 360s 5s |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 158 | ... Validate Device ENABLED ACTIVE |
| 159 | ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 160 | # TODO: Yet to Verify on the GPON based Physical POD (VOL-2652) |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 161 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 162 | ... Wait Until Keyword Succeeds 60s 2s |
| 163 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 164 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 165 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 166 | Run Keyword and Ignore Error Collect Logs |
| 167 | END |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 168 | # Verify flows for all OLTs |
| 169 | Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate All OLT Flows |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 170 | # Verify ONOS Flows |
| 171 | # Number of Access Flows on ONOS equals 4 * the Number of Active ONUs (2 for each downstream and upstream) |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 172 | #${onos_flows_count}= Evaluate 4 * ${num_all_onus} |
| 173 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 174 | #... Verify Subscriber Access Flows Added Count DT ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
| 175 | #... ${of_id} ${onos_flows_count} |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 176 | # Verify VOLTHA Flows |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 177 | # Number of per OLT Flows equals Twice the Number of Active ONUs (each for downstream and upstream) + 1 for LLDP |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 178 | #${olt_flows}= Evaluate 2 * ${num_all_onus} + 1 |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 179 | # Number of per ONU Flows equals 2 (one each for downstream and upstream) |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 180 | #${onu_flows}= Set Variable 2 |
| 181 | #Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Flows ${olt_flows} |
| 182 | #${List_ONU_Serial} Create List |
| 183 | #Set Suite Variable ${List_ONU_Serial} |
| 184 | #Build ONU SN List ${List_ONU_Serial} |
| 185 | #Log ${List_ONU_Serial} |
| 186 | #Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate ONU Flows |
| 187 | #... ${List_ONU_Serial} ${onu_flows} |
Hardik Windlass | 35706ba | 2020-02-20 08:16:42 +0000 | [diff] [blame] | 188 | |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 189 | Test Disable and Enable ONU for DT |
| 190 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 191 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
| 192 | ... Perform disable on the ONUs and validate that the pings do not succeed |
| 193 | ... Perform enable on the ONUs and validate that the pings are successful |
Suchitra Vemuri | f2388ad | 2020-03-15 21:44:44 -0700 | [diff] [blame] | 194 | [Tags] functionalDt DisableEnableONUDt |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 195 | [Setup] Start Logging DisableEnableONUDt |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 196 | [Teardown] Run Keywords Collect Logs |
| 197 | ... AND Stop Logging DisableEnableONUDt |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 198 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 199 | ${src}= Set Variable ${hosts.src[${I}]} |
| 200 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 201 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 202 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 203 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 204 | ... ${of_id} |
| 205 | Disable Device ${onu_device_id} |
| 206 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 207 | ... Validate Device DISABLED UNKNOWN |
| 208 | ... REACHABLE ${src['onu']} onu=True onu_reason=omci-admin-lock |
| 209 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
Suchitra Vemuri | 760bdd3 | 2020-06-17 12:34:48 -0700 | [diff] [blame] | 210 | ... Verify ONU Port Is Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${src['onu']} |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 211 | # TODO: Yet to Verify on the GPON based Physical POD (VOL-2652) |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 212 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 213 | ... Wait Until Keyword Succeeds 60s 2s |
| 214 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 215 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 216 | Sleep 5s |
| 217 | Enable Device ${onu_device_id} |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 218 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 360s 5s |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 219 | ... Validate Device ENABLED ACTIVE |
| 220 | ... REACHABLE ${src['onu']} onu=True onu_reason=onu-reenabled |
| 221 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
Suchitra Vemuri | 760bdd3 | 2020-06-17 12:34:48 -0700 | [diff] [blame] | 222 | ... Verify ONU Port Is Enabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${src['onu']} |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 223 | # TODO: Yet to Verify on the GPON based Physical POD (VOL-2652) |
Hardik Windlass | 63d5e00 | 2020-03-06 21:07:09 +0530 | [diff] [blame] | 224 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 225 | ... Wait Until Keyword Succeeds 60s 2s |
| 226 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 227 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 228 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 229 | Run Keyword and Ignore Error Collect Logs |
| 230 | END |
| 231 | |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 232 | Test Disable and Delete OLT for DT |
| 233 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 234 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
| 235 | ... Perform disable on the OLT and validate ONUs state and that the pings do not succeed |
| 236 | ... Perform delete on the OLT, Re-do Setup (Recreate the OLT) and Perform Sanity Test DT |
Suchitra Vemuri | f2388ad | 2020-03-15 21:44:44 -0700 | [diff] [blame] | 237 | [Tags] functionalDt DisableDeleteOLTDt |
Suchitra Vemuri | 221398a | 2020-05-29 22:45:17 -0700 | [diff] [blame] | 238 | [Setup] Start Logging DisableDeleteOLTDt |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 239 | [Teardown] Run Keywords Collect Logs |
| 240 | ... AND Stop Logging DisableDeleteOLTDt |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 241 | # Disable and Validate OLT Device |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 242 | FOR ${I} IN RANGE 0 ${olt_count} |
| 243 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 244 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 245 | Disable Device ${olt_device_id} |
| 246 | ${of_id}= Get ofID From OLT List ${olt_serial_number} |
| 247 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 248 | ... Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 249 | ... ${olt_serial_number} |
| 250 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 251 | ... ${olt_serial_number} |
| 252 | ${num_onus}= Set Variable ${list_olts}[${I}][onucount] |
| 253 | # Validate ONUs |
| 254 | Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate ONUs After OLT Disable |
Andrea Campanella | 4e50788 | 2020-11-26 11:33:11 +0100 | [diff] [blame] | 255 | ... ${num_onus} ${olt_serial_number} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 256 | # Verify ONOS Flows |
| 257 | # Number of Access Flows on ONOS equals 4 * the Number of Active ONUs (2 for each downstream and upstream) |
| 258 | ${onos_flows_count}= Evaluate 4 * ${num_onus} |
| 259 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 260 | ... Verify Subscriber Access Flows Added Count DT ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
| 261 | ... ${of_id} ${onos_flows_count} |
| 262 | # Verify VOLTHA Flows |
| 263 | # Number of per OLT Flows equals Twice the Number of Active ONUs (each for downstream and upstream) + 1 for LLDP |
| 264 | ${olt_flows}= Evaluate 2 * ${num_onus} + 1 |
| 265 | # Number of per ONU Flows equals 2 (one each for downstream and upstream) |
| 266 | ${onu_flows}= Set Variable 2 |
| 267 | Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Flows ${olt_flows} |
| 268 | ... ${olt_device_id} |
| 269 | ${List_ONU_Serial} Create List |
| 270 | Set Suite Variable ${List_ONU_Serial} |
Andrea Campanella | 99a548b | 2020-11-18 09:50:32 +0100 | [diff] [blame] | 271 | Build ONU SN List ${List_ONU_Serial} ${olt_serial_number} ${num_onus} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 272 | Log ${List_ONU_Serial} |
| 273 | Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate ONU Flows |
| 274 | ... ${List_ONU_Serial} ${onu_flows} |
| 275 | # Delete OLT and Validate Empty Device List |
| 276 | Delete Device ${olt_device_id} |
Andrea Campanella | 4e50788 | 2020-11-26 11:33:11 +0100 | [diff] [blame] | 277 | # Check that the OLT and the ONUs are actually removed from the system |
| 278 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device Removed |
| 279 | ... ${olt_serial_number} |
| 280 | Run Keyword and Continue On Failure Validate all ONUS for OLT Removed ${num_all_onus} ${hosts} |
| 281 | ... ${olt_serial_number} ${timeout} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 282 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 283 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 284 | Run Keyword and Ignore Error Collect Logs |
| 285 | END |
| 286 | #Disable Device ${olt_device_id} |
| 287 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 288 | #... Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 289 | #... ${olt_serial_number} |
| 290 | |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 291 | # Validate ONUs |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 292 | #Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate ONUs After OLT Disable |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 293 | # Verify ONOS Flows |
| 294 | # Number of Access Flows on ONOS equals 4 * the Number of Active ONUs (2 for each downstream and upstream) |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 295 | #${onos_flows_count}= Evaluate 4 * ${num_all_onus} |
| 296 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 297 | #... Verify Subscriber Access Flows Added Count DT ${ONOS_SSH_IP} ${ONOS_SSH_PORT} |
| 298 | #... ${of_id} ${onos_flows_count} |
Hardik Windlass | fb5eace | 2020-03-26 14:49:01 +0530 | [diff] [blame] | 299 | # Verify VOLTHA Flows |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 300 | # Number of per OLT Flows equals Twice the Number of Active ONUs (each for downstream and upstream) + 1 for LLDP |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 301 | #${olt_flows}= Evaluate 2 * ${num_all_onus} + 1 |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 302 | # Number of per ONU Flows equals 2 (one each for downstream and upstream) |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 303 | #${onu_flows}= Set Variable 2 |
| 304 | #Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Flows ${olt_flows} |
| 305 | #${List_ONU_Serial} Create List |
| 306 | #Set Suite Variable ${List_ONU_Serial} |
| 307 | #Build ONU SN List ${List_ONU_Serial} |
| 308 | #Log ${List_ONU_Serial} |
| 309 | #Run Keyword Wait Until Keyword Succeeds ${timeout} 5s Validate ONU Flows |
| 310 | #... ${List_ONU_Serial} ${onu_flows} |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 311 | # Delete OLT and Validate Empty Device List |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 312 | #Delete Device ${olt_device_id} |
| 313 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Test Empty Device List |
| 314 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 315 | #... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 316 | #Run Keyword and Ignore Error Collect Logs |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 317 | # Re-do Setup (Recreate the OLT) and Perform Sanity Test DT |
| 318 | Run Keyword Setup |
Suchitra Vemuri | ae9cecb | 2020-03-12 12:59:14 -0700 | [diff] [blame] | 319 | Run Keyword If ${has_dataplane} Clean Up Linux |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 320 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT |
| 321 | #Run Keyword If ${has_dataplane} Clean Up Linux |
Hardik Windlass | aaea340 | 2020-03-10 19:45:45 +0530 | [diff] [blame] | 322 | |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 323 | Test Disable and Enable OLT for DT |
| 324 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 325 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
| 326 | ... Perform disable on the OLT and validate that the pings do not succeed |
| 327 | ... Perform enable on the OLT and validate that the pings are successful |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 328 | [Tags] functionalDt DisableEnableOLTDt |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 329 | [Setup] Start Logging DisableEnableOLTDt |
| 330 | [Teardown] Run Keywords Collect Logs |
| 331 | ... AND Stop Logging DisableEnableOLTDt |
| 332 | # Disable and Validate OLT Device |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 333 | FOR ${I} IN RANGE 0 ${olt_count} |
| 334 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 335 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 336 | ${rc} ${output}= Run and Return Rc and Output |
| 337 | ... ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id} |
| 338 | Should Be Equal As Integers ${rc} 0 |
| 339 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 340 | ... ${olt_serial_number} |
| 341 | END |
| 342 | #Disable Device ${olt_device_id} |
| 343 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 344 | #... Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 345 | #... ${olt_serial_number} |
| 346 | # Validate ONUs |
| 347 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 348 | ${src}= Set Variable ${hosts.src[${I}]} |
| 349 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 350 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 351 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 352 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 353 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
| 354 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
Suchitra Vemuri | 760bdd3 | 2020-06-17 12:34:48 -0700 | [diff] [blame] | 355 | ... Verify ONU Port Is Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${src['onu']} |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 356 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 357 | ... Wait Until Keyword Succeeds 60s 2s |
| 358 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 359 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 360 | # Remove Subscriber Access (To replicate DT workflow) |
| 361 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
| 362 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 363 | Sleep 10s |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 364 | # Delete ONU Device (To replicate DT workflow) |
| 365 | Delete Device ${onu_device_id} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 366 | Sleep 5s |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 367 | END |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 368 | Sleep 5s |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 369 | # Enable the OLT back and check ONU, OLT status are back to "ACTIVE" |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 370 | FOR ${I} IN RANGE 0 ${olt_count} |
| 371 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 372 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 373 | Enable Device ${olt_device_id} |
| 374 | Sleep 15s |
| 375 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 376 | ... ${olt_serial_number} |
| 377 | #TODO: Update for PON_OLT ETHERNET_NNI |
| 378 | #Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Port Types |
| 379 | #... PON_OLT ETHERNET_NNI |
| 380 | END |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 381 | # Waiting extra time for the ONUs to come up |
| 382 | Sleep 60s |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 383 | Run Keyword If ${has_dataplane} Clean Up Linux |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 384 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 385 | |
| 386 | Test Delete and ReAdd OLT for DT |
| 387 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 388 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
| 389 | ... Disable and Delete the OLT |
| 390 | ... Create/Enable the same OLT again |
| 391 | ... Validate DHCP/E2E pings succeed for all the ONUs connected to the OLT |
| 392 | [Tags] functionalDt DeleteReAddOLTDt |
| 393 | [Setup] Start Logging DeleteReAddOLTDt |
| 394 | [Teardown] Run Keywords Collect Logs |
| 395 | ... AND Stop Logging DeleteReAddOLTDt |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 396 | FOR ${I} IN RANGE 0 ${olt_count} |
| 397 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 398 | ${of_id}= Get ofID From OLT List ${olt_serial_number} |
| 399 | Delete Device and Verify ${olt_serial_number} |
| 400 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 401 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 402 | Run Keyword and Ignore Error Collect Logs |
| 403 | END |
| 404 | # Recreate the OLTs |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 405 | Setup |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 406 | Run Keyword If ${has_dataplane} Clean Up Linux |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 407 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT |
| 408 | |
| 409 | Test Disable ONUs and OLT Then Delete ONUs and OLT for DT |
| 410 | [Documentation] On deployed POD, disable the ONU, disable the OLT and then delete ONU and OLT. |
| 411 | ... This TC is to confirm that ONU removal is not impacting OLT |
| 412 | ... Devices will be removed during the execution of this TC |
| 413 | ... so calling setup at the end to add the devices back to avoid the confusion. |
| 414 | [Tags] functionalDt DisableDeleteONUOLTDt |
| 415 | [Setup] Start Logging DisableDeleteONUOLTDt |
| 416 | [Teardown] Run Keywords Collect Logs |
| 417 | ... AND Stop Logging DisableDeleteONUOLTDt |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 418 | #${olt_device_id}= Get Device ID From SN ${olt_serial_number} |
| 419 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 420 | ${src}= Set Variable ${hosts.src[${I}]} |
| 421 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 422 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 423 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 424 | ... Validate Device ENABLED ACTIVE |
| 425 | ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 426 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 427 | ... Validate OLT Device ENABLED ACTIVE |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 428 | ... REACHABLE ${src['olt']} |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 429 | Disable Device ${onu_device_id} |
| 430 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 431 | ... Validate Device DISABLED UNKNOWN |
| 432 | ... REACHABLE ${src['onu']} onu=false |
| 433 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 434 | ... Validate OLT Device ENABLED ACTIVE |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 435 | ... REACHABLE ${src['olt']} |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 436 | END |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 437 | #Disable Device ${olt_device_id} |
| 438 | # Disable all OLTs |
| 439 | FOR ${I} IN RANGE 0 ${olt_count} |
| 440 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 441 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 442 | ${rc} ${output}= Run and Return Rc and Output |
| 443 | ... ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id} |
| 444 | Should Be Equal As Integers ${rc} 0 |
| 445 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 446 | ... ${olt_serial_number} |
| 447 | END |
| 448 | # Validate ONUs after OLT disable |
| 449 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 450 | ${src}= Set Variable ${hosts.src[${I}]} |
| 451 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 452 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 453 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 454 | ... Validate Device DISABLED DISCOVERED |
| 455 | ... UNREACHABLE ${src['onu']} onu=false |
| 456 | Delete Device ${onu_device_id} |
| 457 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 458 | ... Validate OLT Device DISABLED UNKNOWN |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 459 | ... REACHABLE ${src['olt']} |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 460 | END |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 461 | # Delete all OLTs |
| 462 | Delete All Devices and Verify |
| 463 | |
| 464 | #Delete Device ${olt_device_id} |
| 465 | #TODO: Fix the following assertion |
| 466 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Test Empty Device List |
| 467 | #Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 468 | #... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 469 | |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 470 | # Re-do Setup (Recreate the OLT) and Perform Sanity Test DT |
| 471 | Run Keyword Setup |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 472 | Run Keyword If ${has_dataplane} Clean Up Linux |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 473 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT |
Hardik Windlass | 3b531fa | 2020-04-23 18:51:44 +0530 | [diff] [blame] | 474 | |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 475 | Data plane verification using TCP for DT |
| 476 | [Documentation] Test bandwidth profile is met and not exceeded for each subscriber. |
| 477 | ... Assumes iperf3 and jq installed on client and iperf -s running on DHCP server |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 478 | [Tags] dataplaneDt BandwidthProfileTCPDt VOL-3061 |
Andy Bavier | dfbcaef | 2020-05-27 15:34:18 -0700 | [diff] [blame] | 479 | [Setup] Start Logging BandwidthProfileTCPDt |
| 480 | [Teardown] Run Keywords Collect Logs |
| 481 | ... AND Stop Logging BandwidthProfileTCPDt |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 482 | Pass Execution If '${has_dataplane}'=='False' Bandwidth profile validation can be done only in |
| 483 | ... physical pod. Skipping this test in BBSIM. |
Suchitra Vemuri | a4e3e07 | 2020-11-06 14:23:47 -0800 | [diff] [blame] | 484 | Delete All Devices And Verify |
| 485 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 486 | setup |
| 487 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test DT |
| 488 | |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 489 | #${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS |
| 490 | #... ${olt_serial_number} |
| 491 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 492 | ${src}= Set Variable ${hosts.src[${I}]} |
| 493 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 494 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Andy Bavier | f6ab19c | 2020-05-14 10:34:47 -0700 | [diff] [blame] | 495 | # Check for iperf3 and jq tools |
| 496 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 497 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 498 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 499 | |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 500 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 501 | ... ${of_id} |
| 502 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 503 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 504 | ... upstreamBandwidthProfile |
| 505 | ${limiting_bw_value_upstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 506 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 507 | ... downstreamBandwidthProfile |
| 508 | ${limiting_bw_value_dnstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 509 | |
| 510 | # Stream TCP packets from RG to server |
| 511 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 512 | ... args=-t 30 |
| 513 | ${actual_upstream_bw_used}= Evaluate ${updict['end']['sum_received']['bits_per_second']}/1000 |
| 514 | |
| 515 | # Stream TCP packets from server to RG |
| 516 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 517 | ... args=-R -t 30 |
| 518 | ${actual_dnstream_bw_used}= Evaluate ${dndict['end']['sum_received']['bits_per_second']}/1000 |
| 519 | |
| 520 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 521 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 522 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 523 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 524 | |
| 525 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 526 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 527 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 528 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 529 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 530 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 531 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 532 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 533 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 534 | END |
| 535 | |
| 536 | Data plane verification using UDP for DT |
| 537 | [Documentation] Test bandwidth profile is met and not exceeded for each subscriber. |
| 538 | ... Assumes iperf3 and jq installed on client and iperf -s running on DHCP server |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 539 | [Tags] dataplaneDt BandwidthProfileUDPDt VOL-3061 |
Andy Bavier | dfbcaef | 2020-05-27 15:34:18 -0700 | [diff] [blame] | 540 | [Setup] Start Logging BandwidthProfileUDPDt |
| 541 | [Teardown] Run Keywords Collect Logs |
| 542 | ... AND Stop Logging BandwidthProfileUDPDt |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 543 | Pass Execution If '${has_dataplane}'=='False' Bandwidth profile validation can be done only in |
| 544 | ... physical pod. Skipping this test in BBSIM. |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 545 | #${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS |
| 546 | #... ${olt_serial_number} |
| 547 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 548 | ${src}= Set Variable ${hosts.src[${I}]} |
| 549 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 550 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 551 | |
| 552 | # Check for iperf3 and jq tools |
| 553 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 554 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 555 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 556 | |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 557 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 558 | ... ${of_id} |
| 559 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 560 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 561 | ... upstreamBandwidthProfile |
| 562 | ${limiting_bw_value_upstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 563 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 564 | ... downstreamBandwidthProfile |
| 565 | ${limiting_bw_value_dnstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 566 | |
| 567 | # Stream UDP packets from RG to server |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 568 | ${uprate}= Run Keyword If ${limiting_bw_value_upstream} != 1000000 |
| 569 | ... Evaluate ${limiting_bw_value_upstream}*${udp_rate_multiplier} |
Andrea Campanella | 580e049 | 2020-08-05 15:35:48 +0200 | [diff] [blame] | 570 | ... ELSE |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 571 | ... Set Variable ${limiting_bw_value_upstream} |
Andrea Campanella | 580e049 | 2020-08-05 15:35:48 +0200 | [diff] [blame] | 572 | |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 573 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
Andy Bavier | 7dc5062 | 2020-05-28 14:34:12 -0700 | [diff] [blame] | 574 | ... args=-u -b ${uprate}K -t 30 -l ${udp_packet_bytes} --pacing-timer 0 |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 575 | # With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput. |
| 576 | ${actual_upstream_bw_used}= Evaluate |
| 577 | ... (100 - ${updict['end']['sum']['lost_percent']})*${updict['end']['sum']['bits_per_second']}/100000 |
| 578 | |
| 579 | # Stream UDP packets from server to RG |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 580 | ${dnrate}= Run Keyword If ${limiting_bw_value_dnstream} != 1000000 |
| 581 | ... Evaluate ${limiting_bw_value_dnstream}*${udp_rate_multiplier} |
Andrea Campanella | 580e049 | 2020-08-05 15:35:48 +0200 | [diff] [blame] | 582 | ... ELSE |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 583 | ... Set Variable ${limiting_bw_value_dnstream} |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 584 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
Andy Bavier | 7dc5062 | 2020-05-28 14:34:12 -0700 | [diff] [blame] | 585 | ... args=-u -b ${dnrate}K -R -t 30 -l ${udp_packet_bytes} --pacing-timer 0 |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 586 | # With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput. |
| 587 | ${actual_dnstream_bw_used}= Evaluate |
| 588 | ... (100 - ${dndict['end']['sum']['lost_percent']})*${dndict['end']['sum']['bits_per_second']}/100000 |
| 589 | |
| 590 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 591 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 592 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 593 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 594 | |
| 595 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 596 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 597 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 598 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 599 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
Andy Bavier | e19991a | 2020-05-08 10:42:40 -0700 | [diff] [blame] | 600 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 601 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 602 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 603 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 604 | END |
| 605 | |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 606 | Validate parsing of data traffic through voltha using tech profile |
| 607 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 608 | ... Prerequisite tools : Tcpdump and Mausezahn traffic generator on both RG and DHCP/BNG VMs |
| 609 | ... Install jq tool to read json file, where test suite is being running |
| 610 | ... Make sure 9999 port is enabled or forwarded for both upsteam and downstream direction |
| 611 | ... This test sends UDP packets on port 9999 with pbits between 0 and 7 and validates that |
| 612 | ... the pbits are preserved by the PON. |
| 613 | [Tags] dataplaneDt TechProfileDt VOL-3291 |
| 614 | [Setup] Start Logging TechProfileDt |
| 615 | [Teardown] Run Keywords Collect Logs |
| 616 | ... AND Stop Logging TechProfileDt |
| 617 | Pass Execution If '${has_dataplane}'=='False' |
| 618 | ... Skipping test: Technology profile validation can be done only in physical pod |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 619 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 620 | ${src}= Set Variable ${hosts.src[${I}]} |
| 621 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 622 | |
Andy Bavier | 275414a | 2020-07-16 13:07:17 -0700 | [diff] [blame] | 623 | ${src_iface_name}= Fetch From Left ${src['dp_iface_name']} . |
| 624 | |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 625 | ${bng_ip}= Get Variable Value ${dst['noroot_ip']} |
| 626 | ${bng_user}= Get Variable Value ${dst['noroot_user']} |
| 627 | ${bng_pass}= Get Variable Value ${dst['noroot_pass']} |
| 628 | Pass Execution If "${bng_ip}" == "${NONE}" or "${bng_user}" == "${NONE}" or "${bng_pass}" == "${NONE}" |
| 629 | ... Skipping test: credentials for BNG login required in deployment config |
| 630 | |
| 631 | ${stdout} ${stderr} ${rc}= Execute Remote Command which mausezahn tcpdump |
| 632 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 633 | Pass Execution If ${rc} != 0 Skipping test: mausezahn / tcpdump not found on the RG |
| 634 | ${stdout} ${stderr} ${rc}= Execute Remote Command which mausezahn tcpdump |
| 635 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 636 | Pass Execution If ${rc} != 0 Skipping test: mausezahn / tcpdump not found on the BNG |
| 637 | Log Upstream test |
| 638 | Run Keyword If ${has_dataplane} Create traffic with each pbit and capture at other end |
Andy Bavier | 275414a | 2020-07-16 13:07:17 -0700 | [diff] [blame] | 639 | ... ${dst['dp_iface_ip_qinq']} ${dst['dp_iface_name']} ${src_iface_name} |
| 640 | ... 0 udp 9999 ${src['c_tag']} vlan |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 641 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 642 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 643 | Log Downstream test |
| 644 | ${rg_ip} ${stderr} ${rc}= Execute Remote Command |
| 645 | ... ifconfig ${src['dp_iface_name']} | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1 }' |
| 646 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 647 | Should Be Equal As Integers ${rc} 0 Could not get RG's IP address |
| 648 | Run Keyword If ${has_dataplane} Create traffic with each pbit and capture at other end |
Andy Bavier | 275414a | 2020-07-16 13:07:17 -0700 | [diff] [blame] | 649 | ... ${rg_ip} ${src_iface_name} ${dst['dp_iface_name']}.${src['s_tag']} |
Andy Bavier | 7613b9a | 2020-07-08 07:25:47 -0700 | [diff] [blame] | 650 | ... 0 udp 9999 ${src['c_tag']} udp |
| 651 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 652 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 653 | END |
| 654 | |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 655 | Test Disable and Enable OLT PON Port for DT |
| 656 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 657 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
| 658 | ... Perform disable on the OLT PON Port and validate that the pings do not succeed |
| 659 | ... Perform enable on the OLT PON Port and validate that the pings are successful |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 660 | [Tags] functionalDt DisableEnableOltPonPortDt VOL-2577 notready |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 661 | [Setup] Start Logging DisableEnableOltPonPortDt |
| 662 | [Teardown] Run Keywords Collect Logs |
| 663 | ... AND Stop Logging DisableEnableOltPonPortDt |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 664 | TODO: Fix the keywords and test later |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 665 | ${olt_pon_port_list}= Retrieve OLT PON Ports ${olt_device_id} |
| 666 | ${olt_pon_port_list_len}= Get Length ${olt_pon_port_list} |
| 667 | FOR ${INDEX0} IN RANGE 0 ${olt_pon_port_list_len} |
| 668 | ${olt_pon_port}= Get From List ${olt_pon_port_list} ${INDEX0} |
| 669 | ${olt_peer_list}= Retrieve Peer List From OLT PON Port ${olt_device_id} ${olt_pon_port} |
| 670 | # Disable the OLT PON Port and Validate OLT Device |
| 671 | DisableOrEnable OLT PON Port disable ${olt_device_id} ${olt_pon_port} |
| 672 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 673 | ... Validate OLT PON Port Status ${olt_device_id} ${olt_pon_port} |
| 674 | ... DISABLED DISCOVERED |
| 675 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 676 | ... Validate OLT Device ENABLED ACTIVE REACHABLE |
| 677 | ... ${olt_serial_number} |
| 678 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 679 | ... Validate ONUs for PON OLT Disable DT ${olt_peer_list} |
| 680 | Sleep 15s |
| 681 | # Enable the OLT PON Port back, and check ONU status are back to "ACTIVE" |
| 682 | DisableOrEnable OLT PON Port enable ${olt_device_id} ${olt_pon_port} |
| 683 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 684 | ... Validate OLT PON Port Status ${olt_device_id} ${olt_pon_port} |
| 685 | ... ENABLED ACTIVE |
| 686 | # Waiting extra time for the ONUs to come up |
| 687 | Sleep 60s |
| 688 | ${olt_peer_list_new}= Retrieve Peer List From OLT PON Port ${olt_device_id} ${olt_pon_port} |
| 689 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 690 | ... Validate ONUs for PON OLT Enable DT ${olt_peer_list_new} |
| 691 | END |
| 692 | |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 693 | *** Keywords *** |
| 694 | Setup Suite |
| 695 | [Documentation] Set up the test suite |
| 696 | Common Test Suite Setup |
Hung-Wei Chiu | cc6e655 | 2020-06-04 12:57:38 -0700 | [diff] [blame] | 697 | #Restore all ONUs |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 698 | #Run Keyword If ${has_dataplane} RestoreONUs ${num_all_onus} |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 699 | #power_switch.robot needs it to support different vendor's power switch |
| 700 | ${switch_type}= Get Variable Value ${web_power_switch.type} |
| 701 | Run Keyword If "${switch_type}"!="" Set Global Variable ${powerswitch_type} ${switch_type} |
Hardik Windlass | a3d04b9 | 2020-02-17 15:06:05 +0000 | [diff] [blame] | 702 | |
| 703 | Clear All Devices Then Create New Device |
| 704 | [Documentation] Remove any devices from VOLTHA and ONOS |
| 705 | # Remove all devices from voltha and nos |
| 706 | Delete All Devices and Verify |
| 707 | # Execute normal test Setup Keyword |
| 708 | Setup |
| 709 | |