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 |
Andrea Campanella | 86e2406 | 2020-08-05 19:09:18 +0200 | [diff] [blame] | 51 | ${uprate} 0 |
| 52 | ${dnrate} 0 |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 53 | ${has_dataplane} True |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 54 | ${teardown_device} False |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 55 | ${scripts} ../../scripts |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 56 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [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 |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [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 |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 62 | |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 63 | # Per-test logging on failure is turned off by default; set this variable to enable |
| 64 | ${container_log_dir} ${None} |
| 65 | |
Matteo Scandolo | da1c64b | 2021-07-20 10:14:49 -0700 | [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 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 70 | *** Test Cases *** |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 71 | Reboot ONUs Physically |
| 72 | [Documentation] This test reboots ONUs physically before execution all the tests |
| 73 | ... Test case runs only on the PODs that are configured with PowerSwitch that |
| 74 | ... controls the power off/on ONUs/OLT remotely (simulating a physical reboot) |
| 75 | [Tags] functional PowerSwitch RebootAllONUs |
| 76 | [Setup] Start Logging RebootAllONUs |
| 77 | [Teardown] Run Keywords Collect Logs |
| 78 | ... AND Stop Logging RebootAllONUs |
| 79 | 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] | 80 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 81 | ${src}= Set Variable ${hosts.src[${I}]} |
| 82 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 83 | Disable Switch Outlet ${src['power_switch_port']} |
Hardik Windlass | 5e214b2 | 2021-02-26 10:37:14 +0000 | [diff] [blame] | 84 | Sleep 10s |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 85 | Enable Switch Outlet ${src['power_switch_port']} |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 86 | END |
| 87 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 88 | Sanity E2E Test for OLT/ONU on POD |
| 89 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 90 | ... 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] | 91 | [Tags] sanity test1 |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 92 | [Setup] Run Keywords Start Logging SanityTest |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 93 | ... AND Setup |
| 94 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 95 | ... AND Stop Logging SanityTest |
Suchitra Vemuri | c5295a3 | 2019-12-15 20:32:04 -0800 | [diff] [blame] | 96 | Run Keyword If ${has_dataplane} Clean Up Linux |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 97 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 98 | |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 99 | Test Disable and Enable ONU |
| 100 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 101 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 102 | ... Perform disable on the ONUs and validate that the pings do not succeed |
| 103 | ... Perform enable on the ONUs and validate that the pings are successful |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 104 | [Tags] functional DisableEnableONU released multi-uni |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 105 | [Setup] Start Logging DisableEnableONU |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 106 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 107 | ... AND Stop Logging DisableEnableONU |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 108 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 109 | ${src}= Set Variable ${hosts.src[${I}]} |
| 110 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 111 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 112 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 113 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 114 | ... ${of_id} ${src['uni_id']} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 115 | Disable Device ${onu_device_id} |
Andy Bavier | 46c8be3 | 2020-01-21 10:06:27 -0700 | [diff] [blame] | 116 | 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] | 117 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 118 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 119 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 120 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 121 | Enable Device ${onu_device_id} |
| 122 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 123 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 124 | # Verify subscriber access flows are added for the ONU port |
| 125 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 126 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 127 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
Andy Bavier | 33e6dd3 | 2020-01-16 13:35:20 -0700 | [diff] [blame] | 128 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 129 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 130 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 131 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 132 | END |
| 133 | |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 134 | Test Subscriber Delete and Add |
| 135 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 136 | ... Assuming that all the ONUs are authenticated/DHCP/pingable |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 137 | ... Delete a subscriber and validate that the pings do not succeed |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 138 | ... Re-add the subscriber and validate that the pings are successful |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 139 | [Tags] functional SubAddDelete released multi-uni |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 140 | [Setup] Start Logging SubAddDelete |
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 SubAddDelete |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 143 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 144 | ${src}= Set Variable ${hosts.src[${I}]} |
| 145 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 146 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 147 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 148 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 149 | ... ${of_id} ${src['uni_id']} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 150 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 151 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 9da4430 | 2020-03-04 14:24:49 -0800 | [diff] [blame] | 152 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 153 | ... 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] | 154 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 155 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 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']} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 158 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 159 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 160 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
Suchitra Vemuri | 9da4430 | 2020-03-04 14:24:49 -0800 | [diff] [blame] | 161 | ... Verify No Pending Flows For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 162 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 163 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 164 | # Verify subscriber access flows are added for the ONU port |
| 165 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 166 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 167 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
Andy Bavier | 33e6dd3 | 2020-01-16 13:35:20 -0700 | [diff] [blame] | 168 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 169 | ... Wait Until Keyword Succeeds 60s 2s |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 170 | ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 171 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 172 | END |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 173 | |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 174 | Check DHCP attempt fails when subscriber is not added |
| 175 | [Documentation] Validates when removed subscriber access, DHCP attempt, ping fails and |
| 176 | ... when again added subscriber access, DHCP attempt, ping succeeds |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 177 | ... Assuming that test1 or sanity test was executed where all the ONUs are authenticated/DHCP/pingable |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 178 | [Tags] functional SubsRemoveDHCP released multi-uni |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 179 | [Setup] Start Logging SubsRemoveDHCP |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 180 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 181 | ... AND Stop Logging SubsRemoveDHCP |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 182 | FOR ${I} IN RANGE 0 ${num_all_onus} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 183 | ${src}= Set Variable ${hosts.src[${I}]} |
| 184 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 185 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 186 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 187 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 188 | ... ${of_id} ${src['uni_id']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 189 | Run Keyword And Ignore Error Login And Run Command On Remote System killall dhclient ${src['ip']} |
| 190 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 191 | Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']} |
| 192 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 193 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 194 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 8f1d306 | 2020-02-28 11:57:37 -0800 | [diff] [blame] | 195 | Sleep 15s |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 196 | Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']} |
| 197 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 198 | Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds ${timeout} 2s |
| 199 | ... Delete IP Addresses from Interface on Remote Host ${src['dp_iface_name']} ${src['ip']} |
| 200 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 201 | Run Keyword And Ignore Error Login And Run Command On Remote System |
| 202 | ... ifconfig | grep -A 10 ens ${src['ip']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 203 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 204 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping False |
| 205 | ... False ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 206 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 207 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 208 | ... ${dst['container_name']} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 209 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 210 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 9da4430 | 2020-03-04 14:24:49 -0800 | [diff] [blame] | 211 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 212 | ... 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] | 213 | # Verify subscriber access flows are added for the ONU port |
| 214 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 215 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 216 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 217 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 218 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 219 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 220 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 221 | ... ${dst['container_name']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 222 | END |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 223 | |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 224 | Test Disable and Enable ONU scenario for ATT workflow |
| 225 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 226 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 227 | ... 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] | 228 | ... Perform enable on the ONUs, authentication check, volt-add-subscriber-access and |
| 229 | ... validate that the pings are successful |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 230 | ... VOL-2284 |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 231 | [Tags] functional ATT_DisableEnableONU released multi-uni |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 232 | [Setup] Start Logging ATT_DisableEnableONU |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 233 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 234 | ... AND Stop Logging ATT_DisableEnableONU |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 235 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 236 | ${src}= Set Variable ${hosts.src[${I}]} |
| 237 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 238 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 239 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 240 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 241 | ... ${of_id} ${src['uni_id']} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 242 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 120s 2s |
Hardik Windlass | 3901567 | 2021-07-05 05:48:08 +0000 | [diff] [blame] | 243 | ... Verify UNI Port Is Enabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${src['onu']} ${src['uni_id']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 244 | Disable Device ${onu_device_id} |
Hardik Windlass | 5e214b2 | 2021-02-26 10:37:14 +0000 | [diff] [blame] | 245 | Wait Until Keyword Succeeds ${timeout} 2s Test Devices Disabled in VOLTHA Id=${onu_device_id} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 246 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 247 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 248 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 249 | ... Wait Until Keyword Succeeds 60s 2s Check Ping |
| 250 | ... False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 251 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Hardik Windlass | 5e214b2 | 2021-02-26 10:37:14 +0000 | [diff] [blame] | 252 | ... ELSE Sleep 10s |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 253 | Enable Device ${onu_device_id} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 254 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${ONOS_SSH_IP} |
Matteo Scandolo | 7e519fb | 2021-08-13 11:35:16 -0700 | [diff] [blame] | 255 | ... ${ONOS_SSH_PORT} ${of_id} ${onu_port} |
Zack Williams | a8fe75a | 2020-01-10 14:25:27 -0700 | [diff] [blame] | 256 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure |
| 257 | ... Validate Authentication After Reassociate True |
| 258 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 259 | ... ${src['container_type']} ${src['container_name']} |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 260 | 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] | 261 | ... ${ONOS_SSH_PORT} ${onu_port} |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 262 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 263 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
Hardik Windlass | 2180763 | 2020-04-14 16:24:55 +0530 | [diff] [blame] | 264 | # Verify subscriber access flows are added for the ONU port |
| 265 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 266 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 267 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 268 | 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] | 269 | ... 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] | 270 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 271 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 272 | ... ${dst['container_name']} |
| 273 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
ubuntu | 6b6e7d4 | 2020-03-02 12:35:42 -0800 | [diff] [blame] | 274 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 275 | END |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 276 | |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 277 | Test Disable and Enable OLT |
| 278 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 279 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 280 | ... Perform disable on the OLT and validate that the pings do not succeed |
| 281 | ... Perform enable on the OLT and validate that the pings are successful |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 282 | [Tags] functional VOL-2410 DisableEnableOLT multi-uni |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 283 | [Setup] Start Logging DisableEnableOLT |
| 284 | [Teardown] Run Keywords Collect Logs |
| 285 | ... AND Stop Logging DisableEnableOLT |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 286 | #Disable the OLTs and verify the OLT/ONUs are disabled properly |
| 287 | FOR ${I} IN RANGE 0 ${olt_count} |
| 288 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 289 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 290 | ${rc} ${output}= Run and Return Rc and Output |
Matteo Scandolo | 5899be1 | 2020-11-11 15:38:07 -0800 | [diff] [blame] | 291 | ... voltctl -c ${VOLTCTL_CONFIG} device disable ${olt_device_id} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 292 | Should Be Equal As Integers ${rc} 0 |
| 293 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 294 | ... ${olt_serial_number} |
| 295 | END |
| 296 | # Validate the ONUs |
| 297 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 298 | ${src}= Set Variable ${hosts.src[${I}]} |
| 299 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 300 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 301 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 302 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 303 | ... Get ONU Port in ONOS ${src['onu']} ${of_id} ${src['uni_id']} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 304 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED DISCOVERED |
| 305 | ... UNREACHABLE ${src['onu']} onu=false |
| 306 | #Verify that ping fails |
| 307 | Run Keyword If ${has_dataplane} |
| 308 | ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s |
| 309 | ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} |
| 310 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 311 | # Remove Subscriber Access (To replicate ATT workflow) |
TorstenThieme | 4e2168e | 2021-06-22 14:01:47 +0000 | [diff] [blame] | 312 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 313 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 314 | END |
| 315 | #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] | 316 | FOR ${I} IN RANGE 0 ${olt_count} |
| 317 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 318 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 319 | Enable Device ${olt_device_id} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 320 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 321 | ... ${olt_serial_number} |
| 322 | #TODO: Update for PON_OLT ETHERNET_NNI |
| 323 | #Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Port Types |
| 324 | #... PON_OLT ETHERNET_NNI |
| 325 | END |
Hardik Windlass | 2b37e71 | 2020-06-12 02:13:17 +0530 | [diff] [blame] | 326 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 327 | Wait Until Keyword Succeeds ${timeout} 5s Perform Sanity Test |
| 328 | |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 329 | Delete OLT, ReAdd OLT and Perform Sanity Test |
| 330 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 331 | ... Disable and Delete the OLT |
| 332 | ... Create/Enable the same OLT again |
| 333 | ... Validate authentication/DHCP/E2E pings succeed for all the ONUs connected to the OLT |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 334 | [Tags] functional DeleteOLT released notready |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 335 | [Setup] Start Logging DeleteOLT |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 336 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 337 | ... AND Stop Logging DeleteOLT |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 338 | #TODO: Update test with new framework changes |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 339 | Run Keyword If ${has_dataplane} Clean Up Linux |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 340 | FOR ${I} IN RANGE 0 ${olt_count} |
| 341 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 342 | ${of_id}= Get ofID From OLT List ${olt_serial_number} |
| 343 | Delete Device and Verify ${olt_serial_number} |
| 344 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 345 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 346 | END |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 347 | Run Keyword If ${has_dataplane} Clean Up Linux |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 348 | # Recreate the OLT |
Hardik Windlass | 480f3e2 | 2020-04-02 20:14:14 +0530 | [diff] [blame] | 349 | Setup |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 350 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Suchitra Vemuri | 937cd39 | 2020-01-12 17:10:42 -0800 | [diff] [blame] | 351 | |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 352 | Check Mib State on OLT recreation after ONU, OLT deletion |
| 353 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable, |
| 354 | ... Disable and Delete the ONU, Disable and Delete the OLT |
| 355 | ... Create/Enable the OLT again and Check for the Mib State of the ONUs |
| 356 | [Tags] functional CheckMibState notready |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 357 | [Setup] Start Logging CheckMibState |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 358 | [Teardown] Run Keywords Collect Logs |
| 359 | ... AND Stop Logging CheckMibState |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 360 | #Disable and Delete the ONU |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 361 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 362 | ${src}= Set Variable ${hosts.src[${I}]} |
| 363 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 364 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 365 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 366 | ... ${of_id} ${src['uni_id']} |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 367 | Disable Device ${onu_device_id} |
| 368 | Wait Until Keyword Succeeds 20s 2s Test Devices Disabled in VOLTHA Id=${onu_device_id} |
| 369 | Delete Device ${onu_device_id} |
| 370 | END |
| 371 | #Disable and Delete the OLT |
Hardik Windlass | 480f3e2 | 2020-04-02 20:14:14 +0530 | [diff] [blame] | 372 | Delete Device and Verify |
| 373 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 374 | ... Verify Device Flows Removed ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 375 | # Recreate the OLT |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 376 | Run Keyword If ${has_dataplane} Sleep 180s |
Andrea Campanella | 3dcce27 | 2021-01-15 16:04:47 +0100 | [diff] [blame] | 377 | # This dneeds to be done in for loop, test is not ready |
| 378 | ${olt_device_id}= Run Keyword If "${list_olts}[${I}][type]" == "${None}" |
Suchitra Vemuri | 09f878d | 2021-02-10 18:19:04 -0800 | [diff] [blame] | 379 | ... Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport] |
| 380 | ... ELSE Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport] ${list_olts}[${I}][type] |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 381 | Set Suite Variable ${olt_device_id} |
| 382 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED |
Hardik Windlass | 8b44649 | 2021-06-10 06:25:23 +0000 | [diff] [blame] | 383 | ... UNKNOWN UNKNOWN ${olt_device_id} by_dev_id=True |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 384 | Enable Device ${olt_device_id} |
| 385 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 386 | ... ${olt_serial_number} |
| 387 | #Check for the ONU status and ONU Mib State should be "omci-flows-pushed" |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 388 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 389 | ${src}= Set Variable ${hosts.src[${I}]} |
| 390 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 391 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 392 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 393 | ... ${of_id} ${src['uni_id']} |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 394 | Wait Until Keyword Succeeds 180s 5s Validate Device ENABLED ACTIVE |
Hema | 567f301 | 2020-03-25 00:51:53 +0530 | [diff] [blame] | 395 | ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 396 | END |
| 397 | |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 398 | Test disable ONUs and OLT then delete ONUs and OLT |
| 399 | [Documentation] On deployed POD, disable the ONU, disable the OLT and then delete ONU and OLT. |
| 400 | ... This TC is to confirm that ONU removal is not impacting OLT |
| 401 | ... Devices will be removed during the execution of this TC |
| 402 | ... 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] | 403 | [Tags] functional VOL-2354 DisableDeleteONUandOLT released |
Andy Bavier | e187eda | 2020-04-20 15:00:02 -0700 | [diff] [blame] | 404 | [Setup] Start Logging DisableDeleteONUandOLT |
Andy Bavier | 4a8450e | 2020-02-04 08:58:37 -0700 | [diff] [blame] | 405 | [Teardown] Run Keywords Collect Logs |
Andy Bavier | abeba26 | 2020-02-07 16:22:16 -0700 | [diff] [blame] | 406 | ... AND Stop Logging DisableDeleteONUandOLT |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 407 | #${olt_device_id}= Get Device ID From SN ${olt_serial_number} |
Suchitra Vemuri | 0217055 | 2021-03-23 16:40:50 -0700 | [diff] [blame] | 408 | @{onu_reason}= Create List tech-profile-config-downloaded-success omci-flows-pushed |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 409 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 410 | ${src}= Set Variable ${hosts.src[${I}]} |
| 411 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 412 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 413 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 414 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 360s 5s |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 415 | ... Validate Device ENABLED ACTIVE |
Suchitra Vemuri | 0217055 | 2021-03-23 16:40:50 -0700 | [diff] [blame] | 416 | ... REACHABLE ${src['onu']} onu=True onu_reason=${onu_reason} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 417 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 418 | ... Validate OLT Device ENABLED ACTIVE |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 419 | ... REACHABLE ${src['olt']} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 420 | ${rc} ${output}= Run and Return Rc and Output |
Matteo Scandolo | 5899be1 | 2020-11-11 15:38:07 -0800 | [diff] [blame] | 421 | ... voltctl -c ${VOLTCTL_CONFIG} device disable ${onu_device_id} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 422 | Should Be Equal As Integers ${rc} 0 |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 423 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 424 | ... Validate Device DISABLED UNKNOWN |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 425 | ... REACHABLE ${src['onu']} onu=false |
Suchitra Vemuri | cdc32d8 | 2020-07-17 12:24:46 -0700 | [diff] [blame] | 426 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 360s 5s |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 427 | ... Validate OLT Device ENABLED ACTIVE |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 428 | ... REACHABLE ${src['olt']} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 429 | END |
Matteo Scandolo | 5899be1 | 2020-11-11 15:38:07 -0800 | [diff] [blame] | 430 | |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 431 | # Disable all OLTs |
| 432 | FOR ${I} IN RANGE 0 ${olt_count} |
| 433 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 434 | ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number} |
| 435 | ${rc} ${output}= Run and Return Rc and Output |
Matteo Scandolo | 5899be1 | 2020-11-11 15:38:07 -0800 | [diff] [blame] | 436 | ... voltctl -c ${VOLTCTL_CONFIG} device disable ${olt_device_id} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 437 | Should Be Equal As Integers ${rc} 0 |
| 438 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 439 | ... ${olt_serial_number} |
| 440 | END |
| 441 | # Validate ONUs after OLT disable |
| 442 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 443 | ${src}= Set Variable ${hosts.src[${I}]} |
| 444 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 445 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 446 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 447 | ... Validate Device DISABLED DISCOVERED |
| 448 | ... UNREACHABLE ${src['onu']} onu=false |
Hardik Windlass | 7da42ca | 2020-03-13 14:25:44 +0530 | [diff] [blame] | 449 | Delete Device ${onu_device_id} |
Suchitra Vemuri | 014b603 | 2020-02-14 18:13:13 -0800 | [diff] [blame] | 450 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 451 | ... Validate OLT Device DISABLED UNKNOWN |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 452 | ... REACHABLE ${src['olt']} |
Hema | 783279b | 2020-01-22 15:37:37 +0530 | [diff] [blame] | 453 | END |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 454 | # Delete all OLTs |
| 455 | Delete All Devices and Verify |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 456 | # Re-create the Devices and Perform Sanity |
| 457 | Setup |
| 458 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 459 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 460 | |
Suchitra Vemuri | 9a6dd6d | 2020-02-28 17:46:26 -0800 | [diff] [blame] | 461 | Validate authentication on a disabled ONU |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 462 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 463 | ... Perform disable on the ONUs and validate that the authentication do not succeed |
| 464 | ... Perform enable on the ONUs and validate that authentication successful |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 465 | [Tags] functional DisableONU_AuthCheck multi-uni |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 466 | # Creates Devices in the Setup |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 467 | [Setup] Start Logging DisableONU_AuthCheck |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 468 | [Teardown] Run Keywords Collect Logs |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 469 | ... AND Delete All Devices and Verify |
Girish Gowdra | f244d5b | 2021-09-01 17:16:16 -0700 | [diff] [blame] | 470 | ... AND Run Keyword If ${logging} Collect Logs |
| 471 | ... AND Stop Logging DisableONU_AuthCheck |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 472 | Clean WPA Process |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 473 | FOR ${I} IN RANGE 0 ${num_all_onus} |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 474 | ${src}= Set Variable ${hosts.src[${I}]} |
| 475 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 476 | ${of_id}= Get ofID From OLT List ${src['olt']} |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 477 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 478 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 479 | ... ${of_id} ${src['uni_id']} |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 480 | Disable Device ${onu_device_id} |
| 481 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device DISABLED UNKNOWN |
| 482 | ... REACHABLE ${src['onu']} onu=false |
Andy Bavier | 84834d4 | 2020-02-25 13:49:50 -0700 | [diff] [blame] | 483 | ${wpa_log}= Run Keyword If ${has_dataplane} Catenate SEPARATOR=. |
| 484 | ... /tmp/wpa ${src['dp_iface_name']} log |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 485 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication False |
| 486 | ... ${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] | 487 | ... ${src['container_type']} ${src['container_name']} ${wpa_log} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 488 | Enable Device ${onu_device_id} |
| 489 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src['ip']} |
| 490 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 491 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 492 | ... ENABLED ACTIVE REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 493 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True |
| 494 | ... ${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] | 495 | ... ${src['container_type']} ${src['container_name']} ${wpa_log} |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 496 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 497 | END |
suraj gour | 472da1c | 2020-02-25 05:44:51 +0000 | [diff] [blame] | 498 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 499 | Data plane verification using TCP |
| 500 | [Documentation] Test bandwidth profile is met and not exceeded for each subscriber. |
| 501 | ... 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] | 502 | [Tags] non-critical dataplane BandwidthProfileTCP VOL-2052 |
Andy Bavier | dfbcaef | 2020-05-27 15:34:18 -0700 | [diff] [blame] | 503 | [Setup] Start Logging BandwidthProfileTCP |
| 504 | [Teardown] Run Keywords Collect Logs |
| 505 | ... AND Stop Logging BandwidthProfileTCP |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 506 | Pass Execution If '${has_dataplane}'=='False' |
| 507 | ... Bandwidth profile validation can be done only in physical pod. Skipping this test in BBSIM. |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 508 | Delete All Devices And Verify |
| 509 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 510 | setup |
| 511 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 512 | |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 513 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 514 | ${src}= Set Variable ${hosts.src[${I}]} |
| 515 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 516 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Andy Bavier | f6ab19c | 2020-05-14 10:34:47 -0700 | [diff] [blame] | 517 | |
| 518 | # Check for iperf3 and jq tools |
| 519 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 520 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 521 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 522 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 523 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 524 | ... ${of_id} ${src['uni_id']} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 525 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 526 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 527 | ... upstreamBandwidthProfile |
Girish Gowdra | d769b41 | 2021-05-16 11:09:46 -0700 | [diff] [blame] | 528 | ${limiting_bw_value_upstream} Get Limiting Bandwidth Details ${bandwidth_profile_name} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 529 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 530 | ... downstreamBandwidthProfile |
Girish Gowdra | d769b41 | 2021-05-16 11:09:46 -0700 | [diff] [blame] | 531 | ${limiting_bw_value_dnstream} Get Limiting Bandwidth Details ${bandwidth_profile_name} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 532 | |
| 533 | # Stream TCP packets from RG to server |
| 534 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 535 | ... args=-t 30 |
| 536 | ${actual_upstream_bw_used}= Evaluate ${updict['end']['sum_received']['bits_per_second']}/1000 |
| 537 | |
| 538 | # Stream TCP packets from server to RG |
| 539 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 540 | ... args=-R -t 30 |
| 541 | ${actual_dnstream_bw_used}= Evaluate ${dndict['end']['sum_received']['bits_per_second']}/1000 |
| 542 | |
| 543 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 544 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 545 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 546 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 547 | |
| 548 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 549 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 550 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 551 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 552 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 553 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 554 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 555 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 556 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 557 | END |
| 558 | |
| 559 | Data plane verification using UDP |
| 560 | [Documentation] Test bandwidth profile is met and not exceeded for each subscriber. |
| 561 | ... 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] | 562 | [Tags] non-critical dataplane BandwidthProfileUDP VOL-2052 |
Andy Bavier | dfbcaef | 2020-05-27 15:34:18 -0700 | [diff] [blame] | 563 | [Setup] Start Logging BandwidthProfileUDP |
| 564 | [Teardown] Run Keywords Collect Logs |
| 565 | ... AND Stop Logging BandwidthProfileUDP |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 566 | Pass Execution If '${has_dataplane}'=='False' |
| 567 | ... Bandwidth profile validation can be done only in physical pod. Skipping this test in BBSIM. |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 568 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 569 | ${src}= Set Variable ${hosts.src[${I}]} |
| 570 | ${dst}= Set Variable ${hosts.dst[${I}]} |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 571 | ${of_id}= Get ofID From OLT List ${src['olt']} |
Andy Bavier | d59f977 | 2020-07-01 12:00:42 -0700 | [diff] [blame] | 572 | |
| 573 | # Check for iperf3 and jq tools |
| 574 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 575 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 576 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 577 | |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 578 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 579 | ... ${of_id} ${src['uni_id']} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 580 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 581 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 582 | ... upstreamBandwidthProfile |
Girish Gowdra | d769b41 | 2021-05-16 11:09:46 -0700 | [diff] [blame] | 583 | ${limiting_bw_value_upstream} Get Limiting Bandwidth Details ${bandwidth_profile_name} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 584 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 585 | ... downstreamBandwidthProfile |
Girish Gowdra | d769b41 | 2021-05-16 11:09:46 -0700 | [diff] [blame] | 586 | ${limiting_bw_value_dnstream} Get Limiting Bandwidth Details ${bandwidth_profile_name} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 587 | |
| 588 | # Stream UDP packets from RG to server |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 589 | ${uprate}= Run Keyword If ${limiting_bw_value_upstream} != 1000000 |
| 590 | ... Evaluate ${limiting_bw_value_upstream}*${udp_rate_multiplier} |
Andrea Campanella | 29341a3 | 2020-08-03 22:06:26 +0200 | [diff] [blame] | 591 | ... ELSE |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 592 | ... Set Variable ${limiting_bw_value_upstream} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 593 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
Andy Bavier | 7dc5062 | 2020-05-28 14:34:12 -0700 | [diff] [blame] | 594 | ... 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] | 595 | # With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput. |
| 596 | ${actual_upstream_bw_used}= Evaluate |
| 597 | ... (100 - ${updict['end']['sum']['lost_percent']})*${updict['end']['sum']['bits_per_second']}/100000 |
| 598 | |
| 599 | # Stream UDP packets from server to RG |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 600 | ${dnrate}= Run Keyword If ${limiting_bw_value_dnstream} != 1000000 |
| 601 | ... Evaluate ${limiting_bw_value_dnstream}*${udp_rate_multiplier} |
Andrea Campanella | 29341a3 | 2020-08-03 22:06:26 +0200 | [diff] [blame] | 602 | ... ELSE |
Andrea Campanella | 1d34bfc | 2020-08-06 09:58:49 +0200 | [diff] [blame] | 603 | ... Set Variable ${limiting_bw_value_dnstream} |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 604 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
Andy Bavier | 7dc5062 | 2020-05-28 14:34:12 -0700 | [diff] [blame] | 605 | ... 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] | 606 | # With UDP test, bits per second is the sending rate. Multiply by the loss rate to get the throughput. |
| 607 | ${actual_dnstream_bw_used}= Evaluate |
| 608 | ... (100 - ${dndict['end']['sum']['lost_percent']})*${dndict['end']['sum']['bits_per_second']}/100000 |
| 609 | |
| 610 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 611 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 612 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 613 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 614 | |
| 615 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 616 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 617 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 618 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 619 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
Gayathri.Selvan | 92d1686 | 2020-03-19 14:47:58 +0000 | [diff] [blame] | 620 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 621 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 622 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 623 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 624 | END |
Suchitra Vemuri | f7a033c | 2020-02-26 17:22:41 -0800 | [diff] [blame] | 625 | |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 626 | Validate parsing of data traffic through voltha using tech profile |
| 627 | [Documentation] Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 628 | ... Prerequisite tools : Tcpdump and Mausezahn traffic generator on both RG and DHCP/BNG VMs |
| 629 | ... 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] | 630 | ... This test sends TCP packets with pbits between 0 and 7 and validates that |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 631 | ... the pbits are preserved by the PON. |
Hardik Windlass | 04d791e | 2021-07-12 16:23:13 +0000 | [diff] [blame] | 632 | [Tags] dataplane TechProfile VOL-2054 notready |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 633 | [Setup] Start Logging TechProfile |
| 634 | [Teardown] Run Keywords Collect Logs |
| 635 | ... AND Stop Logging TechProfile |
| 636 | Pass Execution If '${has_dataplane}'=='False' |
| 637 | ... Skipping test: Technology profile validation can be done only in physical pod |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 638 | FOR ${I} IN RANGE 0 ${num_all_onus} |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 639 | ${src}= Set Variable ${hosts.src[${I}]} |
| 640 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 641 | |
| 642 | ${bng_ip}= Get Variable Value ${dst['noroot_ip']} |
| 643 | ${bng_user}= Get Variable Value ${dst['noroot_user']} |
| 644 | ${bng_pass}= Get Variable Value ${dst['noroot_pass']} |
Andy Bavier | f4b7d1d | 2020-06-30 11:14:04 -0700 | [diff] [blame] | 645 | 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] | 646 | ... Skipping test: credentials for BNG login required in deployment config |
| 647 | |
| 648 | ${stdout} ${stderr} ${rc}= Execute Remote Command which mausezahn tcpdump |
| 649 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 650 | Pass Execution If ${rc} != 0 Skipping test: mausezahn / tcpdump not found on the RG |
| 651 | ${stdout} ${stderr} ${rc}= Execute Remote Command which mausezahn tcpdump |
| 652 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 653 | Pass Execution If ${rc} != 0 Skipping test: mausezahn / tcpdump not found on the BNG |
| 654 | Log Upstream test |
Andy Bavier | eff938d | 2020-06-29 18:27:49 -0700 | [diff] [blame] | 655 | 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] | 656 | ... ${dst['dp_iface_ip_qinq']} ${dst['dp_iface_name']} ${src['dp_iface_name']} |
Girish Gowdra | 66cd95d | 2021-07-08 10:31:54 -0700 | [diff] [blame] | 657 | ... 0 tcp 0 ${src['s_tag']} upstream vlan |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 658 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 659 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 660 | Log Downstream test |
| 661 | ${rg_ip} ${stderr} ${rc}= Execute Remote Command |
| 662 | ... ifconfig ${src['dp_iface_name']} | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1 }' |
| 663 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 664 | 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] | 665 | Run Keyword If ${has_dataplane} Create traffic with each pbit and capture at other end |
Girish Gowdra | 66cd95d | 2021-07-08 10:31:54 -0700 | [diff] [blame] | 666 | ... ${rg_ip} ${src['dp_iface_name']} ${dst['dp_iface_name']} |
| 667 | ... 0 tcp ${src['c_tag']} ${src['s_tag']} downstream tcp |
Suraj Gour | 3365127 | 2020-05-04 10:10:16 +0530 | [diff] [blame] | 668 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 669 | ... ${bng_ip} ${bng_user} ${bng_pass} ${dst['container_type']} ${dst['container_name']} |
| 670 | END |
| 671 | |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 672 | Test Disable and Enable OLT PON Port |
| 673 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 674 | ... Assuming that all the ONUs are DHCP/pingable (i.e. assuming sanityDt test was executed) |
| 675 | ... Perform disable on the OLT PON Port and validate that the pings do not succeed |
| 676 | ... Perform enable on the OLT PON Port and validate that the pings are successful |
Hardik Windlass | 1ed2eee | 2021-06-25 09:51:03 +0000 | [diff] [blame] | 677 | [Tags] functional DisableEnableOltPonPort VOL-2577 multi-uni |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 678 | [Setup] Run Keywords Start Logging DisableEnableOltPonPort |
| 679 | ... AND Setup |
| 680 | [Teardown] Run Keywords Collect Logs |
Hardik Windlass | 41701e8 | 2021-01-12 17:44:44 +0000 | [diff] [blame] | 681 | ... AND Delete All Devices and Verify |
Girish Gowdra | f244d5b | 2021-09-01 17:16:16 -0700 | [diff] [blame] | 682 | ... AND Run Keyword If ${logging} Collect Logs |
| 683 | ... AND Stop Logging DisableEnableOltPonPort |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 684 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 685 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Hardik Windlass | 41701e8 | 2021-01-12 17:44:44 +0000 | [diff] [blame] | 686 | # Multi-OLTs |
| 687 | FOR ${I} IN RANGE 0 ${olt_count} |
| 688 | ${olt_serial_number}= Get From Dictionary ${olt_ids}[${I}] sn |
| 689 | Disable Enable PON Port Per OLT ${olt_serial_number} |
Hardik Windlass | 16cdf96 | 2020-04-29 15:26:50 +0530 | [diff] [blame] | 690 | END |
| 691 | |
Gayathri.Selvan | 5d23e52 | 2020-09-15 17:26:25 +0530 | [diff] [blame] | 692 | Data plane Bandwidth profile update verification |
| 693 | [Documentation] Test bandwidth profile is updated for one subscriber and not changed for other subscribers. |
| 694 | ... Assumes iperf3 and jq installed on client and iperf -s running on DHCP server |
| 695 | ... Assumes Default and User_Bandwidth2 profiles are configured as bandwidth profiles |
| 696 | [Tags] non-critical dataplane BandwidthProfileUpdateTCP VOL-2053 |
| 697 | [Setup] Start Logging BandwidthProfileUpdateTCP |
| 698 | [Teardown] Run Keywords Collect Logs |
| 699 | ... AND Stop Logging BandwidthProfileUpdateTCP |
| 700 | ... AND Send File To Onos ${CURDIR}/../../tests/data/${POD_NAME}-sadis.json |
| 701 | Pass Execution If '${has_dataplane}'=='False' |
| 702 | ... Bandwidth profile validation can be done only in physical pod. Skipping this test in BBSIM. |
| 703 | Delete All Devices And Verify |
| 704 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 705 | Setup |
| 706 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
| 707 | # Update the Bandwidth Profile for the First Subscriber under test |
| 708 | ${src}= Set Variable ${hosts.src[${0}]} |
| 709 | ${dst}= Set Variable ${hosts.dst[${0}]} |
| 710 | ${of_id}= Get ofID From OLT List ${src['olt']} |
| 711 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 712 | ... ${of_id} ${src['uni_id']} |
| 713 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 714 | ${oldBwName} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} upstreamBandwidthProfile |
| 715 | # Delete the existing subscriber |
| 716 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
| 717 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
| 718 | # Change the bandwidth profile and load the configuration |
Hardik Windlass | aa41bb4 | 2021-07-23 15:32:43 +0000 | [diff] [blame] | 719 | ${newBwName} Set Variable If ${oldBwName} == 'Default' 'User_Bandwidth2' 'Default' |
Gayathri.Selvan | 5d23e52 | 2020-09-15 17:26:25 +0530 | [diff] [blame] | 720 | ${cmd} Catenate |
| 721 | ... sed 's/upstreamBandwidthProfile": "${oldBwName}"/upstreamBandwidthProfile": "${newBwName}"/g' |
| 722 | ... ${CURDIR}/../../tests/data/${POD_NAME}-sadis.json > ${CURDIR}/../../tests/data/${POD_NAME}-sadis-new.json |
| 723 | ${rc} Run and Return RC ${cmd} |
| 724 | Send File To Onos ${CURDIR}/../../tests/data/${POD_NAME}-sadis-new.json |
| 725 | # Re-add the subscriber with new bandwidth profile |
| 726 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command use single connection ${ONOS_SSH_IP} |
| 727 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 728 | # Verify that no pending flows exist for the ONU port |
| 729 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 730 | ... Verify No Pending Flows For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 731 | # Verify subscriber access flows are added for the ONU port |
| 732 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 733 | ... Verify Subscriber Access Flows Added For ONU ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} |
| 734 | ... ${onu_port} ${nni_port} ${src['c_tag']} ${src['s_tag']} |
| 735 | # Verify Meters in ONOS |
| 736 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s |
| 737 | ... Verify Meters in ONOS ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${of_id} ${onu_port} |
| 738 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 739 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 740 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 741 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 742 | ... ${dst['container_name']} |
| 743 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 744 | ... Validate Subscriber DHCP Allocation ${ONOS_SSH_IP} ${ONOS_SSH_PORT} ${onu_port} |
| 745 | # Verify new bandwidth profile is applied and other subscribers are working fine |
| 746 | ${checkBwName} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} upstreamBandwidthProfile |
| 747 | Should Be Equal ${checkBwName} ${newBwName} The bandwidth profile is not updated properly |
| 748 | FOR ${I} IN RANGE 0 ${num_all_onus} |
| 749 | ${src}= Set Variable ${hosts.src[${I}]} |
| 750 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 751 | ${of_id}= Get ofID From OLT List ${src['olt']} |
| 752 | |
| 753 | # Check for iperf3 and jq tools |
| 754 | ${stdout} ${stderr} ${rc}= Execute Remote Command which iperf3 jq |
| 755 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 756 | Pass Execution If ${rc} != 0 Skipping test: iperf3 / jq not found on the RG |
| 757 | |
| 758 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 759 | ... ${of_id} ${src['uni_id']} |
| 760 | ${subscriber_id}= Set Variable ${of_id}/${onu_port} |
| 761 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 762 | ... upstreamBandwidthProfile |
| 763 | ${limiting_bw_value_upstream} Get Limiting Bandwidth Details ${bandwidth_profile_name} |
| 764 | ${bandwidth_profile_name} Get Bandwidth Profile Name For Given Subscriber ${subscriber_id} |
| 765 | ... downstreamBandwidthProfile |
| 766 | ${limiting_bw_value_dnstream} Get Limiting Bandwidth Details ${bandwidth_profile_name} |
| 767 | |
| 768 | # Stream TCP packets from RG to server |
| 769 | ${updict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 770 | ... args=-t 30 |
| 771 | ${actual_upstream_bw_used}= Evaluate ${updict['end']['sum_received']['bits_per_second']}/1000 |
| 772 | |
| 773 | # Stream TCP packets from server to RG |
| 774 | ${dndict}= Run Iperf3 Test Client ${src} server=${dst['dp_iface_ip_qinq']} |
| 775 | ... args=-R -t 30 |
| 776 | ${actual_dnstream_bw_used}= Evaluate ${dndict['end']['sum_received']['bits_per_second']}/1000 |
| 777 | |
| 778 | ${pct_limit_up}= Evaluate 100*${actual_upstream_bw_used}/${limiting_bw_value_upstream} |
| 779 | ${pct_limit_dn}= Evaluate 100*${actual_dnstream_bw_used}/${limiting_bw_value_dnstream} |
| 780 | Log Up: bwprof ${limiting_bw_value_upstream}Kbps, got ${actual_upstream_bw_used}Kbps (${pct_limit_up}%) |
| 781 | Log Down: bwprof ${limiting_bw_value_dnstream}Kbps, got ${actual_dnstream_bw_used}Kbps (${pct_limit_dn}%) |
| 782 | |
| 783 | Should Be True ${pct_limit_up} <= ${upper_margin_pct} |
| 784 | ... The upstream bandwidth exceeded the limit (${pct_limit_up}% of limit) |
| 785 | # VOL-3125: downstream bw limit not enforced. Uncomment when fixed. |
| 786 | #Should Be True ${pct_limit_dn} <= ${upper_margin_pct} |
| 787 | #... The downstream bandwidth exceeded the limit (${pct_limit_dn}% of limit) |
| 788 | Should Be True ${pct_limit_up} >= ${lower_margin_pct} |
| 789 | ... The upstream bandwidth guarantee was not met (${pct_limit_up}% of resv) |
| 790 | Should Be True ${pct_limit_dn} >= ${lower_margin_pct} |
| 791 | ... The downstream bandwidth guarantee was not met (${pct_limit_dn}% of resv) |
| 792 | END |
| 793 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 794 | *** Keywords *** |
| 795 | Setup Suite |
Andy Bavier | 88cd9f6 | 2019-11-26 16:22:33 -0700 | [diff] [blame] | 796 | [Documentation] Set up the test suite |
| 797 | Common Test Suite Setup |
Hung-Wei Chiu | cc6e655 | 2020-06-04 12:57:38 -0700 | [diff] [blame] | 798 | #Restore all ONUs |
Suchitra Vemuri | a6879aa | 2020-11-03 11:03:11 -0800 | [diff] [blame] | 799 | #Run Keyword If ${has_dataplane} RestoreONUs ${num_all_onus} |
Suchitra Vemuri | 1d8e817 | 2020-06-17 17:43:56 -0700 | [diff] [blame] | 800 | #power_switch.robot needs it to support different vendor's power switch |
| 801 | ${switch_type}= Get Variable Value ${web_power_switch.type} |
| 802 | Run Keyword If "${switch_type}"!="" Set Global Variable ${powerswitch_type} ${switch_type} |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 803 | |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 804 | Clear All Devices Then Create New Device |
| 805 | [Documentation] Remove any devices from VOLTHA and ONOS |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 806 | # Remove all devices from voltha and nos |
| 807 | Delete All Devices and Verify |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 808 | # Execute normal test Setup Keyword |
| 809 | Setup |