blob: f235048c41f41cbe234e9e63a8e0ec927cdf60f9 [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
Hardik Windlassa9b38262021-10-27 08:14:22 +000042${INFRA_NAMESPACE} default
TorstenThieme440b7c02020-12-18 15:42:57 +000043${timeout} 60s
44${of_id} 0
45${logical_id} 0
46${has_dataplane} True
47${external_libs} True
48${teardown_device} True
49${scripts} ../../scripts
50# Per-test logging on failure is turned off by default; set this variable to enable
51${container_log_dir} ${None}
52# flag for first test, needed due default timeout in BBSim to mimic OLT reboot of 60 seconds
53${firsttest} True
TorstenThiemec3c23232021-01-13 13:06:31 +000054# determines the environment workflow: DT, TT or ATT (default)
55# example: -v workflow:DT
56${workflow} ATT
TorstenThieme47983692021-06-17 10:43:35 +000057# KV Store Prefix
58# example: -v kvstoreprefix:voltha_voltha
59${kvstoreprefix} voltha_voltha
TorstenThieme440b7c02020-12-18 15:42:57 +000060# flag debugmode is used, if true timeout calculation various, can be passed via the command line too
61# example: -v debugmode:True
62${debugmode} False
63# logging flag to enable Collect Logs, can be passed via the command line too
64# example: -v logging:True
65${logging} False
66# if True execution will be paused before clean up, only use in case of manual testing, do not use in ci pipeline!
67# example: -v pausebeforecleanup:True
68${pausebeforecleanup} False
69# if True some outputs to console are done during running tests e.g. long duration flow test
70# example: -v print2console:True
71${print2console} False
72# if True (hard) kill will be used to restart onu adapter, else (soft) restart mechanism of k8s will be used
73# example: -v usekill2restart:True
74${usekill2restart} False
TorstenThieme45071602021-03-16 12:14:37 +000075# if True etcd check will be executed in test case teardown, if False etcd check will be executed in suite teardown
76# example: -v etcdcheckintestteardown:False
77${etcdcheckintestteardown} True
TorstenThieme440b7c02020-12-18 15:42:57 +000078${data_dir} ../data
TorstenThieme70bc5262021-01-19 12:12:55 +000079${suppressaddsubscriber} True
TorstenThieme440b7c02020-12-18 15:42:57 +000080
81
82*** Test Cases ***
83Reconcile In Starting-OpenOmci
84 [Documentation] Validates the Reconcile in Starting-OpenOmci
85 ... Reconcile test during starting-openomci in AT&T-workflow:
86 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +000087 ... - wait for device reason starting-openomci
TorstenThieme440b7c02020-12-18 15:42:57 +000088 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +000089 ... - wait for open-onu-adapter-go to restart
90 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +000091 ... - delete ONU and MIB-template in KV-store
92 [Tags] functionalOnuGo ReconcileStartingOpenOmciOnuGo
93 [Setup] Run Keywords Start Logging ReconcileStartingOpenOmciOnuGo
94 ... AND Setup Test
95 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +000096 Do Reconcile In Determined State starting-openomci
TorstenThieme440b7c02020-12-18 15:42:57 +000097 [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs
98 ... 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
TorstenThieme440b7c02020-12-18 15:42:57 +0000115 [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs
116 ... AND Teardown Test
117 ... AND Stop Logging ReconcileInitialMibDownloadedOnuGo
118
119Reconcile In Omci-Flows-Pushed
120 [Documentation] Validates the Reconcile in omci-flows-pushed
121 ... Former testcase: Reconcile Onu Device in Testsuite Voltha_ONUStateTest.robot
122 ... Reconcile test during omci-flows-pushed in AT&T-workflow:
123 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000124 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000125 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +0000126 ... - wait for open-onu-adapter-go to restart
127 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000128 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000129 ... - wait for device corresponding onu reason e.g. tech-profile-config-delete-success
130 ... - check UNI-ports disabled in ONOS
TorstenThieme440b7c02020-12-18 15:42:57 +0000131 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000132 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000133 ... - delete ONU and MIB-template in KV-store
134 [Tags] functionalOnuGo ReconcileOmciFlowsPushedOnuGo
135 [Setup] Run Keywords Start Logging ReconcileOmciFlowsPushedOnuGo
136 ... AND Setup Test
137 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +0000138 Do Reconcile In Omci-Flows-Pushed
TorstenThieme440b7c02020-12-18 15:42:57 +0000139 [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs
140 ... AND Teardown Test
141 ... AND Stop Logging ReconcileOmciFlowsPushedOnuGo
142
143Reconcile For Disabled Onu Device
144 [Documentation] Validates the Reconcile for disabled Onu device
145 ... Reconcile test for disabled Onu device in AT&T-workflow:
146 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000147 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000148 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000149 ... - wait for device corresponding onu reason e.g. tech-profile-config-delete-success
150 ... - check UNI-ports disabled in ONOS
151 ... - kill the open-onu-adapter-go
152 ... - wait for open-onu-adapter-go to restart
153 ... - check device reason is still the same before restart
TorstenThieme440b7c02020-12-18 15:42:57 +0000154 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000155 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000156 ... - delete ONU and MIB-template in KV-store
157 [Tags] functionalOnuGo ReconcileDisabledOnuDeviceOnuGo
158 [Setup] Run Keywords Start Logging ReconcileDisabledOnuDeviceOnuGo
159 ... AND Setup Test
160 Run Keyword If ${has_dataplane} Clean Up Linux
TorstenThiemee9017be2021-03-05 16:59:31 +0000161 Do Reconcile For Disabled Onu Device
TorstenThieme440b7c02020-12-18 15:42:57 +0000162 [Teardown] Run Keywords Run Keyword If ${logging} Collect Logs
163 ... AND Teardown Test
164 ... AND Stop Logging ReconcileDisabledOnuDeviceOnuGo
165
166*** Keywords ***
167Setup Suite
168 [Documentation] Set up the test suite
169 ${LogInfo}= Catenate
170 ... \r\nPassed arguments:
171 ... debugmode:${debugmode}, logging:${logging}, pausebeforecleanup:${pausebeforecleanup},
TorstenThieme47983692021-06-17 10:43:35 +0000172 ... print2console:${print2console}, usekill2restart:${usekill2restart}, workflow:${workflow},
173 ... kvstoreprefix:${kvstoreprefix}
TorstenThieme440b7c02020-12-18 15:42:57 +0000174 Log ${LogInfo} console=yes
175 Common Test Suite Setup
TorstenThieme440b7c02020-12-18 15:42:57 +0000176 # delete etcd MIB Template Data
177 Delete MIB Template Data
TorstenThieme45071602021-03-16 12:14:37 +0000178 # delete etcd onu data
179 Delete ONU Go Adapter ETCD Data validate=True
TorstenThieme440b7c02020-12-18 15:42:57 +0000180
TorstenThieme70bc5262021-01-19 12:12:55 +0000181
TorstenThieme440b7c02020-12-18 15:42:57 +0000182Teardown Suite
183 [Documentation] Replaces the Suite Teardown in utils.robot.
184 ... Cleans up and checks all ONU ports disabled in ONOS.
185 ... Furthermore gives the possibility to pause the execution.
186 Run Keyword If ${pausebeforecleanup} Import Library Dialogs
187 Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up!
188 Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes
189 Run Keyword If ${teardown_device} Delete All Devices and Verify
190 Run Keyword If ${usekill2restart} Restart Pod ${namespace} open-onu
TorstenThieme45071602021-03-16 12:14:37 +0000191 Run Keyword Unless ${etcdcheckintestteardown} Wait Until Keyword Succeeds ${timeout} 1s
TorstenThieme47983692021-06-17 10:43:35 +0000192 ... Validate Onu Data In Etcd 0 ${kvstoreprefix} without_pm_data=False
TorstenThieme731a7592021-07-01 14:26:54 +0000193 Wait for Ports in ONOS for all OLTs ${ONOS_SSH_IP} ${ONOS_SSH_PORT} 0 BBSM ${timeout}
TorstenThieme440b7c02020-12-18 15:42:57 +0000194 Close All ONOS SSH Connections
195
196Setup Test
197 [Documentation] Pre-test Setup
198 #test for empty device list
199 Test Empty Device List
200 Run Keyword If ${has_dataplane} Wait Until Keyword Succeeds 120s 10s Openolt is Up
201 ... ${olt_ssh_ip} ${olt_user} ${olt_pass}
202 Run Keyword If ${has_dataplane} Sleep 60s
203 #restart open-onu pod to reset crash loop back off mechansim of kubenetes
204 Run Keyword If "${firsttest}"=="False" and "${usekill2restart}"=="True" Restart Pod ${namespace} open-onu
205 Run Keyword If "${firsttest}"=="False" Sleep 35s
206 ${firsttest} Set Variable False
207 Set Suite Variable ${firsttest}
208 # Create a list of olt ids (logical and device_id)
209 ${olt_ids} Create List
210 FOR ${I} IN RANGE 0 ${num_olts}
211 #create/preprovision device
Andrea Campanella3dcce272021-01-15 16:04:47 +0100212 ${olt_device_id}= Run Keyword If "${list_olts}[${I}][type]" == "${None}"
TorstenThieme44136642021-02-12 13:41:17 +0000213 ... Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport]
214 ... ELSE Create Device ${list_olts}[${I}][ip] ${list_olts}[${I}][oltport] ${list_olts}[${I}][type]
TorstenThieme440b7c02020-12-18 15:42:57 +0000215 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
216 #validate olt states
217 Wait Until Keyword Succeeds ${timeout} 5s
Hardik Windlass8b446492021-06-10 06:25:23 +0000218 ... Validate OLT Device PREPROVISIONED UNKNOWN UNKNOWN ${olt_device_id} by_dev_id=True
TorstenThieme440b7c02020-12-18 15:42:57 +0000219 Sleep 5s
220 ${logical_id}= Get Logical Device ID From SN ${olt_serial_number}
221 ${olt} Create Dictionary device_id ${olt_device_id} logical_id ${logical_id}
222 ... of_id ${of_id} sn ${olt_serial_number}
223 Append To List ${olt_ids} ${olt}
224 END
225 Set Global Variable ${olt_ids}
226
227Teardown Test
228 [Documentation] Post-test Teardown
TorstenThieme45071602021-03-16 12:14:37 +0000229 Run Keyword If ${pausebeforecleanup} Import Library Dialogs
230 Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up!
231 Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes
TorstenThiemee9017be2021-03-05 16:59:31 +0000232 Run Keyword If ${teardown_device} Delete All Devices and Verify
TorstenThieme440b7c02020-12-18 15:42:57 +0000233 # delete etcd MIB Template Data
234 Delete MIB Template Data
TorstenThiemeb355eb62021-03-09 14:04:55 +0000235 # check etcd data are empty
TorstenThieme45071602021-03-16 12:14:37 +0000236 Run Keyword If ${etcdcheckintestteardown} Wait Until Keyword Succeeds ${timeout} 1s
TorstenThieme47983692021-06-17 10:43:35 +0000237 ... Validate Onu Data In Etcd 0 ${kvstoreprefix} without_pm_data=False
TorstenThieme440b7c02020-12-18 15:42:57 +0000238 Sleep 5s
239
240Do Reconcile In Determined State
241 [Documentation] This keyword reconciles ONU device when passed reason is reached and
242 ... check the state afterwards.
243 ... Following steps will be executed:
244 ... - enable OLT device
245 ... - wait for passed openonu reason
246 ... - restart openonu adaptor
TorstenThiemec3c23232021-01-13 13:06:31 +0000247 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000248 [Arguments] ${expected_onu_reason}
TorstenThiemec3c23232021-01-13 13:06:31 +0000249 ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}= Map State
250 ... ${expected_onu_reason}
251 Should Be True ${onu_state_nb}<=5
252 ... Wrong expected onu reason ${expected_onu_reason}, must be lower than 'omci-flows-pushed'!
TorstenThieme440b7c02020-12-18 15:42:57 +0000253 FOR ${I} IN RANGE 0 ${num_olts}
254 #get olt serial number
255 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
256 #validate olt states
257 ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number}
258 Enable Device ${olt_device_id}
259 END
260 Current State Test All Onus ${expected_onu_reason}
261 Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace}
262 ... ELSE Restart And Check Onu Adaptor ${namespace}
TorstenThiemec3c23232021-01-13 13:06:31 +0000263 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT
TorstenThieme136ebf72021-02-26 14:27:07 +0000264 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT
TorstenThiemec3c23232021-01-13 13:06:31 +0000265 ... ELSE Perform Sanity Test
TorstenThieme440b7c02020-12-18 15:42:57 +0000266
267Do Reconcile For Disabled Onu Device
268 [Documentation] This keyword reconciles ONU device for a disabled onu device and
269 ... check the state afterwards.
270 ... Following steps will be executed:
271 ... - enable OLT device
TorstenThiemec3c23232021-01-13 13:06:31 +0000272 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000273 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000274 ... - wait for corresponding openonu reason
TorstenThieme440b7c02020-12-18 15:42:57 +0000275 ... - check UNI-ports disabled in ONOS
276 ... - restart openonu adaptor
277 ... - check openonu adaptor is ready again
TorstenThiemec3c23232021-01-13 13:06:31 +0000278 ... - check device reason is still before restart
TorstenThieme440b7c02020-12-18 15:42:57 +0000279 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000280 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000281 FOR ${I} IN RANGE 0 ${num_olts}
282 #get olt serial number
283 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
284 #validate olt states
285 ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number}
286 Enable Device ${olt_device_id}
287 END
TorstenThiemec3c23232021-01-13 13:06:31 +0000288 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT
TorstenThieme136ebf72021-02-26 14:27:07 +0000289 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT
TorstenThiemec3c23232021-01-13 13:06:31 +0000290 ... ELSE Perform Sanity Test
TorstenThieme440b7c02020-12-18 15:42:57 +0000291 Disable Onu Device
TorstenThieme3871cf72021-01-21 14:11:57 +0000292 ${alternativeonustates}= Create List omci-flows-deleted
293 Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock
294 ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock
295 ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates}
TorstenThieme440b7c02020-12-18 15:42:57 +0000296 Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace}
297 ... ELSE Restart And Check Onu Adaptor ${namespace}
TorstenThieme3871cf72021-01-21 14:11:57 +0000298 Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock
299 ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock
300 ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates}
TorstenThieme731a7592021-07-01 14:26:54 +0000301 Wait for all ONU Ports in ONOS Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT}
TorstenThieme440b7c02020-12-18 15:42:57 +0000302 Enable Onu Device
TorstenThieme70bc5262021-01-19 12:12:55 +0000303 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber}
TorstenThieme136ebf72021-02-26 14:27:07 +0000304 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber}
TorstenThieme70bc5262021-01-19 12:12:55 +0000305 ... ELSE Perform Sanity Test ${suppressaddsubscriber}
TorstenThieme440b7c02020-12-18 15:42:57 +0000306
307Do Reconcile In Omci-Flows-Pushed
308 [Documentation] This keyword reconciles ONU device in omci-flows-pushed and check the state afterwards.
309 ... Reconcile test during omci-flows-pushed in AT&T-workflow:
310 ... - create and enable one BBSIM-ONU (no MIB-template should be available in KV-store)
TorstenThiemec3c23232021-01-13 13:06:31 +0000311 ... - perform sanity test include add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000312 ... - kill the open-onu-adapter-go
TorstenThiemec3c23232021-01-13 13:06:31 +0000313 ... - wait for open-onu-adapter-go to restart
314 ... - perform sanity test suppress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000315 ... - disable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000316 ... - wait for corresponding device reason
317 ... - check UNI-ports disabled in ONOS
TorstenThieme440b7c02020-12-18 15:42:57 +0000318 ... - enable onu device
TorstenThiemec3c23232021-01-13 13:06:31 +0000319 ... - perform sanity test supress add subscriber
TorstenThieme440b7c02020-12-18 15:42:57 +0000320 FOR ${I} IN RANGE 0 ${num_olts}
321 #get olt serial number
322 ${olt_serial_number}= Set Variable ${list_olts}[${I}][sn]
323 #validate olt states
324 ${olt_device_id}= Get OLTDeviceID From OLT List ${olt_serial_number}
325 Enable Device ${olt_device_id}
326 END
TorstenThiemec3c23232021-01-13 13:06:31 +0000327 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT
TorstenThieme136ebf72021-02-26 14:27:07 +0000328 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT
TorstenThiemec3c23232021-01-13 13:06:31 +0000329 ... ELSE Perform Sanity Test
TorstenThieme440b7c02020-12-18 15:42:57 +0000330 Run Keyword If ${usekill2restart} Kill And Check Onu Adaptor ${namespace}
331 ... ELSE Restart And Check Onu Adaptor ${namespace}
TorstenThieme70bc5262021-01-19 12:12:55 +0000332 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber}
TorstenThieme136ebf72021-02-26 14:27:07 +0000333 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber}
TorstenThieme70bc5262021-01-19 12:12:55 +0000334 ... ELSE Perform Sanity Test ${suppressaddsubscriber}
TorstenThieme440b7c02020-12-18 15:42:57 +0000335 Disable Onu Device
TorstenThieme3871cf72021-01-21 14:11:57 +0000336 ${alternativeonustates}= Create List omci-flows-deleted
337 Run Keyword If "${workflow}"=="DT" Current State Test All Onus omci-admin-lock
338 ... ELSE IF "${workflow}"=="TT" Current State Test All Onus omci-admin-lock
339 ... ELSE Current State Test All Onus omci-admin-lock alternativeonustate=${alternativeonustates}
TorstenThieme731a7592021-07-01 14:26:54 +0000340 Wait for all ONU Ports in ONOS Disabled ${ONOS_SSH_IP} ${ONOS_SSH_PORT}
TorstenThieme440b7c02020-12-18 15:42:57 +0000341 Enable Onu Device
TorstenThieme70bc5262021-01-19 12:12:55 +0000342 Run Keyword If "${workflow}"=="DT" Perform Sanity Test DT ${suppressaddsubscriber}
TorstenThieme136ebf72021-02-26 14:27:07 +0000343 ... ELSE IF "${workflow}"=="TT" Perform Sanity Tests TT ${suppressaddsubscriber}
TorstenThieme70bc5262021-01-19 12:12:55 +0000344 ... ELSE Perform Sanity Test ${suppressaddsubscriber}