David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 1 | # Copyright 2017 - present Open Networking Foundation |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 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. |
Matteo Scandolo | 1294aeb | 2019-09-24 16:20:32 -0700 | [diff] [blame] | 14 | # FIXME Can we use the same test against BBSim and Hardware? |
| 15 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 16 | *** Settings *** |
Zack Williams | ec53a1b | 2019-09-16 15:50:52 -0700 | [diff] [blame] | 17 | Documentation Test various end-to-end scenarios |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 18 | Suite Setup Setup Suite |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 19 | Test Setup Setup |
| 20 | Test Teardown Teardown |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 21 | Suite Teardown Teardown Suite |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 22 | Library Collections |
| 23 | Library String |
| 24 | Library OperatingSystem |
| 25 | Library XML |
| 26 | Library RequestsLibrary |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 27 | Library ../../libraries/DependencyLibrary.py |
Suchitra Vemuri | b8ed2d5 | 2019-09-30 13:22:51 -0700 | [diff] [blame] | 28 | Resource ../../libraries/onos.robot |
| 29 | Resource ../../libraries/voltctl.robot |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 30 | Resource ../../libraries/voltha.robot |
Suchitra Vemuri | b8ed2d5 | 2019-09-30 13:22:51 -0700 | [diff] [blame] | 31 | Resource ../../libraries/utils.robot |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 32 | Resource ../../libraries/k8s.robot |
Suchitra Vemuri | b8ed2d5 | 2019-09-30 13:22:51 -0700 | [diff] [blame] | 33 | Resource ../../variables/variables.robot |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 34 | Resource ../../libraries/power_switch.robot |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 35 | |
| 36 | *** Variables *** |
Zack Williams | ec53a1b | 2019-09-16 15:50:52 -0700 | [diff] [blame] | 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 |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 44 | ${NAMESPACE} voltha |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 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 |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 47 | ${RESTART_POD_NAME} radius |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 48 | ${timeout} 60s |
Zack Williams | ec53a1b | 2019-09-16 15:50:52 -0700 | [diff] [blame] | 49 | ${of_id} 0 |
| 50 | ${logical_id} 0 |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 51 | ${has_dataplane} True |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 52 | ${teardown_device} False |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 53 | ${scripts} ../../scripts |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 54 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 55 | # For dataplane bandwidth testing |
| 56 | ${upper_margin_pct} 105 # Allow 5% over the limit |
Andy Bavier | f6ab19c | 2020-05-14 10:34:47 -0700 | [diff] [blame] | 57 | ${lower_margin_pct} 92 # Allow 8% under the limit |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 58 | ${udp_rate_multiplier} 1.10 # Send UDP at bw profile limit * rate_multiplier |
| 59 | ${udp_packet_bytes} 1400 # UDP payload in bytes |
| 60 | |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 61 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 62 | ${container_log_dir} ${None} |
| 63 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 64 | *** Test Cases *** |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 65 | Reboot ONUs Physically |
| 66 | [Documentation] This test reboots ONUs physically before execution all the tests |
| 67 | ... Test case runs only on the PODs that are configured with PowerSwitch that |
| 68 | ... controls the power off/on ONUs/OLT remotely (simulating a physical reboot) |
| 69 | [Tags] functional PowerSwitch RebootAllONUs |
| 70 | [Setup] Start Logging RebootAllONUs |
| 71 | [Teardown] Run Keywords Collect Logs |
| 72 | ... AND Stop Logging RebootAllONUs |
| 73 | Power Switch Connection Suite ${web_power_switch.ip} ${web_power_switch.user} ${web_power_switch.password} |
| 74 | FOR ${I} IN RANGE 0 ${num_onus} |
| 75 | ${src}= Set Variable ${hosts.src[${I}]} |
| 76 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 77 | Disable Switch Outlet ${src['power_switch_port']} |
| 78 | Sleep 60s |
| 79 | Enable Switch Outlet ${src['power_switch_port']} |
| 80 | Sleep 60s |
| 81 | END |
| 82 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 83 | Sanity E2E Test for OLT/ONU on POD |
| 84 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 85 | ... Validate successful authentication/DHCP/E2E ping for the tech profile that is used |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 86 | [Tags] sanity test1 |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 87 | [Setup] Run Keywords Start Logging SanityTest |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 88 | ... AND Setup |
| 89 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 90 | ... AND Stop Logging SanityTest |
Suchitra Vemuri | c5295a3 | 2019-12-15 20:32:04 -0800 | [diff] [blame] | 91 | Run Keyword If ${has_dataplane} Clean Up Linux |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 92 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 93 | |
Hema | 93762cf | 2020-01-29 19:59:28 +0530 | [diff] [blame] | 94 | Test Disable and Enable OLT |
| 95 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 96 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 97 | ... Perform disable on the OLT and validate that the pings do not succeed |
| 98 | ... Perform enable on the OLT and validate that the pings are successful |
Suchitra Vemuri | 14c9a03 | 2020-05-27 14:01:08 -0700 | [diff] [blame] | 99 | [Tags] functional VOL-2410 DisableEnableOLT notready |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 100 | [Setup] Start Logging DisableEnableOLT |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 101 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 102 | ... AND Stop Logging DisableEnableOLT |
Hema | 93762cf | 2020-01-29 19:59:28 +0530 | [diff] [blame] | 103 | #Disable the OLT and verify the OLT/ONUs are disabled properly |
| 104 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id} |
| 105 | Should Be Equal As Integers ${rc} 0 |
| 106 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 107 | ... ${olt_serial_number} |
| 108 | FOR ${I} IN RANGE 0 ${num_onus} |
| 109 | ${src}= Set Variable ${hosts.src[${I}]} |
| 110 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 111 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 112 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 113 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} |
Hema | 93762cf | 2020-01-29 19:59:28 +0530 | [diff] [blame] | 114 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED DISCOVERED |
| 115 | ... UNREACHABLE ${src['onu']} onu=false |
| 116 | #Verify that ping fails |
TorstenThieme | 754fec7 | 2020-02-18 07:24:46 +0000 | [diff] [blame] | 117 | Run Keyword If ${has_dataplane} |
| 118 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s |
Hema | 93762cf | 2020-01-29 19:59:28 +0530 | [diff] [blame] | 119 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
Andrea Campanella | a6e1732 | 2020-05-04 14:31:44 +0200 | [diff] [blame] | 120 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 121 | # Remove Subscriber Access (To replicate ATT workflow) |
| 122 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
| 123 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Hema | 93762cf | 2020-01-29 19:59:28 +0530 | [diff] [blame] | 124 | END |
| 125 | #Enable the OLT back and check ONU, OLT status are back to "ACTIVE" |
| 126 | Enable Device ${olt_device_id} |
| 127 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 128 | ... ${olt_serial_number} |
Hema | f64d34c | 2020-03-25 00:40:17 +0530 | [diff] [blame] | 129 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Port Types |
| 130 | ... PON_OLT ETHERNET_NNI |
Hardik Windlass | 7c801e6 | 2020-05-04 19:33:21 +0530 | [diff] [blame] | 131 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 132 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Hema | 93762cf | 2020-01-29 19:59:28 +0530 | [diff] [blame] | 133 | |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 134 | Test Disable and Enable ONU |
| 135 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 136 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 137 | ... Perform disable on the ONUs and validate that the pings do not succeed |
| 138 | ... Perform enable on the ONUs and validate that the pings are successful |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 139 | [Tags] functional DisableEnableONU released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 140 | [Setup] Start Logging DisableEnableONU |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 141 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 142 | ... AND Stop Logging DisableEnableONU |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 143 | FOR ${I} IN RANGE 0 ${num_onus} |
| 144 | ${src}= Set Variable ${hosts.src[${I}]} |
| 145 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 146 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 147 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 148 | ... ${of_id} |
| 149 | Disable Device ${onu_device_id} |
Andy Bavier | 46c8be3 | 2020-01-21 10:06:27 -0700 | [diff] [blame] | 150 | Wait Until Keyword Succeeds 20s 2s Test Devices Disabled in VOLTHA Id=${onu_device_id} |
Andy Bavier | 33e6dd3 | 2020-01-16 13:35:20 -0700 | [diff] [blame] | 151 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 152 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 153 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 154 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 155 | Enable Device ${onu_device_id} |
| 156 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 157 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 158 | # Verify subscriber access flows are added for the ONU port |
| 159 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 160 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 161 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
Andy Bavier | 33e6dd3 | 2020-01-16 13:35:20 -0700 | [diff] [blame] | 162 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 163 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 164 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 165 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 166 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 167 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 168 | END |
| 169 | |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 170 | Test Subscriber Delete and Add |
| 171 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 172 | ... Assuming that all the ONUs are authenticated/DHCP/pingable |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 173 | ... Delete a subscriber and validate that the pings do not succeed |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 174 | ... Re-add the subscriber and validate that the pings are successful |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 175 | [Tags] functional SubAddDelete released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 176 | [Setup] Start Logging SubAddDelete |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 177 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 178 | ... AND Stop Logging SubAddDelete |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 179 | FOR ${I} IN RANGE 0 ${num_onus} |
| 180 | ${src}= Set Variable ${hosts.src[${I}]} |
| 181 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 182 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 183 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 184 | ... ${of_id} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 185 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 186 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
| 187 | Sleep 10s |
Suchitra Vemuri | 9da4430 | 2020-03-04 14:24:49 -0800 | [diff] [blame] | 188 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 189 | ... Verify No Pending Flows For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Andy Bavier | 33e6dd3 | 2020-01-16 13:35:20 -0700 | [diff] [blame] | 190 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 191 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 192 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 193 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 194 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 195 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 196 | Sleep 10s |
| 197 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
Suchitra Vemuri | 9da4430 | 2020-03-04 14:24:49 -0800 | [diff] [blame] | 198 | ... Verify No Pending Flows For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 199 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 200 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 201 | # Verify subscriber access flows are added for the ONU port |
| 202 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 203 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 204 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
Andy Bavier | 33e6dd3 | 2020-01-16 13:35:20 -0700 | [diff] [blame] | 205 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 206 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 207 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 208 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 209 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 210 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 211 | END |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 212 | |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 213 | Check DHCP attempt fails when subscriber is not added |
| 214 | [Documentation] Validates when removed subscriber access, DHCP attempt, ping fails and |
| 215 | ... when again added subscriber access, DHCP attempt, ping succeeds |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 216 | ... Assuming that test1 or sanity test was executed where all the ONUs are authenticated/DHCP/pingable |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 217 | [Tags] functional SubsRemoveDHCP released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 218 | [Setup] Start Logging SubsRemoveDHCP |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 219 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 220 | ... AND Stop Logging SubsRemoveDHCP |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 221 | FOR ${I} IN RANGE 0 ${num_onus} |
| 222 | ${src}= Set Variable ${hosts.src[${I}]} |
| 223 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 224 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 225 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 226 | ... ${of_id} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 227 | Run Keyword And Ignore Error Login And Run Command On Remote System killall dhclient ${src['ip']} |
| 228 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 229 | Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']} |
| 230 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 231 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 232 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 8f1d306 | 2020-02-28 11:57:37 -0800 | [diff] [blame] | 233 | Sleep 15s |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 234 | Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']} |
| 235 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 236 | Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds ${timeout} 2s |
| 237 | ... Delete IP Addresses from Interface on Remote Host ${src['dp_iface_name']} ${src['ip']} |
| 238 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 239 | Run Keyword And Ignore Error Login And Run Command On Remote System |
| 240 | ... ifconfig | grep -A 10 ens ${src['ip']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 241 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 242 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping False |
| 243 | ... False ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 244 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 245 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 246 | ... ${dst['container_name']} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 247 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 248 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 40fdf3c | 2020-05-28 23:41:03 -0700 | [diff] [blame] | 249 | Sleep 10s |
Suchitra Vemuri | 9da4430 | 2020-03-04 14:24:49 -0800 | [diff] [blame] | 250 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 251 | ... Verify No Pending Flows For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 252 | # Verify subscriber access flows are added for the ONU port |
| 253 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 254 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 255 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 256 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 257 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 258 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 259 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 260 | ... ${dst['container_name']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 261 | Run Keyword and Ignore Error Collect Logs |
| 262 | END |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 263 | |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 264 | Test Disable and Enable ONU scenario for ATT workflow |
| 265 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 266 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 267 | ... Perform disable on the ONUs, call volt-remove-subscriber and validate that the pings do not succeed |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 268 | ... Perform enable on the ONUs, authentication check, volt-add-subscriber-access and |
| 269 | ... validate that the pings are successful |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 270 | ... VOL-2284 |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 271 | [Tags] functional ATT_DisableEnableONU released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 272 | [Setup] Start Logging ATT_DisableEnableONU |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 273 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 274 | ... AND Stop Logging ATT_DisableEnableONU |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 275 | FOR ${I} IN RANGE 0 ${num_onus} |
| 276 | ${src}= Set Variable ${hosts.src[${I}]} |
| 277 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 278 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 279 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 280 | ... ${of_id} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 281 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 120s 2s |
Suchitra Vemuri | 760bdd3 | 2020-06-17 12:34:48 -0700 | [diff] [blame] | 282 | ... Verify ONU Port Is Enabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${src['onu']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 283 | Disable Device ${onu_device_id} |
Suchitra Vemuri | 3158f3c | 2020-05-28 17:58:26 -0700 | [diff] [blame] | 284 | Sleep 10s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 285 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 286 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 287 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 288 | ... Wait Until Keyword Succeeds 60s 2s Check Ping |
| 289 | ... False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 290 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 291 | ... ELSE sleep 60s |
| 292 | Enable Device ${onu_device_id} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 293 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 294 | ... ${ONOS_SSH_PORT} ${onu_port} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 295 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 296 | ... Validate Authentication After Reassociate True |
| 297 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 298 | ... ${src['container_type']} ${src['container_name']} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 299 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${ONOS_SSH_IP} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 300 | ... ${ONOS_SSH_PORT} ${onu_port} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 301 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 302 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 3158f3c | 2020-05-28 17:58:26 -0700 | [diff] [blame] | 303 | Sleep 10s |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 304 | # Verify subscriber access flows are added for the ONU port |
| 305 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 306 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 307 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 308 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
Andy Bavier | 08ae585 | 2019-12-19 09:12:42 -0700 | [diff] [blame] | 309 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 310 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 311 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 312 | ... ${dst['container_name']} |
| 313 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 314 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 315 | Run Keyword and Ignore Error Collect Logs |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 316 | END |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 317 | |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 318 | Delete OLT, ReAdd OLT and Perform Sanity Test |
| 319 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 320 | ... Disable and Delete the OLT |
| 321 | ... Create/Enable the same OLT again |
| 322 | ... Validate authentication/DHCP/E2E pings succeed for all the ONUs connected to the OLT |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 323 | [Tags] functional DeleteOLT released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 324 | [Setup] Start Logging DeleteOLT |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 325 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 326 | ... AND Stop Logging DeleteOLT |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 327 | Run Keyword If ${has_dataplane} Clean Up Linux |
Hardik Windlass | 480f3e2 | 2020-04-02 20:14:14 +0530 | [diff] [blame] | 328 | Delete Device and Verify |
| 329 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 330 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 331 | Run Keyword and Ignore Error Collect Logs |
| 332 | # Recreate the OLT |
Hardik Windlass | 480f3e2 | 2020-04-02 20:14:14 +0530 | [diff] [blame] | 333 | Setup |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 334 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 335 | |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 336 | Check Mib State on OLT recreation after ONU, OLT deletion |
| 337 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable, |
| 338 | ... Disable and Delete the ONU, Disable and Delete the OLT |
| 339 | ... Create/Enable the OLT again and Check for the Mib State of the ONUs |
| 340 | [Tags] functional CheckMibState notready |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 341 | [Setup] Start Logging CheckMibState |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 342 | [Teardown] Run Keywords Collect Logs |
| 343 | ... AND Stop Logging CheckMibState |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 344 | #Disable and Delete the ONU |
| 345 | FOR ${I} IN RANGE 0 ${num_onus} |
| 346 | ${src}= Set Variable ${hosts.src[${I}]} |
| 347 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 348 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 349 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 350 | ... ${of_id} |
| 351 | Disable Device ${onu_device_id} |
| 352 | Wait Until Keyword Succeeds 20s 2s Test Devices Disabled in VOLTHA Id=${onu_device_id} |
| 353 | Delete Device ${onu_device_id} |
| 354 | END |
| 355 | #Disable and Delete the OLT |
Hardik Windlass | 480f3e2 | 2020-04-02 20:14:14 +0530 | [diff] [blame] | 356 | Delete Device and Verify |
| 357 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 358 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 359 | # Recreate the OLT |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 360 | Run Keyword If ${has_dataplane} Sleep 180s |
| 361 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 362 | Set Suite Variable ${olt_device_id} |
| 363 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED |
| 364 | ... UNKNOWN UNKNOWN ${olt_device_id} |
| 365 | Enable Device ${olt_device_id} |
| 366 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 367 | ... ${olt_serial_number} |
| 368 | #Check for the ONU status and ONU Mib State should be "omci-flows-pushed" |
| 369 | FOR ${I} IN RANGE 0 ${num_onus} |
| 370 | ${src}= Set Variable ${hosts.src[${I}]} |
| 371 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 372 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 373 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 374 | ... ${of_id} |
| 375 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE |
| 376 | ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 377 | END |
| 378 | |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 379 | Test disable ONUs and OLT then delete ONUs and OLT |
| 380 | [Documentation] On deployed POD, disable the ONU, disable the OLT and then delete ONU and OLT. |
| 381 | ... This TC is to confirm that ONU removal is not impacting OLT |
| 382 | ... Devices will be removed during the execution of this TC |
| 383 | ... so calling setup at the end to add the devices back to avoid the confusion. |
Suchitra Vemuri | a7dae32 | 2020-02-19 22:38:18 -0800 | [diff] [blame] | 384 | [Tags] functional VOL-2354 DisableDeleteONUandOLT released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 385 | [Setup] Start Logging DisableDeleteONUandOLT |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 386 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 387 | ... AND Stop Logging DisableDeleteONUandOLT |
Suchitra Vemuri | ba4f371 | 2020-01-24 16:18:26 -0800 | [diff] [blame] | 388 | ${olt_device_id}= Get Device ID From SN ${olt_serial_number} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 389 | FOR ${I} IN RANGE 0 ${num_onus} |
| 390 | ${src}= Set Variable ${hosts.src[${I}]} |
| 391 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 392 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 393 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 394 | ... Validate Device ENABLED ACTIVE |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 395 | ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 396 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 397 | ... Validate OLT Device ENABLED ACTIVE |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 398 | ... REACHABLE ${olt_serial_number} |
| 399 | ${rc} ${output}= Run and Return Rc and Output |
| 400 | ... ${VOLTCTL_CONFIG}; voltctl device disable ${onu_device_id} |
| 401 | Should Be Equal As Integers ${rc} 0 |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 402 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 403 | ... Validate Device DISABLED UNKNOWN |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 404 | ... REACHABLE ${src['onu']} onu=false |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 405 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 406 | ... Validate OLT Device ENABLED ACTIVE |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 407 | ... REACHABLE ${olt_serial_number} |
| 408 | END |
| 409 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id} |
| 410 | Should Be Equal As Integers ${rc} 0 |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 411 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 412 | ... Validate OLT Device DISABLED UNKNOWN REACHABLE |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 413 | ... ${olt_serial_number} |
| 414 | FOR ${I} IN RANGE 0 ${num_onus} |
| 415 | ${src}= Set Variable ${hosts.src[${I}]} |
| 416 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 417 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 418 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 419 | ... Validate Device DISABLED DISCOVERED |
| 420 | ... UNREACHABLE ${src['onu']} onu=false |
Hardik Windlass | 7da42ca | 2020-03-13 14:25:44 +0530 | [diff] [blame] | 421 | Delete Device ${onu_device_id} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 422 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 423 | ... Validate OLT Device DISABLED UNKNOWN |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 424 | ... REACHABLE ${olt_serial_number} |
| 425 | END |
Hardik Windlass | 7da42ca | 2020-03-13 14:25:44 +0530 | [diff] [blame] | 426 | Delete Device ${olt_device_id} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 427 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Test Empty Device List |
Hardik Windlass | 480f3e2 | 2020-04-02 20:14:14 +0530 | [diff] [blame] | 428 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 429 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 430 | |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 431 | Validate authentication on a disabled ONU |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 432 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 433 | ... Perform disable on the ONUs and validate that the authentication do not succeed |
| 434 | ... Perform enable on the ONUs and validate that authentication successful |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 435 | [Tags] functional DisableONU_AuthCheck |
| 436 | # Creates Devices in the Setup |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 437 | [Setup] Run Keywords Start Logging DisableONU_AuthCheck |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 438 | ... AND Setup |
| 439 | [Teardown] Run Keywords Collect Logs |
| 440 | ... AND Stop Logging DisableONU_AuthCheck |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 441 | ... AND Delete Device and Verify |
| 442 | Run Keyword and Ignore Error Collect Logs |
| 443 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 444 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 445 | Clean WPA Process |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 446 | FOR ${I} IN RANGE 0 ${num_onus} |
| 447 | ${src}= Set Variable ${hosts.src[${I}]} |
| 448 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 449 | Run Keyword and Ignore Error Collect Logs |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 450 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 451 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 452 | ... ${of_id} |
| 453 | Disable Device ${onu_device_id} |
| 454 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device DISABLED UNKNOWN |
| 455 | ... REACHABLE ${src['onu']} onu=false |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 456 | ${wpa_log}= Run Keyword If ${has_dataplane} Catenate SEPARATOR=. |
| 457 | ... /tmp/wpa ${src['dp_iface_name']} log |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 458 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication False |
| 459 | ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']} |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 460 | ... ${src['container_type']} ${src['container_name']} ${wpa_log} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 461 | Enable Device ${onu_device_id} |
| 462 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src['ip']} |
| 463 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 464 | Run Keyword and Ignore Error Collect Logs |
| 465 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 466 | ... ENABLED ACTIVE REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 467 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True |
| 468 | ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']} |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 469 | ... ${src['container_type']} ${src['container_name']} ${wpa_log} |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 470 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 471 | END |
| 472 | Run Keyword and Ignore Error Collect Logs |
| 473 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 474 | Data plane verification using TCP |
| 475 | [Documentation] Test bandwidth profile is met and not exceeded for each subscriber. |
| 476 | ... Assumes iperf3 and jq installed on client and iperf -s running on DHCP server |
Andy Bavier | bbac419 | 2020-06-29 21:42:10 -0700 | [diff] [blame] | 477 | [Tags] dataplane BandwidthProfileTCP VOL-2052 |
Andy Bavier | dfbcaef | 2020-05-27 15:34:18 -0700 | [diff] [blame] | 478 | [Setup] Start Logging BandwidthProfileTCP |
| 479 | [Teardown] Run Keywords Collect Logs |
| 480 | ... AND Stop Logging BandwidthProfileTCP |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 481 | Pass Execution If '${has_dataplane}'=='False' |
| 482 | ... Bandwidth profile validation can be done only in physical pod. Skipping this test in BBSIM. |
Andy Bavier | d74f33c | 2020-05-12 12:45:36 -0700 | [diff] [blame] | 483 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 484 | FOR ${I} IN RANGE 0 ${num_onus} |
| 485 | ${src}= Set Variable ${hosts.src[${I}]} |
| 486 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Andy Bavier | f6ab19c | 2020-05-14 10:34:47 -0700 | [diff] [blame] | 487 | |
| 488 | # Check for iperf3 and jq tools |
| 489 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 490 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 491 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 492 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 493 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 494 | ... ${of_id} |
| 495 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 496 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 497 | ... upstreamBandwidthProfile |
| 498 | ${limiting_bw_value_upstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 499 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 500 | ... downstreamBandwidthProfile |
| 501 | ${limiting_bw_value_dnstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 502 | |
| 503 | # Stream TCP packets from RG to server |
| 504 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 505 | ... args=-t 30 |
| 506 | ${actual_upstream_bw_used}= Evaluate ${updict['end']['sum_received']['bits_per_second']}/1000 |
| 507 | |
| 508 | # Stream TCP packets from server to RG |
| 509 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 510 | ... args=-R -t 30 |
| 511 | ${actual_dnstream_bw_used}= Evaluate ${dndict['end']['sum_received']['bits_per_second']}/1000 |
| 512 | |
| 513 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 514 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 515 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 516 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 517 | |
| 518 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 519 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 520 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 521 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 522 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 523 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 524 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 525 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 526 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 527 | END |
| 528 | |
| 529 | Data plane verification using UDP |
| 530 | [Documentation] Test bandwidth profile is met and not exceeded for each subscriber. |
| 531 | ... Assumes iperf3 and jq installed on client and iperf -s running on DHCP server |
Andy Bavier | bbac419 | 2020-06-29 21:42:10 -0700 | [diff] [blame] | 532 | [Tags] dataplane BandwidthProfileUDP VOL-2052 |
Andy Bavier | dfbcaef | 2020-05-27 15:34:18 -0700 | [diff] [blame] | 533 | [Setup] Start Logging BandwidthProfileUDP |
| 534 | [Teardown] Run Keywords Collect Logs |
| 535 | ... AND Stop Logging BandwidthProfileUDP |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 536 | Pass Execution If '${has_dataplane}'=='False' |
| 537 | ... Bandwidth profile validation can be done only in physical pod. Skipping this test in BBSIM. |
Andy Bavier | d74f33c | 2020-05-12 12:45:36 -0700 | [diff] [blame] | 538 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 539 | FOR ${I} IN RANGE 0 ${num_onus} |
| 540 | ${src}= Set Variable ${hosts.src[${I}]} |
| 541 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Andy Bavier | d59f977 | 2020-07-01 12:00:42 -0700 | [diff] [blame] | 542 | |
| 543 | # Check for iperf3 and jq tools |
| 544 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 545 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 546 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 547 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 548 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 549 | ... ${of_id} |
| 550 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 551 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 552 | ... upstreamBandwidthProfile |
| 553 | ${limiting_bw_value_upstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 554 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 555 | ... downstreamBandwidthProfile |
| 556 | ${limiting_bw_value_dnstream} Get Bandwidth Details ${bandwidth_profile_name} |
| 557 | |
| 558 | # Stream UDP packets from RG to server |
| 559 | ${uprate}= Evaluate ${limiting_bw_value_upstream}*${udp_rate_multiplier} |
| 560 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
Andy Bavier | 7dc5062 | 2020-05-28 14:34:12 -0700 | [diff] [blame] | 561 | ... args=-u -b ${uprate}K -t 30 -l ${udp_packet_bytes} --pacing-timer 0 |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 562 | # With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput. |
| 563 | ${actual_upstream_bw_used}= Evaluate |
| 564 | ... (100 - ${updict['end']['sum']['lost_percent']})*${updict['end']['sum']['bits_per_second']}/100000 |
| 565 | |
| 566 | # Stream UDP packets from server to RG |
| 567 | ${dnrate}= Evaluate ${limiting_bw_value_dnstream}*${udp_rate_multiplier} |
| 568 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
Andy Bavier | 7dc5062 | 2020-05-28 14:34:12 -0700 | [diff] [blame] | 569 | ... args=-u -b ${dnrate}K -R -t 30 -l ${udp_packet_bytes} --pacing-timer 0 |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 570 | # With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput. |
| 571 | ${actual_dnstream_bw_used}= Evaluate |
| 572 | ... (100 - ${dndict['end']['sum']['lost_percent']})*${dndict['end']['sum']['bits_per_second']}/100000 |
| 573 | |
| 574 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 575 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 576 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 577 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 578 | |
| 579 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 580 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 581 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 582 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 583 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 584 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 585 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 586 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 587 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 588 | END |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 589 | |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 590 | Validate parsing of data traffic through voltha using tech profile |
| 591 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 592 | ... Prerequisite tools : Tcpdump and Mausezahn traffic generator on both RG and DHCP/BNG VMs |
| 593 | ... Install jq tool to read json file, where test suite is being running |
| 594 | ... Make sure 9999 port is enabled or forwarded for both upsteam and downstream direction |
| 595 | ... This test sends UDP packets on port 9999 with pbits between 0 and 7 and validates that |
| 596 | ... the pbits are preserved by the PON. |
Andy Bavier | bbac419 | 2020-06-29 21:42:10 -0700 | [diff] [blame] | 597 | [Tags] dataplane TechProfile VOL-2054 |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 598 | [Setup] Start Logging TechProfile |
| 599 | [Teardown] Run Keywords Collect Logs |
| 600 | ... AND Stop Logging TechProfile |
| 601 | Pass Execution If '${has_dataplane}'=='False' |
| 602 | ... Skipping test: Technology profile validation can be done only in physical pod |
| 603 | FOR ${I} IN RANGE 0 ${num_onus} |
| 604 | ${src}= Set Variable ${hosts.src[${I}]} |
| 605 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 606 | |
| 607 | ${bng_ip}= Get Variable Value ${dst['noroot_ip']} |
| 608 | ${bng_user}= Get Variable Value ${dst['noroot_user']} |
| 609 | ${bng_pass}= Get Variable Value ${dst['noroot_pass']} |
Andy Bavier | f4b7d1d | 2020-06-30 11:14:04 -0700 | [diff] [blame] | 610 | Pass Execution If "${bng_ip}" == "${NONE}" or "${bng_user}" == "${NONE}" or "${bng_pass}" == "${NONE}" |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 611 | ... Skipping test: credentials for BNG login required in deployment config |
| 612 | |
| 613 | ${stdout} ${stderr} ${rc}= Execute Remote Command which mausezahn tcpdump |
| 614 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 615 | Pass Execution If ${rc} != 0 Skipping test: mausezahn / tcpdump not found on the RG |
| 616 | ${stdout} ${stderr} ${rc}= Execute Remote Command which mausezahn tcpdump |
| 617 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 618 | Pass Execution If ${rc} != 0 Skipping test: mausezahn / tcpdump not found on the BNG |
| 619 | Log Upstream test |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 620 | Run Keyword If ${has_dataplane} Create traffic with each pbit and capture at other end |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 621 | ... ${dst['dp_iface_ip_qinq']} ${dst['dp_iface_name']} ${src['dp_iface_name']} |
| 622 | ... 0 udp 9999 0 vlan |
| 623 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 624 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 625 | Log Downstream test |
| 626 | ${rg_ip} ${stderr} ${rc}= Execute Remote Command |
| 627 | ... ifconfig ${src['dp_iface_name']} | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1 }' |
| 628 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 629 | Should Be Equal As Integers ${rc} 0 Could not get RG's IP address |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 630 | Run Keyword If ${has_dataplane} Create traffic with each pbit and capture at other end |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 631 | ... ${rg_ip} ${src['dp_iface_name']} ${dst['dp_iface_name']}.${src['s_tag']} |
| 632 | ... 0 udp 9999 ${src['c_tag']} udp |
| 633 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 634 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 635 | END |
| 636 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 637 | *** Keywords *** |
| 638 | Setup Suite |
Andy Bavier | 88cd9f6 | 2019-11-26 16:22:33 -0700 | [diff] [blame] | 639 | [Documentation] Set up the test suite |
| 640 | Common Test Suite Setup |
Hung-Wei Chiu | cc6e655 | 2020-06-04 12:57:38 -0700 | [diff] [blame] | 641 | #Restore all ONUs |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 642 | #Run Keyword If ${has_dataplane} RestoreONUs ${num_onus} |
| 643 | #power_switch.robot needs it to support different vendor's power switch |
| 644 | ${switch_type}= Get Variable Value ${web_power_switch.type} |
| 645 | Run Keyword If "${switch_type}"!="" Set Global Variable ${powerswitch_type} ${switch_type} |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 646 | |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 647 | Clear All Devices Then Create New Device |
| 648 | [Documentation] Remove any devices from VOLTHA and ONOS |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 649 | # Remove all devices from voltha and nos |
| 650 | Delete All Devices and Verify |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 651 | # Execute normal test Setup Keyword |
| 652 | Setup |