blob: 35d59105cb30d435250ff23c74e3ea6f4a9ac976 [file] [log] [blame]
David Bainbridgef81cd642019-11-20 00:14:47 +00001# Copyright 2017 - present Open Networking Foundation
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -07002#
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 Scandolo1294aeb2019-09-24 16:20:32 -070014# FIXME Can we use the same test against BBSim and Hardware?
15
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070016*** Settings ***
Zack Williamsec53a1b2019-09-16 15:50:52 -070017Documentation Test various end-to-end scenarios
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070018Suite Setup Setup Suite
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070019Test Setup Setup
20Test Teardown Teardown
Andy Bavierba9866b2019-10-11 07:11:53 -070021Suite Teardown Teardown Suite
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070022Library Collections
23Library String
24Library OperatingSystem
25Library XML
26Library RequestsLibrary
Andy Bavierba9866b2019-10-11 07:11:53 -070027Library ../../libraries/DependencyLibrary.py
Suchitra Vemurib8ed2d52019-09-30 13:22:51 -070028Resource ../../libraries/onos.robot
29Resource ../../libraries/voltctl.robot
David Bainbridgef81cd642019-11-20 00:14:47 +000030Resource ../../libraries/voltha.robot
Suchitra Vemurib8ed2d52019-09-30 13:22:51 -070031Resource ../../libraries/utils.robot
Andy Bavierba9866b2019-10-11 07:11:53 -070032Resource ../../libraries/k8s.robot
Suchitra Vemurib8ed2d52019-09-30 13:22:51 -070033Resource ../../variables/variables.robot
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070034
35*** Variables ***
Zack Williamsec53a1b2019-09-16 15:50:52 -070036${POD_NAME} flex-ocp-cord
37${KUBERNETES_CONF} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf
38${KUBERNETES_CONFIGS_DIR} ~/pod-configs/kubernetes-configs
39#${KUBERNETES_CONFIGS_DIR} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.conf
40${KUBERNETES_YAML} ${KUBERNETES_CONFIGS_DIR}/${POD_NAME}.yml
41${HELM_CHARTS_DIR} ~/helm-charts
42${VOLTHA_POD_NUM} 8
Zack Williamsa8fe75a2020-01-10 14:25:27 -070043${NAMESPACE} voltha
suraj gourd64356b2019-11-07 13:26:20 +000044# For below variable value, using deployment name as using grep for
45# parsing radius pod name, we can also use full radius pod name
Zack Williamsa8fe75a2020-01-10 14:25:27 -070046${RESTART_POD_NAME} radius
Andy Bavierba9866b2019-10-11 07:11:53 -070047${timeout} 60s
Zack Williamsec53a1b2019-09-16 15:50:52 -070048${of_id} 0
49${logical_id} 0
Andy Bavierba9866b2019-10-11 07:11:53 -070050${has_dataplane} True
51${external_libs} True
52${teardown_device} False
Zack Williamsa8fe75a2020-01-10 14:25:27 -070053${scripts} ../../scripts
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070054
Andy Bavierabeba262020-02-07 16:22:16 -070055# Per-test logging on failure is turned off by default; set this variable to enable
56${container_log_dir} ${None}
57
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070058*** Test Cases ***
59Sanity E2E Test for OLT/ONU on POD
60 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
61 ... Validate successful authentication/DHCP/E2E ping for the tech profile that is used
Andy Bavierba9866b2019-10-11 07:11:53 -070062 [Tags] sanity test1
Andy Bavier4a8450e2020-02-04 08:58:37 -070063 [Setup] Run Keywords Announce Message START TEST SanityTest
Andy Bavierabeba262020-02-07 16:22:16 -070064 ... AND Start Logging SanityTest
Andy Bavier4a8450e2020-02-04 08:58:37 -070065 ... AND Setup
66 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -070067 ... AND Stop Logging SanityTest
Andy Bavier4a8450e2020-02-04 08:58:37 -070068 ... AND Announce Message END TEST SanityTest
Suchitra Vemuric5295a32019-12-15 20:32:04 -080069 Run Keyword If ${has_dataplane} Clean Up Linux
Zack Williamsa8fe75a2020-01-10 14:25:27 -070070 Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -070071
Hema93762cf2020-01-29 19:59:28 +053072Test Disable and Enable OLT
73 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
74 ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable
75 ... Perform disable on the OLT and validate that the pings do not succeed
76 ... Perform enable on the OLT and validate that the pings are successful
77 [Tags] VOL-2410 DisableEnableOLT notready
Andy Bavierabeba262020-02-07 16:22:16 -070078 [Setup] Run Keywords Announce Message START TEST DisableEnableOLT
79 ... AND Start Logging DisableEnableOLT
Andy Bavier4a8450e2020-02-04 08:58:37 -070080 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -070081 ... AND Stop Logging DisableEnableOLT
Andy Bavier4a8450e2020-02-04 08:58:37 -070082 ... AND Announce Message END TEST DisableEnableOLT
Hema93762cf2020-01-29 19:59:28 +053083 #Disable the OLT and verify the OLT/ONUs are disabled properly
84 ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id}
85 Should Be Equal As Integers ${rc} 0
86 Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device DISABLED UNKNOWN REACHABLE
87 ... ${olt_serial_number}
88 FOR ${I} IN RANGE 0 ${num_onus}
89 ${src}= Set Variable ${hosts.src[${I}]}
90 ${dst}= Set Variable ${hosts.dst[${I}]}
91 ${onu_device_id}= Get Device ID From SN ${src['onu']}
92 Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED DISCOVERED
93 ... UNREACHABLE ${src['onu']} onu=false
94 #Verify that ping fails
TorstenThieme754fec72020-02-18 07:24:46 +000095 Run Keyword If ${has_dataplane}
96 ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s
Hema93762cf2020-01-29 19:59:28 +053097 ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
98 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}}
99 END
100 #Enable the OLT back and check ONU, OLT status are back to "ACTIVE"
101 Enable Device ${olt_device_id}
102 Wait Until Keyword Succeeds ${timeout} 5s Validate OLT Device ENABLED ACTIVE REACHABLE
103 ... ${olt_serial_number}
104 FOR ${I} IN RANGE 0 ${num_onus}
105 ${src}= Set Variable ${hosts.src[${I}]}
106 ${dst}= Set Variable ${hosts.dst[${I}]}
107 ${onu_device_id}= Get Device ID From SN ${src['onu']}
108 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
109 ... ${of_id}
110 Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE
111 ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed
112 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s
113 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
114 #Verify that ping workss fine again
TorstenThieme754fec72020-02-18 07:24:46 +0000115 Run Keyword If ${has_dataplane}
116 ... Run Keyword And Continue On Failure Wait Until Keyword Succeeds 60s 2s
Hema93762cf2020-01-29 19:59:28 +0530117 ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
118 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}}
119 Run Keyword and Ignore Error Collect Logs
120 END
121
122
Suchitra Vemuri6db89412019-11-14 14:52:54 -0800123Test Disable and Enable ONU
124 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
125 ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable
126 ... Perform disable on the ONUs and validate that the pings do not succeed
127 ... Perform enable on the ONUs and validate that the pings are successful
Suchitra Vemuri04245f72020-01-08 16:43:24 -0800128 [Tags] functional DisableEnableONU released
Andy Bavierabeba262020-02-07 16:22:16 -0700129 [Setup] Run Keywords Announce Message START TEST DisableEnableONU
130 ... AND Start Logging DisableEnableONU
Andy Bavier4a8450e2020-02-04 08:58:37 -0700131 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700132 ... AND Stop Logging DisableEnableONU
Andy Bavier4a8450e2020-02-04 08:58:37 -0700133 ... AND Announce Message END TEST DisableEnableONU
Suchitra Vemuri6db89412019-11-14 14:52:54 -0800134 FOR ${I} IN RANGE 0 ${num_onus}
135 ${src}= Set Variable ${hosts.src[${I}]}
136 ${dst}= Set Variable ${hosts.dst[${I}]}
Suchitra Vemuri6db89412019-11-14 14:52:54 -0800137 ${onu_device_id}= Get Device ID From SN ${src['onu']}
138 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
139 ... ${of_id}
140 Disable Device ${onu_device_id}
Suchitra Vemuri15e15252020-01-20 17:38:49 -0800141 #Test Devices Disabled in VOLTHA Id=${onu_device_id}
Andy Bavier33e6dd32020-01-16 13:35:20 -0700142 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
143 ... Wait Until Keyword Succeeds 60s 2s
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700144 ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
145 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
Suchitra Vemuri6db89412019-11-14 14:52:54 -0800146 Enable Device ${onu_device_id}
147 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s
148 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
Andy Bavier33e6dd32020-01-16 13:35:20 -0700149 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
150 ... Wait Until Keyword Succeeds 60s 2s
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700151 ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
152 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
153 Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id}
154 Run Keyword and Ignore Error Collect Logs
Suchitra Vemuri6db89412019-11-14 14:52:54 -0800155 END
156
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800157Test Subscriber Delete and Add
158 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
159 ... Assuming that all the ONUs are authenticated/DHCP/pingable
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700160 ... Delete a subscriber and validate that the pings do not succeed
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800161 ... Re-add the subscriber and validate that the pings are successful
Suchitra Vemuri04245f72020-01-08 16:43:24 -0800162 [Tags] functional SubAddDelete released
Andy Bavierabeba262020-02-07 16:22:16 -0700163 [Setup] Run Keywords Announce Message START TEST SubAddDelete
164 ... AND Start Logging SubAddDelete
Andy Bavier4a8450e2020-02-04 08:58:37 -0700165 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700166 ... AND Stop Logging SubAddDelete
Andy Bavier4a8450e2020-02-04 08:58:37 -0700167 ... AND Announce Message END TEST SubAddDelete
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800168 FOR ${I} IN RANGE 0 ${num_onus}
169 ${src}= Set Variable ${hosts.src[${I}]}
170 ${dst}= Set Variable ${hosts.dst[${I}]}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800171 ${onu_device_id}= Get Device ID From SN ${src['onu']}
172 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
173 ... ${of_id}
174 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
175 ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port}
176 Sleep 10s
Andy Bavier33e6dd32020-01-16 13:35:20 -0700177 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
178 ... Wait Until Keyword Succeeds 60s 2s
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700179 ... Check Ping False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
180 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800181 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
182 ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port}
183 Sleep 10s
184 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s
185 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
Andy Bavier33e6dd32020-01-16 13:35:20 -0700186 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
187 ... Wait Until Keyword Succeeds 60s 2s
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700188 ... Check Ping True ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
189 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
190 Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id}
191 Run Keyword and Ignore Error Collect Logs
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800192 END
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800193
suraj gourd64356b2019-11-07 13:26:20 +0000194Check OLT/ONU Authentication After Radius Pod Restart
suraj gour7f6d5fe2019-11-29 10:56:35 +0000195 [Documentation] After radius restart, triggers reassociation, checks status and
196 ... authentication, validates dhcp and ping. Note : wpa reassociate works only when
197 ... wpa supplicant is running in background hence it is recommended to remove
198 ... teardown from previous test or uncomment 'Teardown None'.
199 ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable
Suchitra Vemuri04245f72020-01-08 16:43:24 -0800200 [Tags] functional RadiusRestart released
Andy Bavierabeba262020-02-07 16:22:16 -0700201 [Setup] Run Keywords Announce Message START TEST RadiusRestart
202 ... AND Start Logging RadiusRestart
Andy Bavier4a8450e2020-02-04 08:58:37 -0700203 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700204 ... AND Stop Logging RadiusRestart
Andy Bavier4a8450e2020-02-04 08:58:37 -0700205 ... AND Announce Message END TEST RadiusRestart
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800206 ${waitforRestart} Set Variable 120s
suraj gourd64356b2019-11-07 13:26:20 +0000207 Wait Until Keyword Succeeds ${timeout} 15s Restart Pod ${NAMESPACE} ${RESTART_POD_NAME}
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800208 Wait Until Keyword Succeeds ${waitforRestart} 2s Validate Pod Status ${RESTART_POD_NAME} ${NAMESPACE}
209 ... Running
suraj gourd64356b2019-11-07 13:26:20 +0000210 FOR ${I} IN RANGE 0 ${num_onus}
211 ${src}= Set Variable ${hosts.src[${I}]}
212 ${dst}= Set Variable ${hosts.dst[${I}]}
suraj gourd64356b2019-11-07 13:26:20 +0000213 ${onu_device_id}= Get Device ID From SN ${src['onu']}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700214 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s
215 ... Get ONU Port in ONOS ${src['onu']} ${of_id}
216 Wait Until Keyword Succeeds ${timeout} 2s
217 ... Verify Eapol Flows Added For ONU ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
218 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
219 ... Validate Authentication After Reassociate True ${src['dp_iface_name']}
220 ... ${src['ip']} ${src['user']} ${src['pass']}
suraj gourd64356b2019-11-07 13:26:20 +0000221 ... ${src['container_type']} ${src['container_name']}
222 Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700223 ... ${ONOS_SSH_PORT} ${onu_port}
224 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
225 ... Validate DHCP and Ping True True ${src['dp_iface_name']}
226 ... ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']}
227 ... ${src['ip']} ${src['user']} ${src['pass']}
228 ... ${src['container_type']} ${src['container_name']}
229 ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']}
230 ... ${dst['pass']} ${dst['container_type']} ${dst['container_name']}
suraj gourd64356b2019-11-07 13:26:20 +0000231 Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure
232 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700233 Run Keyword and Ignore Error Get Device Output from Voltha ${onu_device_id}
234 Run Keyword and Ignore Error Collect Logs
suraj gourd64356b2019-11-07 13:26:20 +0000235 END
236
suraj gourd5cfdbb2019-12-13 12:44:55 +0000237Check DHCP attempt fails when subscriber is not added
238 [Documentation] Validates when removed subscriber access, DHCP attempt, ping fails and
239 ... when again added subscriber access, DHCP attempt, ping succeeds
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700240 ... Assuming that test1 or sanity test was executed where all the ONUs are authenticated/DHCP/pingable
Suchitra Vemuri04245f72020-01-08 16:43:24 -0800241 [Tags] functional SubsRemoveDHCP released
Andy Bavierabeba262020-02-07 16:22:16 -0700242 [Setup] Run Keywords Announce Message START TEST SubsRemoveDHCP
243 ... AND Start Logging SubsRemoveDHCP
Andy Bavier4a8450e2020-02-04 08:58:37 -0700244 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700245 ... AND Stop Logging SubsRemoveDHCP
Andy Bavier4a8450e2020-02-04 08:58:37 -0700246 ... AND Announce Message END TEST SubsRemoveDHCP
suraj gourd5cfdbb2019-12-13 12:44:55 +0000247 FOR ${I} IN RANGE 0 ${num_onus}
248 ${src}= Set Variable ${hosts.src[${I}]}
249 ${dst}= Set Variable ${hosts.dst[${I}]}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700250 ${onu_device_id}= Get Device ID From SN ${src['onu']}
suraj gourd5cfdbb2019-12-13 12:44:55 +0000251 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
252 ... ${of_id}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800253 Run Keyword And Ignore Error Login And Run Command On Remote System killall dhclient ${src['ip']}
254 ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
255 Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']}
256 ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
suraj gourd5cfdbb2019-12-13 12:44:55 +0000257 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
258 ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700259 Sleep 5s
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800260 Run Keyword And Ignore Error Login And Run Command On Remote System ps -ef | grep dhclient ${src['ip']}
261 ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700262 Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds ${timeout} 2s
263 ... Delete IP Addresses from Interface on Remote Host ${src['dp_iface_name']} ${src['ip']}
264 ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
265 Run Keyword And Ignore Error Login And Run Command On Remote System
266 ... ifconfig | grep -A 10 ens ${src['ip']}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800267 ... ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
suraj gourd5cfdbb2019-12-13 12:44:55 +0000268 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping False
269 ... False ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']}
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 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
274 ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port}
275 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True
276 ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']}
277 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
278 ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']}
279 ... ${dst['container_name']}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800280 Run Keyword and Ignore Error Collect Logs
281 END
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800282
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800283Test Disable and Enable ONU scenario for ATT workflow
284 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
285 ... Assuming that test1 was executed where all the ONUs are authenticated/DHCP/pingable
286 ... Perform disable on the ONUs, call volt-remove-subscriber and validate that the pings do not succeed
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700287 ... Perform enable on the ONUs, authentication check, volt-add-subscriber-access and
288 ... validate that the pings are successful
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800289 ... VOL-2284
Suchitra Vemuria7dae322020-02-19 22:38:18 -0800290 [Tags] functional ATT_DisableEnableONU released
Andy Bavierabeba262020-02-07 16:22:16 -0700291 [Setup] Run Keywords Announce Message START TEST ATT_DisableEnableONU
292 ... AND Start Logging ATT_DisableEnableONU
Andy Bavier4a8450e2020-02-04 08:58:37 -0700293 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700294 ... AND Stop Logging ATT_DisableEnableONU
Andy Bavier4a8450e2020-02-04 08:58:37 -0700295 ... AND Announce Message END TEST ATT_DisableEnableONU
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800296 FOR ${I} IN RANGE 0 ${num_onus}
297 ${src}= Set Variable ${hosts.src[${I}]}
298 ${dst}= Set Variable ${hosts.dst[${I}]}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800299 ${onu_device_id}= Get Device ID From SN ${src['onu']}
300 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
301 ... ${of_id}
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800302 Run Keyword And Continue On Failure Wait Until Keyword Succeeds 120s 2s
303 ... Verify ONU Port Is Enabled ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800304 Disable Device ${onu_device_id}
Suchitra Vemuri04245f72020-01-08 16:43:24 -0800305 Sleep 5s
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800306 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
307 ... ${ONOS_SSH_PORT} volt-remove-subscriber-access ${of_id} ${onu_port}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700308 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
309 ... Wait Until Keyword Succeeds 60s 2s Check Ping
310 ... False ${dst['dp_iface_ip_qinq']} ${src['dp_iface_name']}
311 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800312 ... ELSE sleep 60s
313 Enable Device ${onu_device_id}
314 Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${k8s_node_ip}
315 ... ${ONOS_SSH_PORT} ${onu_port}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700316 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure
317 ... Validate Authentication After Reassociate True
318 ... ${src['dp_iface_name']} ${src['ip']} ${src['user']} ${src['pass']}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800319 ... ${src['container_type']} ${src['container_name']}
320 Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700321 ... ${ONOS_SSH_PORT} ${onu_port}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800322 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
323 ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port}
324 Sleep 10s
325 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True
Andy Bavier08ae5852019-12-19 09:12:42 -0700326 ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800327 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
328 ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']}
329 ... ${dst['container_name']}
330 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 2s
331 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
Suchitra Vemuri5994cd12019-12-17 22:20:55 -0800332 Run Keyword and Ignore Error Collect Logs
suraj gourd5cfdbb2019-12-13 12:44:55 +0000333 END
suraj gourd5cfdbb2019-12-13 12:44:55 +0000334
Suchitra Vemuri937cd392020-01-12 17:10:42 -0800335Delete OLT, ReAdd OLT and Perform Sanity Test
336 [Documentation] Validates E2E Ping Connectivity and object states for the given scenario:
337 ... Disable and Delete the OLT
338 ... Create/Enable the same OLT again
339 ... Validate authentication/DHCP/E2E pings succeed for all the ONUs connected to the OLT
Suchitra Vemuria7dae322020-02-19 22:38:18 -0800340 [Tags] functional DeleteOLT released
Andy Bavierabeba262020-02-07 16:22:16 -0700341 [Setup] Run Keywords Announce Message START TEST DeleteOLT
342 ... AND Start Logging DeleteOLT
Andy Bavier4a8450e2020-02-04 08:58:37 -0700343 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700344 ... AND Stop Logging DeleteOLT
Andy Bavier4a8450e2020-02-04 08:58:37 -0700345 ... AND Announce Message END TEST DeleteOLT
Suchitra Vemuri937cd392020-01-12 17:10:42 -0800346 Run Keyword If ${has_dataplane} Clean Up Linux
347 Run Keyword If ${has_dataplane} Delete Device and Verify
348 Run Keyword and Ignore Error Collect Logs
349 # Recreate the OLT
350 Run Keyword If ${has_dataplane} Setup
351 Wait Until Keyword Succeeds ${timeout} 2s Perform Sanity Test
Suchitra Vemuri937cd392020-01-12 17:10:42 -0800352
Hema783279b2020-01-22 15:37:37 +0530353Test disable ONUs and OLT then delete ONUs and OLT
354 [Documentation] On deployed POD, disable the ONU, disable the OLT and then delete ONU and OLT.
355 ... This TC is to confirm that ONU removal is not impacting OLT
356 ... Devices will be removed during the execution of this TC
357 ... so calling setup at the end to add the devices back to avoid the confusion.
Suchitra Vemuria7dae322020-02-19 22:38:18 -0800358 [Tags] functional VOL-2354 DisableDeleteONUandOLT released
Andy Bavierabeba262020-02-07 16:22:16 -0700359 [Setup] Run Keywords Announce Message START TEST DisableDeleteONUandOLT
360 ... AND Start Logging DisableDeleteONUandOLT
Andy Bavier4a8450e2020-02-04 08:58:37 -0700361 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700362 ... AND Stop Logging DisableDeleteONUandOLT
Andy Bavier4a8450e2020-02-04 08:58:37 -0700363 ... AND Announce Message END TEST DisableDeleteONUandOLT
Suchitra Vemuriba4f3712020-01-24 16:18:26 -0800364 ${olt_device_id}= Get Device ID From SN ${olt_serial_number}
Hema783279b2020-01-22 15:37:37 +0530365 FOR ${I} IN RANGE 0 ${num_onus}
366 ${src}= Set Variable ${hosts.src[${I}]}
367 ${dst}= Set Variable ${hosts.dst[${I}]}
368 ${onu_device_id}= Get Device ID From SN ${src['onu']}
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800369 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
370 ... Validate Device ENABLED ACTIVE
Hema783279b2020-01-22 15:37:37 +0530371 ... REACHABLE ${src['onu']} onu=True onu_reason=omci-flows-pushed
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800372 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
373 ... Validate OLT Device ENABLED ACTIVE
Hema783279b2020-01-22 15:37:37 +0530374 ... REACHABLE ${olt_serial_number}
375 ${rc} ${output}= Run and Return Rc and Output
376 ... ${VOLTCTL_CONFIG}; voltctl device disable ${onu_device_id}
377 Should Be Equal As Integers ${rc} 0
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800378 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
379 ... Validate Device DISABLED UNKNOWN
Hema783279b2020-01-22 15:37:37 +0530380 ... REACHABLE ${src['onu']} onu=false
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800381 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
382 ... Validate OLT Device ENABLED ACTIVE
Hema783279b2020-01-22 15:37:37 +0530383 ... REACHABLE ${olt_serial_number}
384 END
385 ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device disable ${olt_device_id}
386 Should Be Equal As Integers ${rc} 0
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800387 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
388 ... Validate OLT Device DISABLED UNKNOWN REACHABLE
Hema783279b2020-01-22 15:37:37 +0530389 ... ${olt_serial_number}
390 FOR ${I} IN RANGE 0 ${num_onus}
391 ${src}= Set Variable ${hosts.src[${I}]}
392 ${dst}= Set Variable ${hosts.dst[${I}]}
393 ${onu_device_id}= Get Device ID From SN ${src['onu']}
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800394 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
395 ... Validate Device DISABLED DISCOVERED
396 ... UNREACHABLE ${src['onu']} onu=false
Hema783279b2020-01-22 15:37:37 +0530397 ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device delete ${onu_device_id}
398 Should Be Equal As Integers ${rc} 0
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800399 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s
400 ... Validate OLT Device DISABLED UNKNOWN
Hema783279b2020-01-22 15:37:37 +0530401 ... REACHABLE ${olt_serial_number}
402 END
403 ${rc} ${output}= Run and Return Rc and Output ${VOLTCTL_CONFIG}; voltctl device delete ${olt_device_id}
404 Should Be Equal As Integers ${rc} 0
Suchitra Vemuri014b6032020-02-14 18:13:13 -0800405 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 5s Test Empty Device List
Hema783279b2020-01-22 15:37:37 +0530406 #Adding setup here to add the devices back since this TC removes the devices
407 Run Keyword If ${has_dataplane} sleep 180s
Suchitra Vemuricd2f64f2020-02-18 18:30:27 -0800408 #setup
Hema783279b2020-01-22 15:37:37 +0530409
David Bainbridgef81cd642019-11-20 00:14:47 +0000410Sanity E2E Test for OLT/ONU on POD With Core Fail and Restart
411 [Documentation] Deploys an device instance and waits for it to authenticate. After
412 ... authentication is successful the rw-core deployment is scaled to 0 instances to
413 ... simulate a POD crash. The test then scales the rw-core back to a single instance
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700414 ... and configures ONOS for access. The test succeeds if the device is able to
David Bainbridgef81cd642019-11-20 00:14:47 +0000415 ... complete the DHCP sequence.
416 [Tags] bbsim rwcore-restart
Andy Bavier4a8450e2020-02-04 08:58:37 -0700417 [Setup] Run Keywords Announce Message START TEST RwCoreFailAndRestart
Andy Bavierabeba262020-02-07 16:22:16 -0700418 ... AND Start Logging RwCoreFailAndRestart
Andy Bavier4a8450e2020-02-04 08:58:37 -0700419 ... AND Clear All Devices Then Create New Device
420 [Teardown] Run Keywords Collect Logs
Andy Bavierabeba262020-02-07 16:22:16 -0700421 ... AND Stop Logging RwCoreFailAndRestart
Andy Bavier4a8450e2020-02-04 08:58:37 -0700422 ... AND Announce Message END TEST RwCoreFailAndRestart
David Bainbridgef81cd642019-11-20 00:14:47 +0000423 ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number}
424 Set Global Variable ${of_id}
David Bainbridgef81cd642019-11-20 00:14:47 +0000425 FOR ${I} IN RANGE 0 ${num_onus}
426 ${src}= Set Variable ${hosts.src[${I}]}
427 ${dst}= Set Variable ${hosts.dst[${I}]}
428 ${onu_device_id}= Get Device ID From SN ${src['onu']}
429 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
430 ... ${of_id}
David Bainbridgef81cd642019-11-20 00:14:47 +0000431 # Bring up the device and verify it authenticates
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700432 Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE REACHABLE
David Bainbridgef81cd642019-11-20 00:14:47 +0000433 ... ${onu_device_id} onu=True onu_reason=omci-flows-pushed
434 Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${k8s_node_ip}
435 ... ${ONOS_SSH_PORT} ${onu_port}
436 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True
437 ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']}
438 ... ${src['container_type']} ${src['container_name']}
439 Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip}
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000440 ... ${ONOS_SSH_PORT} ${onu_port}
441 END
442
443 # Scale down the rw-core deployment to 0 PODs and once confirmed, scale it back to 1
444 Scale K8s Deployment voltha voltha-rw-core 0
445 Wait Until Keyword Succeeds ${timeout} 2s Pod Does Not Exist voltha voltha-rw-core
446 # Ensure the ofagent POD goes "not-ready" as expected
447 Wait Until keyword Succeeds ${timeout} 2s
448 ... Check Expected Available Deployment Replicas voltha voltha-ofagent 0
449 # Scale up the core deployment and make sure both it and the ofagent deployment are back
450 Scale K8s Deployment voltha voltha-rw-core 1
451 Wait Until Keyword Succeeds ${timeout} 2s
452 ... Check Expected Available Deployment Replicas voltha voltha-rw-core 1
453 Wait Until Keyword Succeeds ${timeout} 2s
454 ... Check Expected Available Deployment Replicas voltha voltha-ofagent 1
455 # For some reason scaling down and up the POD behind a service causes the port forward to stop working,
456 # so restart the port forwarding for the API service
457 Restart VOLTHA Port Foward voltha-api-minimal
458 # Ensure that the ofagent pod is up and ready and the device is available in ONOS, this
459 # represents system connectivity being restored
460 Wait Until Keyword Succeeds ${timeout} 2s Device Is Available In ONOS
461 ... http://karaf:karaf@${k8s_node_ip}:${ONOS_REST_PORT} ${of_id}
462
463 FOR ${I} IN RANGE 0 ${num_onus}
464 # Add subscriber access and verify that DHCP completes to ensure system is still functioning properly
465 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
466 ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port}
467 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True
468 ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']}
469 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
470 ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']}
471 ... ${dst['container_name']}
472 Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure
473 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
474 END
475
476Sanity E2E Test for OLT/ONU on POD With OLT Adapters Fail and Restart
477 [Documentation] Deploys an device instance and waits for it to authenticate. After
478 ... authentication is successful the rw-core deployment is scaled to 0 instances to
479 ... simulate a POD crash. The test then scales the rw-core back to a single instance
480 ... and configures ONOS for access. The test succeeds if the device is able to
481 ... complete the DHCP sequence.
482 [Tags] bbsim olt-adapter-restart
Andy Bavierabeba262020-02-07 16:22:16 -0700483 [Setup] Run Keywords Announce Message START TEST OltAdapterRestart
484 ... AND Start Logging OltAdapterRestart
485 ... AND Clear All Devices Then Create New Device
486 [Teardown] Run Keywords Collect Logs
487 ... AND Stop Logging OltAdapterRestart
488 ... AND Announce Message END TEST OltAdapterRestart
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000489 ${of_id}= Wait Until Keyword Succeeds ${timeout} 15s Validate OLT Device in ONOS ${olt_serial_number}
490 Set Global Variable ${of_id}
491
492 FOR ${I} IN RANGE 0 ${num_onus}
493 ${src}= Set Variable ${hosts.src[${I}]}
494 ${dst}= Set Variable ${hosts.dst[${I}]}
495 ${onu_device_id}= Get Device ID From SN ${src['onu']}
496 ${onu_port}= Wait Until Keyword Succeeds ${timeout} 2s Get ONU Port in ONOS ${src['onu']}
497 ... ${of_id}
498
499 # Bring up the device and verify it authenticates
500 Wait Until Keyword Succeeds ${timeout} 5s Validate Device ENABLED ACTIVE REACHABLE
501 ... ${onu_device_id} onu=True onu_reason=omci-flows-pushed
502 Wait Until Keyword Succeeds ${timeout} 2s Verify Eapol Flows Added For ONU ${k8s_node_ip}
Zack Williamsa8fe75a2020-01-10 14:25:27 -0700503 ... ${ONOS_SSH_PORT} ${onu_port}
David Bainbridge3d6d5d32019-12-17 19:05:35 +0000504 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate Authentication True
505 ... ${src['dp_iface_name']} wpa_supplicant.conf ${src['ip']} ${src['user']} ${src['pass']}
506 ... ${src['container_type']} ${src['container_name']}
507 Wait Until Keyword Succeeds ${timeout} 2s Verify ONU in AAA-Users ${k8s_node_ip}
508 ... ${ONOS_SSH_PORT} ${onu_port}
509 END
510
511 # Scale down the open OLT adapter deployment to 0 PODs and once confirmed, scale it back to 1
512 Scale K8s Deployment voltha adapter-open-olt 0
513 Wait Until Keyword Succeeds ${timeout} 2s Pod Does Not Exist voltha adapter-open-olt
514 # Scale up the open OLT adapter deployment and make sure both it and the ofagent deployment are back
515 Scale K8s Deployment voltha adapter-open-olt 1
516 Wait Until Keyword Succeeds ${timeout} 2s
517 ... Check Expected Available Deployment Replicas voltha adapter-open-olt 1
518
519 # Ensure the device is available in ONOS, this represents system connectivity being restored
520 Wait Until Keyword Succeeds ${timeout} 2s Device Is Available In ONOS
521 ... http://karaf:karaf@${k8s_node_ip}:${ONOS_REST_PORT} ${of_id}
522
523 FOR ${I} IN RANGE 0 ${num_onus}
David Bainbridgef81cd642019-11-20 00:14:47 +0000524 # Add subscriber access and verify that DHCP completes to ensure system is still functioning properly
525 Wait Until Keyword Succeeds ${timeout} 2s Execute ONOS CLI Command ${k8s_node_ip}
526 ... ${ONOS_SSH_PORT} volt-add-subscriber-access ${of_id} ${onu_port}
527 Run Keyword If ${has_dataplane} Run Keyword And Continue On Failure Validate DHCP and Ping True
528 ... True ${src['dp_iface_name']} ${src['s_tag']} ${src['c_tag']} ${dst['dp_iface_ip_qinq']}
529 ... ${src['ip']} ${src['user']} ${src['pass']} ${src['container_type']} ${src['container_name']}
530 ... ${dst['dp_iface_name']} ${dst['ip']} ${dst['user']} ${dst['pass']} ${dst['container_type']}
531 ... ${dst['container_name']}
532 Wait Until Keyword Succeeds ${timeout} 2s Run Keyword And Continue On Failure
533 ... Validate Subscriber DHCP Allocation ${k8s_node_ip} ${ONOS_SSH_PORT} ${onu_port}
534 END
535
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -0700536*** Keywords ***
537Setup Suite
Andy Bavier88cd9f62019-11-26 16:22:33 -0700538 [Documentation] Set up the test suite
539 Common Test Suite Setup
Suchitra Vemuri65cd65f2019-08-30 14:39:22 -0700540
David Bainbridgef81cd642019-11-20 00:14:47 +0000541Clear All Devices Then Create New Device
542 [Documentation] Remove any devices from VOLTHA and ONOS
David Bainbridgef81cd642019-11-20 00:14:47 +0000543 # Remove all devices from voltha and nos
544 Delete All Devices and Verify
David Bainbridgef81cd642019-11-20 00:14:47 +0000545 # Execute normal test Setup Keyword
546 Setup
547