blob: 14c7964d073681d8e7d6b2ad4d4d54f76d633913 [file] [log] [blame]
TorstenThieme440b7c02020-12-18 15:42:57 +00001# Copyright 2020 - present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15*** Settings ***
TorstenThiemec3c23232021-01-13 13:06:31 +000016Documentation Test different Reconcile scenarios of ONU Go adapter with all three workflows ATT, DT and TT.
TorstenThieme440b7c02020-12-18 15:42:57 +000017... Test suite is dedicated for only one ONU! Run robot with bbsim-kind.yaml only!
18... Not for DT/TT workflow!
19... Hint: default timeout in BBSim to mimic OLT reboot is 60 seconds!
20... This behaviour of BBSim can be modified by 'oltRebootDelay: 60' in BBSim section of helm chart or
21... used values.yaml during 'voltha up'.
22Suite Setup Setup Suite
23Suite Teardown Teardown Suite
24Test Setup Setup
25Test Teardown Teardown
26Library Collections
27Library String
28Library OperatingSystem
29Library XML
30Library RequestsLibrary
31Library ../../libraries/DependencyLibrary.py
32Resource ../../libraries/onos.robot
33Resource ../../libraries/voltctl.robot
34Resource ../../libraries/voltha.robot
35Resource ../../libraries/utils.robot
36Resource ../../libraries/k8s.robot
37Resource ../../libraries/onu_utilities.robot
38Resource ../../variables/variables.robot
39
40*** Variables ***
41${namespace} voltha
42${timeout} 60s
43${of_id} 0
44${logical_id} 0
45${has_dataplane} True
46${external_libs} True
47${teardown_device} True
48${scripts} ../../scripts
49# Per-test logging on failure is turned off by default; set this variable to enable
50${container_log_dir} ${None}
51# flag for first test, needed due default timeout in BBSim to mimic OLT reboot of 60 seconds
52${firsttest} True
TorstenThiemec3c23232021-01-13 13:06:31 +000053# determines the environment workflow: DT, TT or ATT (default)
54# example: -v workflow:DT
55${workflow} ATT
TorstenThieme47983692021-06-17 10:43:35 +000056# KV Store Prefix
57# example: -v kvstoreprefix:voltha_voltha
58${kvstoreprefix} voltha_voltha
TorstenThieme440b7c02020-12-18 15:42:57 +000059# flag debugmode is used, if true timeout calculation various, can be passed via the command line too
60# example: -v debugmode:True
61${debugmode} False
62# logging flag to enable Collect Logs, can be passed via the command line too
63# example: -v logging:True
64${logging} False
65# if True execution will be paused before clean up, only use in case of manual testing, do not use in ci pipeline!
66# example: -v pausebeforecleanup:True
67${pausebeforecleanup} False
68# if True some outputs to console are done during running tests e.g. long duration flow test
69# example: -v print2console:True
70${print2console} False
71# if True (hard) kill will be used to restart onu adapter, else (soft) restart mechanism of k8s will be used
72# example: -v usekill2restart:True
73${usekill2restart} False
TorstenThieme45071602021-03-16 12:14:37 +000074# if True etcd check will be executed in test case teardown, if False etcd check will be executed in suite teardown
75# example: -v etcdcheckintestteardown:False
76${etcdcheckintestteardown} True
TorstenThieme440b7c02020-12-18 15:42:57 +000077${data_dir} ../data
TorstenThieme70bc5262021-01-19 12:12:55 +000078${suppressaddsubscriber} True
TorstenThieme440b7c02020-12-18 15:42:57 +000079
80
81*** Test Cases ***
82Reconcile In Starting-OpenOmci
83 [Documentation] Validates the Reconcile in Starting-OpenOmci
84 ... Reconcile test during starting-openomci in AT&T-workflow:
85 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +000086 ... - wait for device reason starting-openomci
TorstenThieme440b7c02020-12-18 15:42:57 +000087 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +000088 ... - wait for open-onu-adapter-go to restart
89 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +000090 ... - delete ONU and MIB-template in KV-store
91 [Tags] functionalOnuGo ReconcileStartingOpenOmciOnuGo
92 [Setup] Run Keywords Start Logging ReconcileStartingOpenOmciOnuGo
93 ... AND Setup Test
94 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +000095 Do Reconcile In Determined State starting-openomci
TorstenThieme3494ceb2021-07-19 09:47:24 +000096 [Teardown] Run Keywords Run Keyword If ${logging} Get Logical Id of OLT
97 ... AND Run Keyword If ${logging} Collect Logs
TorstenThieme440b7c02020-12-18 15:42:57 +000098 ... AND Teardown Test
99 ... AND Stop Logging ReconcileStartingOpenOmciOnuGo
100
101Reconcile In Initial-Mib-Downloaded
102 [Documentation] Validates the Reconcile in initial-mib-downloaded
103 ... Reconcile test during initial-mib-downloaded in AT&T-workflow:
104 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000105 ... - wait for device reason initial-mib-downloaded
TorstenThieme440b7c02020-12-18 15:42:57 +0000106 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +0000107 ... - wait for open-onu-adapter-go to restart
108 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000109 ... - delete ONU and MIB-template in KV-store
110 [Tags] functionalOnuGo ReconcileInitialMibDownloadedOnuGo
111 [Setup] Run Keywords Start Logging ReconcileInitialMibDownloadedOnuGo
112 ... AND Setup Test
113 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +0000114 Do Reconcile In Determined State initial-mib-downloaded
TorstenThieme3494ceb2021-07-19 09:47:24 +0000115 [Teardown] Run Keywords Run Keyword If ${logging} Get Logical Id of OLT
116 ... AND Run Keyword If ${logging} Collect Logs
TorstenThieme440b7c02020-12-18 15:42:57 +0000117 ... AND Teardown Test
118 ... AND Stop Logging ReconcileInitialMibDownloadedOnuGo
119
120Reconcile In Omci-Flows-Pushed
121 [Documentation] Validates the Reconcile in omci-flows-pushed
122 ... Former testcase: Reconcile Onu Device in Testsuite Voltha_ONUStateTest.robot
123 ... Reconcile test during omci-flows-pushed in AT&T-workflow:
124 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000125 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000126 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +0000127 ... - wait for open-onu-adapter-go to restart
128 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000129 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000130 ... - wait for device corresponding onu reason e.g. tech-profile-config-delete-success
131 ... - check UNI-ports disabled in ONOS
TorstenThieme440b7c02020-12-18 15:42:57 +0000132 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000133 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000134 ... - delete ONU and MIB-template in KV-store
135 [Tags] functionalOnuGo ReconcileOmciFlowsPushedOnuGo
136 [Setup] Run Keywords Start Logging ReconcileOmciFlowsPushedOnuGo
137 ... AND Setup Test
138 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +0000139 Do Reconcile In Omci-Flows-Pushed
TorstenThieme3494ceb2021-07-19 09:47:24 +0000140 [Teardown] Run Keywords Run Keyword If ${logging} Get Logical Id of OLT
141 ... AND Run Keyword If ${logging} Collect Logs
TorstenThieme440b7c02020-12-18 15:42:57 +0000142 ... AND Teardown Test
143 ... AND Stop Logging ReconcileOmciFlowsPushedOnuGo
144
145Reconcile For Disabled Onu Device
146 [Documentation] Validates the Reconcile for disabled Onu device
147 ... Reconcile test for disabled Onu device in AT&T-workflow:
148 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000149 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000150 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000151 ... - wait for device corresponding onu reason e.g. tech-profile-config-delete-success
152 ... - check UNI-ports disabled in ONOS
153 ... - kill the open-onu-adapter-go
154 ... - wait for open-onu-adapter-go to restart
155 ... - check device reason is still the same before restart
TorstenThieme440b7c02020-12-18 15:42:57 +0000156 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000157 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000158 ... - delete ONU and MIB-template in KV-store
159 [Tags] functionalOnuGo ReconcileDisabledOnuDeviceOnuGo
160 [Setup] Run Keywords Start Logging ReconcileDisabledOnuDeviceOnuGo
161 ... AND Setup Test
162 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +0000163 Do Reconcile For Disabled Onu Device
TorstenThieme3494ceb2021-07-19 09:47:24 +0000164 [Teardown] Run Keywords Run Keyword If ${logging} Get Logical Id of OLT
165 ... AND Run Keyword If ${logging} Collect Logs
TorstenThieme440b7c02020-12-18 15:42:57 +0000166 ... AND Teardown Test
167 ... AND Stop Logging ReconcileDisabledOnuDeviceOnuGo
168
169*** Keywords ***
170Setup Suite
171 [Documentation] Set up the test suite
172 ${LogInfo}= Catenate
173 ... \r\nPassed arguments:
174 ... debugmode:${debugmode}, logging:${logging}, pausebeforecleanup:${pausebeforecleanup},
TorstenThieme47983692021-06-17 10:43:35 +0000175 ... print2console:${print2console}, usekill2restart:${usekill2restart}, workflow:${workflow},
176 ... kvstoreprefix:${kvstoreprefix}
TorstenThieme440b7c02020-12-18 15:42:57 +0000177 Log ${LogInfo} console=yes
178 Common Test Suite Setup
TorstenThieme440b7c02020-12-18 15:42:57 +0000179 # delete etcd MIB Template Data
180 Delete MIB Template Data
TorstenThieme45071602021-03-16 12:14:37 +0000181 # delete etcd onu data
182 Delete ONU Go Adapter ETCD Data validate=True
TorstenThieme440b7c02020-12-18 15:42:57 +0000183
TorstenThieme70bc5262021-01-19 12:12:55 +0000184
TorstenThieme440b7c02020-12-18 15:42:57 +0000185Teardown Suite
186 [Documentation] Replaces the Suite Teardown in utils.robot.
187 ... Cleans up and checks all ONU ports disabled in ONOS.
188 ... Furthermore gives the possibility to pause the execution.
189 Run Keyword If ${pausebeforecleanup} Import Library Dialogs
190 Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up!
191 Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes
192 Run Keyword If ${teardown_device} Delete All Devices and Verify
193 Run Keyword If ${usekill2restart} Restart Pod ${namespace} open-onu
TorstenThieme45071602021-03-16 12:14:37 +0000194 Run Keyword Unless ${etcdcheckintestteardown} Wait Until Keyword Succeeds ${timeout} 1s
TorstenThieme47983692021-06-17 10:43:35 +0000195 ... Validate Onu Data In Etcd 0 ${kvstoreprefix} without_pm_data=False
TorstenThieme731a7592021-07-01 14:26:54 +0000196 Wait for Ports in ONOS for all OLTs ${ONOS_SSH_IP} ${ONOS_SSH_PORT} 0 BBSM ${timeout}
TorstenThieme440b7c02020-12-18 15:42:57 +0000197 Close All ONOS SSH Connections
198
199Setup Test
200 [Documentation] Pre-test Setup
201 #test for empty device list
202 Test Empty Device List
203 Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds 120s 10s Openolt is Up
204 ... ${olt_ssh_ip} ${olt_user} ${olt_pass}
205 Run Keyword If ${has_dataplane} Sleep 60s
206 #restart open-onu pod to reset crash loop back off mechansim of kubenetes
207 Run Keyword If "${firsttest}"=="False" and "${usekill2restart}"=="True" Restart Pod ${namespace} open-onu
208 Run Keyword If "${firsttest}"=="False" Sleep 35s
209 ${firsttest} Set Variable False
210 Set Suite Variable ${firsttest}
211 # Create a list of olt ids (logical and device_id)
212 ${olt_ids} Create List
213 FOR ${I} IN RANGE 0 ${num_olts}
214 #create/preprovision device
Andrea Campanella3dcce272021-01-15 16:04:47 +0100215 ${olt_device_id}= Run Keyword If "${list_olts}[${I}][type]" == "${None}"
TorstenThieme44136642021-02-12 13:41:17 +0000216 ... Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport]
217 ... ELSE Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport] ${list_olts}[${I}][type]
TorstenThieme440b7c02020-12-18 15:42:57 +0000218 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
219 #validate olt states
220 Wait Until Keyword Succeeds ${timeout} 5s
Hardik Windlass8b446492021-06-10 06:25:23 +0000221 ... Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN ${olt_device_id} by_dev_id=True
TorstenThieme440b7c02020-12-18 15:42:57 +0000222 Sleep 5s
223 ${logical_id}= Get Logical Device ID From SN ${olt_serial_number}
224 ${olt} Create Dictionary device_id ${olt_device_id} logical_id ${logical_id}
225 ... of_id ${of_id} sn ${olt_serial_number}
226 Append To List ${olt_ids} ${olt}
227 END
228 Set Global Variable ${olt_ids}
229
230Teardown Test
231 [Documentation] Post-test Teardown
TorstenThieme45071602021-03-16 12:14:37 +0000232 Run Keyword If ${pausebeforecleanup} Import Library Dialogs
233 Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up!
234 Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes
TorstenThiemee9017be2021-03-05 16:59:31 +0000235 Run Keyword If ${teardown_device} Delete All Devices and Verify
TorstenThieme440b7c02020-12-18 15:42:57 +0000236 # delete etcd MIB Template Data
237 Delete MIB Template Data
TorstenThiemeb355eb62021-03-09 14:04:55 +0000238 # check etcd data are empty
TorstenThieme45071602021-03-16 12:14:37 +0000239 Run Keyword If ${etcdcheckintestteardown} Wait Until Keyword Succeeds ${timeout} 1s
TorstenThieme47983692021-06-17 10:43:35 +0000240 ... Validate Onu Data In Etcd 0 ${kvstoreprefix} without_pm_data=False
TorstenThieme440b7c02020-12-18 15:42:57 +0000241 Sleep 5s
242
243Do Reconcile In Determined State
244 [Documentation] This keyword reconciles ONU device when passed reason is reached and
245 ... check the state afterwards.
246 ... Following steps will be executed:
247 ... - enable OLT device
248 ... - wait for passed openonu reason
249 ... - restart openonu adaptor
TorstenThiemec3c23232021-01-13 13:06:31 +0000250 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000251 [Arguments] ${expected_onu_reason}
TorstenThiemec3c23232021-01-13 13:06:31 +0000252 ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= Map State
253 ... ${expected_onu_reason}
254 Should Be True ${onu_state_nb}<=5
255 ... Wrong expected onu reason ${expected_onu_reason}, must be lower than 'omci-flows-pushed'!
TorstenThieme440b7c02020-12-18 15:42:57 +0000256 FOR ${I} IN RANGE 0 ${num_olts}
257 #get olt serial number
258 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
259 #validate olt states
260 ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number}
261 Enable Device ${olt_device_id}
262 END
263 Current State Test All Onus ${expected_onu_reason}
264 Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace}
265 ... ELSE Restart And Check Onu Adaptor ${namespace}
TorstenThiemec3c23232021-01-13 13:06:31 +0000266 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT
TorstenThieme136ebf72021-02-26 14:27:07 +0000267 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT
TorstenThiemec3c23232021-01-13 13:06:31 +0000268 ... ELSE Perform Sanity Test
TorstenThieme440b7c02020-12-18 15:42:57 +0000269
270Do Reconcile For Disabled Onu Device
271 [Documentation] This keyword reconciles ONU device for a disabled onu device and
272 ... check the state afterwards.
273 ... Following steps will be executed:
274 ... - enable OLT device
TorstenThiemec3c23232021-01-13 13:06:31 +0000275 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000276 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000277 ... - wait for corresponding openonu reason
TorstenThieme440b7c02020-12-18 15:42:57 +0000278 ... - check UNI-ports disabled in ONOS
279 ... - restart openonu adaptor
280 ... - check openonu adaptor is ready again
TorstenThiemec3c23232021-01-13 13:06:31 +0000281 ... - check device reason is still before restart
TorstenThieme440b7c02020-12-18 15:42:57 +0000282 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000283 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000284 FOR ${I} IN RANGE 0 ${num_olts}
285 #get olt serial number
286 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
287 #validate olt states
288 ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number}
289 Enable Device ${olt_device_id}
290 END
TorstenThiemec3c23232021-01-13 13:06:31 +0000291 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT
TorstenThieme136ebf72021-02-26 14:27:07 +0000292 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT
TorstenThiemec3c23232021-01-13 13:06:31 +0000293 ... ELSE Perform Sanity Test
TorstenThieme440b7c02020-12-18 15:42:57 +0000294 Disable Onu Device
TorstenThieme3871cf72021-01-21 14:11:57 +0000295 ${alternativeonustates}= Create List omci-flows-deleted
296 Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock
297 ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock
298 ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates}
TorstenThieme440b7c02020-12-18 15:42:57 +0000299 Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace}
300 ... ELSE Restart And Check Onu Adaptor ${namespace}
TorstenThieme3871cf72021-01-21 14:11:57 +0000301 Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock
302 ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock
303 ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates}
TorstenThieme731a7592021-07-01 14:26:54 +0000304 Wait for all ONU Ports in ONOS Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT}
TorstenThieme440b7c02020-12-18 15:42:57 +0000305 Enable Onu Device
TorstenThieme70bc5262021-01-19 12:12:55 +0000306 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber}
TorstenThieme136ebf72021-02-26 14:27:07 +0000307 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber}
TorstenThieme70bc5262021-01-19 12:12:55 +0000308 ... ELSE Perform Sanity Test ${suppressaddsubscriber}
TorstenThieme440b7c02020-12-18 15:42:57 +0000309
310Do Reconcile In Omci-Flows-Pushed
311 [Documentation] This keyword reconciles ONU device in omci-flows-pushed and check the state afterwards.
312 ... Reconcile test during omci-flows-pushed in AT&T-workflow:
313 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000314 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000315 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +0000316 ... - wait for open-onu-adapter-go to restart
317 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000318 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000319 ... - wait for corresponding device reason
320 ... - check UNI-ports disabled in ONOS
TorstenThieme440b7c02020-12-18 15:42:57 +0000321 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000322 ... - perform sanity test supress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000323 FOR ${I} IN RANGE 0 ${num_olts}
324 #get olt serial number
325 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
326 #validate olt states
327 ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number}
328 Enable Device ${olt_device_id}
329 END
TorstenThiemec3c23232021-01-13 13:06:31 +0000330 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT
TorstenThieme136ebf72021-02-26 14:27:07 +0000331 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT
TorstenThiemec3c23232021-01-13 13:06:31 +0000332 ... ELSE Perform Sanity Test
TorstenThieme440b7c02020-12-18 15:42:57 +0000333 Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace}
334 ... ELSE Restart And Check Onu Adaptor ${namespace}
TorstenThieme70bc5262021-01-19 12:12:55 +0000335 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber}
TorstenThieme136ebf72021-02-26 14:27:07 +0000336 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber}
TorstenThieme70bc5262021-01-19 12:12:55 +0000337 ... ELSE Perform Sanity Test ${suppressaddsubscriber}
TorstenThieme440b7c02020-12-18 15:42:57 +0000338 Disable Onu Device
TorstenThieme3871cf72021-01-21 14:11:57 +0000339 ${alternativeonustates}= Create List omci-flows-deleted
340 Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock
341 ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock
342 ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates}
TorstenThieme731a7592021-07-01 14:26:54 +0000343 Wait for all ONU Ports in ONOS Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT}
TorstenThieme440b7c02020-12-18 15:42:57 +0000344 Enable Onu Device
TorstenThieme70bc5262021-01-19 12:12:55 +0000345 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber}
TorstenThieme136ebf72021-02-26 14:27:07 +0000346 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber}
TorstenThieme70bc5262021-01-19 12:12:55 +0000347 ... ELSE Perform Sanity Test ${suppressaddsubscriber}