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