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. |
| 14 | |
Matteo Scandolo | 1294aeb | 2019-09-24 16:20:32 -0700 | [diff] [blame] | 15 | # FIXME Can we use the same test against BBSim and Hardware? |
| 16 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 17 | *** Settings *** |
Zack Williams | ec53a1b | 2019-09-16 15:50:52 -0700 | [diff] [blame] | 18 | Documentation Test various end-to-end scenarios |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 19 | Suite Setup Setup Suite |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 20 | Test Setup Setup |
| 21 | Test Teardown Teardown |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 22 | Suite Teardown Teardown Suite |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 23 | Library Collections |
| 24 | Library String |
| 25 | Library OperatingSystem |
| 26 | Library XML |
| 27 | Library RequestsLibrary |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 28 | Library ../../libraries/DependencyLibrary.py |
Suchitra Vemuri | b8ed2d5 | 2019-09-30 13:22:51 -0700 | [diff] [blame] | 29 | Resource ../../libraries/onos.robot |
| 30 | Resource ../../libraries/voltctl.robot |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 31 | Resource ../../libraries/voltha.robot |
Suchitra Vemuri | b8ed2d5 | 2019-09-30 13:22:51 -0700 | [diff] [blame] | 32 | Resource ../../libraries/utils.robot |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 33 | Resource ../../libraries/k8s.robot |
Suchitra Vemuri | b8ed2d5 | 2019-09-30 13:22:51 -0700 | [diff] [blame] | 34 | Resource ../../variables/variables.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 |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 44 | ${NAMESPACE} voltha |
| 45 | # For below variable value, using deployment name as using grep for |
| 46 | # parsing radius pod name, we can also use full radius pod name |
| 47 | ${RESTART_POD_NAME} radius |
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 |
| 52 | ${external_libs} True |
| 53 | ${teardown_device} False |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 54 | ${scripts} ../../scripts |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 55 | |
| 56 | *** Test Cases *** |
| 57 | Sanity E2E Test for OLT/ONU on POD |
| 58 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 59 | ... 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] | 60 | [Tags] sanity test1 |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 61 | [Teardown] NONE |
Suchitra Vemuri | c5295a3 | 2019-12-15 20:32:04 -0800 | [diff] [blame] | 62 | Run Keyword If ${has_dataplane} Clean Up Linux |
Suchitra Vemuri | b89b9ac | 2019-12-11 21:53:11 -0800 | [diff] [blame] | 63 | Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test |
Suchitra Vemuri | 582574b | 2019-12-10 21:11:54 -0800 | [diff] [blame] | 64 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 65 | |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 66 | Test Disable and Enable ONU |
| 67 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 68 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 69 | ... Perform disable on the ONUs and validate that the pings do not succeed |
| 70 | ... Perform enable on the ONUs and validate that the pings are successful |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 71 | [Tags] functional DisableEnableONU released |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 72 | [Setup] None |
suraj gour | 7f6d5fe | 2019-11-29 10:56:35 +0000 | [diff] [blame] | 73 | [Teardown] None |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 74 | |
| 75 | FOR ${I} IN RANGE 0 ${num_onus} |
| 76 | ${src}= Set Variable ${hosts.src[${I}]} |
| 77 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 78 | |
| 79 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 80 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 81 | ... ${of_id} |
| 82 | Disable Device ${onu_device_id} |
| 83 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst['dp_iface_ip_qinq']} |
| 84 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 85 | Enable Device ${onu_device_id} |
| 86 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 87 | ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
| 88 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s Check Ping True ${dst['dp_iface_ip_qinq']} |
| 89 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 582574b | 2019-12-10 21:11:54 -0800 | [diff] [blame] | 90 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 91 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 92 | END |
Suchitra Vemuri | 582574b | 2019-12-10 21:11:54 -0800 | [diff] [blame] | 93 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | 6db8941 | 2019-11-14 14:52:54 -0800 | [diff] [blame] | 94 | |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 95 | Test Subscriber Delete and Add |
| 96 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 97 | ... Assuming that all the ONUs are authenticated/DHCP/pingable |
| 98 | ... Delete a subscriber and validate that the pings do not succeed |
| 99 | ... Re-add the subscriber and validate that the pings are successful |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 100 | [Tags] functional SubAddDelete released |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 101 | [Setup] None |
| 102 | [Teardown] None |
| 103 | |
| 104 | FOR ${I} IN RANGE 0 ${num_onus} |
| 105 | ${src}= Set Variable ${hosts.src[${I}]} |
| 106 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 107 | |
| 108 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 109 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 110 | ... ${of_id} |
| 111 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 112 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
| 113 | Sleep 10s |
| 114 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst['dp_iface_ip_qinq']} |
| 115 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 116 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 117 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 118 | Sleep 10s |
| 119 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 120 | ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
| 121 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s Check Ping True ${dst['dp_iface_ip_qinq']} |
| 122 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 123 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 124 | Run Keyword and Ignore Error Collect Logs |
| 125 | END |
| 126 | Run Keyword and Ignore Error Collect Logs |
| 127 | |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 128 | Check OLT/ONU Authentication After Radius Pod Restart |
suraj gour | 7f6d5fe | 2019-11-29 10:56:35 +0000 | [diff] [blame] | 129 | [Documentation] After radius restart, triggers reassociation, checks status and |
| 130 | ... authentication, validates dhcp and ping. Note : wpa reassociate works only when |
| 131 | ... wpa supplicant is running in background hence it is recommended to remove |
| 132 | ... teardown from previous test or uncomment 'Teardown None'. |
| 133 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 134 | [Tags] functional RadiusRestart released |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 135 | [Setup] None |
Suchitra Vemuri | bb00d9d | 2019-12-16 15:38:38 -0800 | [diff] [blame] | 136 | [Teardown] None |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 137 | Wait Until Keyword Succeeds ${timeout} 15s Restart Pod ${NAMESPACE} ${RESTART_POD_NAME} |
| 138 | |
| 139 | FOR ${I} IN RANGE 0 ${num_onus} |
| 140 | ${src}= Set Variable ${hosts.src[${I}]} |
| 141 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 142 | |
| 143 | |
| 144 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 145 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 146 | ... ${of_id} |
| 147 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${k8s_node_ip} |
| 148 | ... ${ONOS_SSH_PORT} ${onu_port} |
suraj gour | 7f6d5fe | 2019-11-29 10:56:35 +0000 | [diff] [blame] | 149 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication After Reassociate |
| 150 | ... True ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 151 | ... ${src['container_type']} ${src['container_name']} |
| 152 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip} |
| 153 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 154 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 155 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 156 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 157 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 158 | ... ${dst['container_name']} |
| 159 | Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure |
| 160 | ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | 582574b | 2019-12-10 21:11:54 -0800 | [diff] [blame] | 161 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 162 | Run Keyword and Ignore Error Collect Logs |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 163 | END |
Suchitra Vemuri | 582574b | 2019-12-10 21:11:54 -0800 | [diff] [blame] | 164 | Run Keyword and Ignore Error Collect Logs |
suraj gour | d64356b | 2019-11-07 13:26:20 +0000 | [diff] [blame] | 165 | |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 166 | Check DHCP attempt fails when subscriber is not added |
| 167 | [Documentation] Validates when removed subscriber access, DHCP attempt, ping fails and |
| 168 | ... when again added subscriber access, DHCP attempt, ping succeeds |
| 169 | ... 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] | 170 | [Tags] functional SubsRemoveDHCP released |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 171 | [Setup] None |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 172 | [Teardown] None |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 173 | |
| 174 | FOR ${I} IN RANGE 0 ${num_onus} |
| 175 | ${src}= Set Variable ${hosts.src[${I}]} |
| 176 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 177 | |
| 178 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 179 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 180 | ... ${of_id} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 181 | Run Keyword And Ignore Error Login And Run Command On Remote System killall dhclient ${src['ip']} |
| 182 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 183 | Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']} |
| 184 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 185 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 186 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 187 | Sleep 5s |
| 188 | Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']} |
| 189 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
suraj gour | 19ee3a8 | 2019-12-16 09:43:14 +0000 | [diff] [blame] | 190 | Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds ${timeout} 2s |
| 191 | ... Delete IP Addresses from Interface on Remote Host ${src['dp_iface_name']} ${src['ip']} |
| 192 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 193 | Run Keyword And Ignore Error Login And Run Command On Remote System ifconfig | grep -A 10 ens ${src['ip']} |
| 194 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 195 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping False |
| 196 | ... False ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 197 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 198 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 199 | ... ${dst['container_name']} |
| 200 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 201 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 202 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 203 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 204 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 205 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 206 | ... ${dst['container_name']} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 207 | Run Keyword and Ignore Error Collect Logs |
| 208 | END |
| 209 | Run Keyword and Ignore Error Collect Logs |
| 210 | |
suraj gour | 1ecfae9 | 2019-12-20 15:11:40 +0000 | [diff] [blame] | 211 | Check ONU adapter crash not forcing authentication again |
| 212 | [Documentation] After ONU adapter restart, checks wpa log for 'authentication started' |
| 213 | ... message count to make sure auth not started again and validates EAP status and ping. |
| 214 | ... Assuming that test1 or sanity was executed where all the ONUs are authenticated/DHCP/pingable |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 215 | [Tags] functional ONUAdaptCrash notready |
suraj gour | 1ecfae9 | 2019-12-20 15:11:40 +0000 | [diff] [blame] | 216 | [Setup] None |
| 217 | [Teardown] None |
| 218 | @{before_list}= Create List |
| 219 | @{after_list}= Create List |
| 220 | FOR ${I} IN RANGE 0 ${num_onus} |
| 221 | ${src}= Set Variable ${hosts.src[${I}]} |
| 222 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 223 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 224 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 225 | ... ${of_id} |
| 226 | ${before}= Run Keyword If ${has_dataplane} Check Remote File Contents For WPA Logs |
| 227 | ... True /tmp/wpa.log authentication started ${src['ip']} ${src['user']} ${src['pass']} |
| 228 | ... ${src['container_type']} ${src['container_name']} |
| 229 | Append To List ${before_list} ${before} |
| 230 | END |
| 231 | Wait Until Keyword Succeeds ${timeout} 15s Restart Pod ${NAMESPACE} adapter-open-onu |
| 232 | Wait Until Keyword Succeeds ${timeout} 2s Validate Pod Status ${podName} ${NAMESPACE} |
| 233 | ... Running |
| 234 | FOR ${I} IN RANGE 0 ${num_onus} |
| 235 | ${src}= Set Variable ${hosts.src[${I}]} |
| 236 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 237 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 238 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 239 | ... ${of_id} |
| 240 | ${after}= Run Keyword If ${has_dataplane} Check Remote File Contents For WPA Logs |
| 241 | ... True /tmp/wpa.log authentication started ${src['ip']} ${src['user']} ${src['pass']} |
| 242 | ... ${src['container_type']} ${src['container_name']} |
| 243 | Append To List ${after_list} ${after} |
| 244 | ${output}= Run Keyword If ${has_dataplane} Login And Run Command On Remote System |
| 245 | ... wpa_cli status | grep SUCCESS ${src['ip']} ${src['user']} ${src['pass']} |
| 246 | ... ${src['container_type']} ${src['container_name']} |
| 247 | Should Contain ${output} SUCCESS |
| 248 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s Check Ping |
| 249 | ... True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']} ${src['ip']} ${src['user']} |
| 250 | ... ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 251 | END |
| 252 | Lists Should Be Equal ${after_list} ${before_list} |
| 253 | Log ${after_list} |
| 254 | Log ${before_list} |
| 255 | Run Keyword and Ignore Error Collect Logs |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 256 | |
| 257 | Test Disable and Enable ONU scenario for ATT workflow |
| 258 | [Documentation] Validates E2E Ping Connectivity and object states for the given scenario: |
| 259 | ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable |
| 260 | ... Perform disable on the ONUs, call volt-remove-subscriber and validate that the pings do not succeed |
| 261 | ... Perform enable on the ONUs, authentication check, volt-add-subscriber-access and validate that the pings are successful |
| 262 | ... VOL-2284 |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 263 | [Tags] functional ATT_DisableEnableONU |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 264 | [Setup] None |
| 265 | #[Teardown] None |
| 266 | |
| 267 | FOR ${I} IN RANGE 0 ${num_onus} |
| 268 | ${src}= Set Variable ${hosts.src[${I}]} |
| 269 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 270 | |
| 271 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 272 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 273 | ... ${of_id} |
| 274 | Disable Device ${onu_device_id} |
Suchitra Vemuri | 04245f7 | 2020-01-08 16:43:24 -0800 | [diff] [blame] | 275 | Sleep 5s |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 276 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 277 | ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 278 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s Check Ping False ${dst['dp_iface_ip_qinq']} |
| 279 | ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 280 | ... ELSE sleep 60s |
| 281 | Enable Device ${onu_device_id} |
| 282 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${k8s_node_ip} |
| 283 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 284 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication After Reassociate |
| 285 | ... True ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']} |
| 286 | ... ${src['container_type']} ${src['container_name']} |
| 287 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip} |
| 288 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 289 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 290 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 291 | Sleep 10s |
| 292 | 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] | 293 | ... 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] | 294 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 295 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 296 | ... ${dst['container_name']} |
| 297 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 298 | ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
Suchitra Vemuri | 5994cd1 | 2019-12-17 22:20:55 -0800 | [diff] [blame] | 299 | Run Keyword and Ignore Error Collect Logs |
suraj gour | d5cfdbb | 2019-12-13 12:44:55 +0000 | [diff] [blame] | 300 | END |
| 301 | Run Keyword and Ignore Error Collect Logs |
| 302 | |
Hema | e6d223d | 2019-12-30 19:21:26 +0530 | [diff] [blame^] | 303 | Adding the same OLT after enabling the device |
| 304 | [Documentation] Create OLT, enable it, Create the same OLT again and Check for the Error message |
| 305 | [Tags] VOL-2406 AddEnableOLT_AddTheSameOLTAgain notready |
| 306 | [Setup] Delete Device and Verify |
| 307 | [Teardown] None |
| 308 | Run Keyword If ${has_dataplane} Sleep 180s |
| 309 | #create/preprovision device |
| 310 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 311 | Set Suite Variable ${olt_device_id} |
| 312 | #validate olt states |
| 313 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
| 314 | ... ${EMPTY} ${olt_device_id} |
| 315 | #Enable the created OLT device |
| 316 | Enable Device ${olt_device_id} |
| 317 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 318 | ... ${olt_serial_number} |
| 319 | #Create the same OLT again |
| 320 | ${rc} ${output}= Run and Return Rc and Output |
| 321 | ... ${VOLTCTL_CONFIG}; voltctl device create -t openolt -H ${olt_ip}:${OLT_PORT} |
| 322 | Should Not Be Equal As Integers ${rc} 0 |
| 323 | Log ${output} |
| 324 | Should Contain '${output}' 'ERROR: UNKNOWN: Device is already pre-provisioned' |
| 325 | Log "This OLT is added already and enabled" |
| 326 | |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 327 | Sanity E2E Test for OLT/ONU on POD With Core Fail and Restart |
| 328 | [Documentation] Deploys an device instance and waits for it to authenticate. After |
| 329 | ... authentication is successful the rw-core deployment is scaled to 0 instances to |
| 330 | ... simulate a POD crash. The test then scales the rw-core back to a single instance |
| 331 | ... and configures ONOS for access. The test succeeds if the device is able to |
| 332 | ... complete the DHCP sequence. |
| 333 | [Tags] bbsim rwcore-restart |
| 334 | [Setup] Clear All Devices Then Create New Device |
| 335 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
| 336 | Set Global Variable ${of_id} |
| 337 | |
| 338 | FOR ${I} IN RANGE 0 ${num_onus} |
| 339 | ${src}= Set Variable ${hosts.src[${I}]} |
| 340 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 341 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
| 342 | ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
| 343 | ... ${of_id} |
| 344 | |
| 345 | # Bring up the device and verify it authenticates |
| 346 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE REACHABLE |
| 347 | ... ${onu_device_id} onu=True onu_reason=omci-flows-pushed |
| 348 | Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${k8s_node_ip} |
| 349 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 350 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True |
| 351 | ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']} |
| 352 | ... ${src['container_type']} ${src['container_name']} |
| 353 | Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip} |
| 354 | ... ${ONOS_SSH_PORT} ${onu_port} |
| 355 | |
| 356 | # Scale down the rw-core deployment to 0 PODs and once confirmed, scale it back to 1 |
| 357 | Scale K8s Deployment voltha voltha-rw-core 0 |
| 358 | Wait Until Keyword Succeeds ${timeout} 2s Pod Does Not Exist voltha voltha-rw-core |
| 359 | # Ensure the ofagent POD goes "not-ready" as expected |
| 360 | Wait Until keyword Succeeds ${timeout} 2s Check Expected Available Deployment Replicas voltha voltha-ofagent 0 |
| 361 | # Scale up the core deployment and make sure both it and the ofagent deployment are back |
| 362 | Scale K8s Deployment voltha voltha-rw-core 1 |
| 363 | Wait Until Keyword Succeeds ${timeout} 2s Check Expected Available Deployment Replicas voltha voltha-rw-core 1 |
| 364 | Wait Until Keyword Succeeds ${timeout} 2s Check Expected Available Deployment Replicas voltha voltha-ofagent 1 |
| 365 | |
| 366 | # For some reason scaling down and up the POD behind a service causes the port forward to stop working, |
| 367 | # so restart the port forwarding for the API service |
| 368 | Restart VOLTHA Port Foward voltha-api-minimal |
| 369 | |
| 370 | # Ensure that the ofagent pod is up and ready and the device is available in ONOS, this |
| 371 | # represents system connectivity being restored |
| 372 | Wait Until Keyword Succeeds ${timeout} 2s Device Is Available In ONOS |
| 373 | ... http://karaf:karaf@${k8s_node_ip}:${ONOS_REST_PORT} ${of_id} |
| 374 | |
| 375 | # Add subscriber access and verify that DHCP completes to ensure system is still functioning properly |
| 376 | Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
| 377 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 378 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 379 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 380 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 381 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 382 | ... ${dst['container_name']} |
| 383 | Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure |
| 384 | ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
| 385 | END |
| 386 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 387 | *** Keywords *** |
| 388 | Setup Suite |
Andy Bavier | 88cd9f6 | 2019-11-26 16:22:33 -0700 | [diff] [blame] | 389 | [Documentation] Set up the test suite |
| 390 | Common Test Suite Setup |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 391 | |
| 392 | Setup |
Zack Williams | ec53a1b | 2019-09-16 15:50:52 -0700 | [diff] [blame] | 393 | [Documentation] Pre-test Setup |
Gilles Depatie | b5682f8 | 2019-10-31 10:39:45 -0400 | [diff] [blame] | 394 | #test for empty device list |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 395 | Test Empty Device List |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 396 | #create/preprovision device |
Suchitra Vemuri | c59eb27 | 2019-09-18 17:59:33 -0700 | [diff] [blame] | 397 | ${olt_device_id}= Create Device ${olt_ip} ${OLT_PORT} |
| 398 | Set Suite Variable ${olt_device_id} |
Gilles Depatie | b5682f8 | 2019-10-31 10:39:45 -0400 | [diff] [blame] | 399 | #validate olt states |
| 400 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN |
| 401 | ... ${EMPTY} ${olt_device_id} |
Suchitra Vemuri | c59eb27 | 2019-09-18 17:59:33 -0700 | [diff] [blame] | 402 | Enable Device ${olt_device_id} |
Gilles Depatie | b5682f8 | 2019-10-31 10:39:45 -0400 | [diff] [blame] | 403 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE |
| 404 | ... ${olt_serial_number} |
Suchitra Vemuri | 00d147d | 2019-09-13 13:07:32 -0700 | [diff] [blame] | 405 | ${logical_id}= Get Logical Device ID From SN ${olt_serial_number} |
| 406 | Set Suite Variable ${logical_id} |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 407 | |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 408 | Delete All Devices and Verify |
| 409 | [Documentation] Remove any devices from VOLTHA and ONOS |
| 410 | |
| 411 | # Clear devices from VOLTHA |
| 412 | Disable Devices In Voltha Root=true |
| 413 | Wait Until Keyword Succeeds ${timeout} 2s Test Devices Disabled In Voltha Root=true |
| 414 | Delete Devices In Voltha Root=true |
| 415 | Wait Until Keyword Succeeds ${timeout} 2s Test Empty Device List |
| 416 | |
| 417 | # Clear devices from ONOS |
| 418 | Remove All Devices From ONOS |
| 419 | ... http://karaf:karaf@${k8s_node_ip}:${ONOS_REST_PORT} |
| 420 | |
| 421 | Clear All Devices Then Create New Device |
| 422 | [Documentation] Remove any devices from VOLTHA and ONOS |
| 423 | |
| 424 | # Remove all devices from voltha and nos |
| 425 | Delete All Devices and Verify |
| 426 | |
| 427 | # Execute normal test Setup Keyword |
| 428 | Setup |
| 429 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 430 | Teardown |
| 431 | [Documentation] kills processes and cleans up interfaces on src+dst servers |
Suchitra Vemuri | 582574b | 2019-12-10 21:11:54 -0800 | [diff] [blame] | 432 | Run Keyword If ${has_dataplane} Clean Up Linux |
| 433 | Run Keyword If ${external_libs} Log Kubernetes Containers Logs Since Time ${datetime} ${container_list} |
| 434 | |
| 435 | Collect Logs |
| 436 | [Documentation] Collect Logs from voltha and onos cli for various commands |
Suchitra Vemuri | 1a970a6 | 2019-11-26 12:52:16 -0800 | [diff] [blame] | 437 | Run Keyword and Ignore Error Get Device List from Voltha |
| 438 | Run Keyword and Ignore Error Get Device Output from Voltha ${olt_device_id} |
| 439 | Run Keyword and Ignore Error Get Logical Device Output from Voltha ${logical_id} |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 440 | Run Keyword If ${external_libs} Get ONOS Status ${k8s_node_ip} |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 441 | |
| 442 | Teardown Suite |
| 443 | [Documentation] Clean up device if desired |
David Bainbridge | f81cd64 | 2019-11-20 00:14:47 +0000 | [diff] [blame] | 444 | Run Keyword If ${teardown_device} Delete All Devices and Verify |
Gilles Depatie | b5682f8 | 2019-10-31 10:39:45 -0400 | [diff] [blame] | 445 | |
Suchitra Vemuri | 65cd65f | 2019-08-30 14:39:22 -0700 | [diff] [blame] | 446 | Clean Up Linux |
| 447 | [Documentation] Kill processes and clean up interfaces on src+dst servers |
Suchitra Vemuri | 8a9c378 | 2019-10-23 12:43:01 -0700 | [diff] [blame] | 448 | FOR ${I} IN RANGE 0 ${num_onus} |
| 449 | ${src}= Set Variable ${hosts.src[${I}]} |
| 450 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 451 | Run Keyword And Ignore Error Kill Linux Process [w]pa_supplicant ${src['ip']} |
| 452 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 453 | Run Keyword And Ignore Error Kill Linux Process [d]hclient ${src['ip']} |
| 454 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 455 | Run Keyword If '${dst['ip']}' != '${None}' Run Keyword And Ignore Error |
| 456 | ... Kill Linux Process [d]hcpd ${dst['ip']} ${dst['user']} |
| 457 | ... ${dst['pass']} ${dst['container_type']} ${dst['container_name']} |
| 458 | Delete IP Addresses from Interface on Remote Host ${src['dp_iface_name']} ${src['ip']} |
| 459 | ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 460 | Run Keyword If '${dst['ip']}' != '${None}' Delete Interface on Remote Host |
| 461 | ... ${dst['dp_iface_name']}.${src['s_tag']} ${dst['ip']} ${dst['user']} ${dst['pass']} |
| 462 | ... ${dst['container_type']} ${dst['container_name']} |
| 463 | END |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 464 | |
| 465 | Delete Device and Verify |
| 466 | [Documentation] Disable -> Delete devices via voltctl and verify its removed |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 467 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id} |
| 468 | Should Be Equal As Integers ${rc} 0 |
Gilles Depatie | b5682f8 | 2019-10-31 10:39:45 -0400 | [diff] [blame] | 469 | Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE |
| 470 | ... ${olt_serial_number} |
Andy Bavier | ba9866b | 2019-10-11 07:11:53 -0700 | [diff] [blame] | 471 | ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device delete ${olt_device_id} |
| 472 | Should Be Equal As Integers ${rc} 0 |
| 473 | Wait Until Keyword Succeeds ${timeout} 5s Validate Device Removed ${olt_device_id} |
Suchitra Vemuri | b89b9ac | 2019-12-11 21:53:11 -0800 | [diff] [blame] | 474 | |
| 475 | Perform Sanity Test |
| 476 | [Documentation] This keyword performs Sanity Test Procedure |
| 477 | ... Sanity test performs authentication, dhcp and pings for all the ONUs given for the POD |
| 478 | ... This keyword can be used to call in any other tests where sanity check is required |
| 479 | ... and avoids duplication of code. |
| 480 | |
| 481 | ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number} |
| 482 | Set Global Variable ${of_id} |
| 483 | |
| 484 | FOR ${I} IN RANGE 0 ${num_onus} |
| 485 | ${src}= Set Variable ${hosts.src[${I}]} |
| 486 | ${dst}= Set Variable ${hosts.dst[${I}]} |
| 487 | |
Suchitra Vemuri | 50aa980 | 2019-12-20 14:25:46 -0800 | [diff] [blame] | 488 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Validate Device |
| 489 | ... ENABLED ACTIVE REACHABLE |
Suchitra Vemuri | b89b9ac | 2019-12-11 21:53:11 -0800 | [diff] [blame] | 490 | ... ${src['onu']} onu=True onu_reason=omci-flows-pushed |
| 491 | |
| 492 | ${onu_device_id}= Get Device ID From SN ${src['onu']} |
Suchitra Vemuri | 50aa980 | 2019-12-20 14:25:46 -0800 | [diff] [blame] | 493 | ${onu_port}= Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']} |
Suchitra Vemuri | b89b9ac | 2019-12-11 21:53:11 -0800 | [diff] [blame] | 494 | ... ${of_id} |
Suchitra Vemuri | 50aa980 | 2019-12-20 14:25:46 -0800 | [diff] [blame] | 495 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU |
| 496 | ... ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
| 497 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True |
Suchitra Vemuri | b89b9ac | 2019-12-11 21:53:11 -0800 | [diff] [blame] | 498 | ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']} |
| 499 | ... ${src['container_type']} ${src['container_name']} |
Suchitra Vemuri | 50aa980 | 2019-12-20 14:25:46 -0800 | [diff] [blame] | 500 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users |
| 501 | ... ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
| 502 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip} |
Suchitra Vemuri | b89b9ac | 2019-12-11 21:53:11 -0800 | [diff] [blame] | 503 | ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port} |
| 504 | Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True |
| 505 | ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']} |
| 506 | ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']} |
| 507 | ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']} |
| 508 | ... ${dst['container_name']} |
| 509 | Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s |
| 510 | ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port} |
| 511 | Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id} |
| 512 | Run Keyword and Ignore Error Collect Logs |
| 513 | END |