blob: 8ace201c82b2fbc861af47017fd3b7daecd0fd61 [file] [log] [blame]
TorstenThiemed4f48962020-12-08 12:17:19 +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
TorstenThieme840380b2020-10-02 09:31:56 +000015*** Settings ***
TorstenThieme2d8327b2022-03-15 08:42:27 +000016Documentation Test MIB Template handling of ONU Go adapter
17... with BBSIM controlledActivation: only-onu only!
18... Set up BBSIM with 'onu=2' (as well as 'pon=2') and 'controlledActivation=only-onu' e.g. with Extra Helm Flags!
19... Run robot with bbsim-kind-2x2.yaml (needed for test case ONU MIB Template Data Test)
20... For test cases Unknown ME/Attribute bbsim-kind.yaml would work too.
21... For Unknown ME set up BBSIM with injectOmciUnknownME=true e.g. with Extra Helm Flags!
22... For Unknown Attribute set up BBSIM with injectOmciUnknownAttributes=true e.g. with Extra Helm Flags!
TorstenThieme840380b2020-10-02 09:31:56 +000023Suite Setup Setup Suite
24Suite Teardown Teardown Suite
25Test Setup Setup
26Test Teardown Teardown
27Library Collections
28Library String
29Library OperatingSystem
30Library XML
31Library RequestsLibrary
32Library ../../libraries/DependencyLibrary.py
33Resource ../../libraries/onos.robot
34Resource ../../libraries/voltctl.robot
35Resource ../../libraries/voltha.robot
36Resource ../../libraries/utils.robot
37Resource ../../libraries/k8s.robot
TorstenThieme440b7c02020-12-18 15:42:57 +000038Resource ../../libraries/onu_utilities.robot
TorstenThiemefe7099e2021-01-29 08:41:04 +000039Resource ../../libraries/bbsim.robot
TorstenThieme840380b2020-10-02 09:31:56 +000040Resource ../../variables/variables.robot
41
42*** Variables ***
TorstenThieme2d8327b2022-03-15 08:42:27 +000043${NAMESPACE} voltha
44${INFRA_NAMESPACE} default
45${timeout} 60s
46${of_id} 0
47${logical_id} 0
48${has_dataplane} True
49${external_libs} True
TorstenThieme840380b2020-10-02 09:31:56 +000050${teardown_device} True
51${scripts} ../../scripts
52# Per-test logging on failure is turned off by default; set this variable to enable
53${container_log_dir} ${None}
54
55# flag debugmode is used, if true timeout calculation various, can be passed via the command line too
56# example: -v debugmode:True
57${debugmode} False
58# logging flag to enable Collect Logs, can be passed via the command line too
59# example: -v logging:True
60${logging} False
61# if True execution will be paused before clean up
62# example: -v pausebeforecleanup:True
63${pausebeforecleanup} False
TorstenThieme89930b92022-06-16 12:13:51 +000064# Log Level of Helm chart
65# example: -v helmloglevel:WARN
66${helmloglevel} DEBUG
TorstenThieme840380b2020-10-02 09:31:56 +000067${data_dir} ../data
68
Hardik Windlassb1bda362021-11-24 11:54:36 +000069# flag to choose the subscriber provisioning command type in ONOS
70# TT often provision a single services for a subscriber (eg: hsia, voip, ...) one after the other.
71# if set to True, command used is "volt-add-subscriber-unitag"
72# if set to False, comand used is "volt-add-subscriber-access"
73${unitag_sub} False
TorstenThieme840380b2020-10-02 09:31:56 +000074
75*** Test Cases ***
76ONU MIB Template Data Test
77 [Documentation] Validates ONU Go adapter storage of MIB Template Data in etcd and checks the usage
78 ... - setup one ONU
79 ... - request MIB-Upload-Data by ONU via OMCI
80 ... - storage MIB-Upload-Data in etcd
81 ... - store setup duration of ONU
TorstenThiemed4f48962020-12-08 12:17:19 +000082 ... - check Template-Data in etcd stored (service/%{NAME}/omci_mibs/go_templates/)
TorstenThieme840380b2020-10-02 09:31:56 +000083 ... - setup second ONU
84 ... - collect setup durationof second ONU
85 ... - compare both duration
86 ... - duration of second ONU should be at least 10 times faster than the first one
87 ... - MIB-Upload-Data should not requested via OMCI by second ONU
88 ... - MIB-Upload-Data should read from etcd
TorstenThieme66c91a82020-10-19 13:37:53 +000089 [Tags] functionalOnuGo MibTemplateOnuGo
TorstenThieme840380b2020-10-02 09:31:56 +000090 [Setup] Run Keywords Start Logging ONUMibTemplateTest
91 ... AND Setup
92 Perform ONU MIB Template Data Test
TorstenThieme373adfe2021-12-16 13:03:04 +000093 [Teardown] Run Keywords Printout ONU Serial Number and Device Id
94 ... AND Run Keyword If ${logging} Collect Logs
TorstenThieme2d8327b2022-03-15 08:42:27 +000095 ... AND Teardown Test
TorstenThieme840380b2020-10-02 09:31:56 +000096 ... AND Stop Logging ONUMibTemplateTest
97
TorstenThieme2d8327b2022-03-15 08:42:27 +000098ONU MIB Template Unknown ME Test
99 [Documentation] Validates ONU Go adapter storage of MIB Template Data in etcd in case of unknown ME
100 ... - setup one ONU
101 ... - request MIB-Upload-Data by ONU via OMCI
102 ... - storage MIB-Upload-Data in etcd
103 ... - check Template-Data in etcd stored (service/voltha/omci_mibs/go_templates/)
104 ... - Template-Data in etcd stored should contain "UnknownItuG988ManagedEntity"
105 [Tags] functionalOnuGo UnknownMeOnuGo
106 [Setup] Run Keywords Start Logging UnknownMeOnuGo
107 ... AND Setup
108 Bring Up ONU
109 ${MibTemplateData}= Get ONU MIB Template Data ${INFRA_NAMESPACE}
110 ${MibTemplatePrep}= Prepare ONU Go Adapter ETCD Data For Json ${MibTemplateData}
111 ${MibTemplateJson}= To Json ${MibTemplatePrep}
112 Dictionary Should Contain Key ${MibTemplateJson[0]} UnknownItuG988ManagedEntity
113 ${UnknownME}= Get From Dictionary ${MibTemplateJson[0]} UnknownItuG988ManagedEntity
114 Dictionary Should Contain Key ${UnknownME} 37
115 ${Attributes}= Get From Dictionary ${UnknownME['37']} 1
116 ${AttributeMask}= Get From Dictionary ${Attributes} AttributeMask
117 ${AttributeBytes}= Get From Dictionary ${Attributes} AttributeBytes
TorstenThieme368e9b62022-03-18 10:33:05 +0000118 Should be Equal ${AttributeMask} 0x8000
119 Should be Equal ${AttributeBytes} 0102030405060708090a0b0c0d0e0f101112131415161718191a
TorstenThieme2d8327b2022-03-15 08:42:27 +0000120 [Teardown] Run Keywords Printout ONU Serial Number and Device Id
121 ... AND Run Keyword If ${logging} Collect Logs
122 ... AND Teardown Test
123 ... AND Stop Logging UnknownMeOnuGo
TorstenThieme840380b2020-10-02 09:31:56 +0000124
TorstenThieme368e9b62022-03-18 10:33:05 +0000125ONU MIB Template Unknown Attribute Test
126 [Documentation] Validates ONU Go adapter storage of MIB Template Data in etcd in case of unknown Attribute
127 ... - setup one ONU
128 ... - request MIB-Upload-Data by ONU via OMCI
129 ... - storage MIB-Upload-Data in etcd
130 ... - check Template-Data in etcd stored (service/voltha/omci_mibs/go_templates/)
131 ... - Template-Data in etcd stored should contain "UnknownAttributesManagedEntity"
132 [Tags] functionalOnuGo UnknownAttributeOnuGo
133 [Setup] Run Keywords Start Logging UnknownAttributeOnuGo
134 ... AND Setup
135 Bring Up ONU
136 ${MibTemplateData}= Get ONU MIB Template Data ${INFRA_NAMESPACE}
137 ${MibTemplatePrep}= Prepare ONU Go Adapter ETCD Data For Json ${MibTemplateData}
138 ${MibTemplateJson}= To Json ${MibTemplatePrep}
139 Dictionary Should Contain Key ${MibTemplateJson[0]} UnknownAttributesManagedEntity
140 ${UnknownME}= Get From Dictionary ${MibTemplateJson[0]} UnknownAttributesManagedEntity
141 Dictionary Should Contain Key ${UnknownME} 257
142 ${Attributes}= Get From Dictionary ${UnknownME['257']} 0
143 ${AttributeMask}= Get From Dictionary ${Attributes} AttributeMask
144 ${AttributeBytes}= Get From Dictionary ${Attributes} AttributeBytes
145 Should be Equal ${AttributeMask} 0x0001
146 Should be Equal ${AttributeBytes} 000100010001000000
147 [Teardown] Run Keywords Printout ONU Serial Number and Device Id
148 ... AND Run Keyword If ${logging} Collect Logs
149 ... AND Teardown Test
150 ... AND Stop Logging UnknownAttributeOnuGo
151
TorstenThieme89930b92022-06-16 12:13:51 +0000152
153ONU MIB Template Data Compare OMCI Baseline and Extended Message
154 [Documentation] Compares ONU Go adapter storage of MIB Template Data in etcd according OMCI message format
155 ... - setup one ONU with baseline OMCI message (EXTRA_HELM_FLAGS=" --set omccVersion=163)
156 ... - request MIB-Upload-Data by ONU via OMCI
157 ... - storage MIB-Upload-Data in etcd
158 ... - store setup duration of ONU
159 ... - check Template-Data in etcd stored (service/%{NAME}/omci_mibs/go_templates/)
160 ... - store Template-Data
161 ... - delete all devices and etcd/mib data
162 ... - setup one ONU with extended OMCI message (EXTRA_HELM_FLAGS=" --set omccVersion=180)
163 ... - request MIB-Upload-Data by ONU via OMCI
164 ... - storage MIB-Upload-Data in etcd
165 ... - store setup duration of ONU
166 ... - check Template-Data in etcd stored (service/%{NAME}/omci_mibs/go_templates/)
167 ... - compare both duration
168 ... - duration of extended msg ONU should be at least less than 80% of the baseline one
169 ... - compare MIB-Data, should be the same
170 ... ================= !!! Attention!!! ======================
171 ... Should be always the last test case in test suite!
172 ... It changes BBSIM configuration to OMCI extended messages.
173 ... ================= !!! Attention!!! ======================
174 [Tags] functionalOnuGo MibTemplateOmciBaselineVersusExtendedOnuGo
175 [Setup] Run Keywords Start Logging MibTemplateOmciBaselineVersusExtendedOnuGo
176 ... AND Setup
177 Perform ONU MIB Template Compare OMCI Baseline and Extended Message
178 [Teardown] Run Keywords Printout ONU Serial Number and Device Id
179 ... AND Run Keyword If ${logging} Collect Logs
180 ... AND Teardown Test
181 ... AND Stop Logging MibTemplateOmciBaselineVersusExtendedOnuGo
182
TorstenThieme840380b2020-10-02 09:31:56 +0000183*** Keywords ***
184Setup Suite
185 [Documentation] Set up the test suite
Andrea Campanella82add372021-11-05 12:01:15 +0100186 Start Logging Setup or Teardown Setup-${SUITE NAME}
TorstenThieme840380b2020-10-02 09:31:56 +0000187 ${LogInfo}= Catenate
188 ... \r\nPassed arguments:
189 ... debugmode:${debugmode}, logging:${logging}, pausebeforecleanup:${pausebeforecleanup},
190 Log ${LogInfo} console=yes
191 Common Test Suite Setup
TorstenThieme840380b2020-10-02 09:31:56 +0000192 # delete etcd MIB Template Data
Hardik Windlass4288c6a2021-09-28 07:22:06 +0000193 Delete MIB Template Data ${INFRA_NAMESPACE}
Andrea Campanella82add372021-11-05 12:01:15 +0100194 Run Keyword If ${logging} Collect Logs
195 Stop Logging Setup or Teardown Setup-${SUITE NAME}
TorstenThieme840380b2020-10-02 09:31:56 +0000196
197Teardown Suite
198 [Documentation] Replaces the Suite Teardown in utils.robot.
199 ... Cleans up and checks all ONU ports disabled in ONOS.
200 ... Furthermore gives the possibility to pause the execution.
Andrea Campanella82add372021-11-05 12:01:15 +0100201 Start Logging Setup or Teardown Teardown-${SUITE NAME}
TorstenThieme840380b2020-10-02 09:31:56 +0000202 Run Keyword If ${pausebeforecleanup} Import Library Dialogs
203 Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up!
204 Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes
205 Run Keyword If ${teardown_device} Delete All Devices and Verify
TorstenThieme731a7592021-07-01 14:26:54 +0000206 Wait for Ports in ONOS for all OLTs ${ONOS_SSH_IP} ${ONOS_SSH_PORT} 0 BBSM
TorstenThieme840380b2020-10-02 09:31:56 +0000207 # delete etcd MIB Template Data (for repeating test)
Hardik Windlass4288c6a2021-09-28 07:22:06 +0000208 Delete MIB Template Data ${INFRA_NAMESPACE}
Andrea Campanella82add372021-11-05 12:01:15 +0100209 Run Keyword If ${logging} Collect Logs
210 Stop Logging Setup or Teardown Teardown-${SUITE NAME}
TorstenThieme440b7c02020-12-18 15:42:57 +0000211 Close All ONOS SSH Connections
TorstenThieme840380b2020-10-02 09:31:56 +0000212
TorstenThieme2d8327b2022-03-15 08:42:27 +0000213Teardown Test
214 [Documentation] Post-test Teardown
215 Run Keyword If ${pausebeforecleanup} Import Library Dialogs
216 Run Keyword If ${pausebeforecleanup} Pause Execution Press OK to continue with clean up!
217 Run Keyword If ${pausebeforecleanup} Log Teardown will be continued... console=yes
218 Run Keyword If ${teardown_device} Delete All Devices and Verify
219 # delete etcd MIB Template Data
220 Delete MIB Template Data ${INFRA_NAMESPACE}
221 Sleep 5s
222
TorstenThieme840380b2020-10-02 09:31:56 +0000223Perform ONU MIB Template Data Test
224 [Documentation] This keyword performs ONU MIB Template Data Test
TorstenThieme66c91a82020-10-19 13:37:53 +0000225 ${firstonu}= Set Variable 0
226 ${secondonu}= Set Variable 1
227 ${state2test}= Set Variable omci-flows-pushed
TorstenThieme840380b2020-10-02 09:31:56 +0000228 Run Keyword If ${has_dataplane} Clean Up Linux
229 # Start first Onu
TorstenThieme66c91a82020-10-19 13:37:53 +0000230 ${src}= Set Variable ${hosts.src[${0}]}
231 Log \r\nONU ${src['onu']}: startup with MIB upload cycle and storage of template data to etcd. console=yes
Hardik Windlass4288c6a2021-09-28 07:22:06 +0000232 ${bbsim_pod}= Get Pod Name By Label ${NAMESPACE} release bbsim0
233 Power On ONU ${NAMESPACE} ${bbsim_pod} ${src['onu']}
TorstenThieme840380b2020-10-02 09:31:56 +0000234 ${timeStart}= Get Current Date
TorstenThieme89930b92022-06-16 12:13:51 +0000235 ${firstonustartup}= Get ONU Startup Duration ${state2test} ${firstonu} ${timeStart}
TorstenThieme840380b2020-10-02 09:31:56 +0000236 # check MIB Template data stored in etcd
237 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 3s
Hardik Windlass4288c6a2021-09-28 07:22:06 +0000238 ... Verify MIB Template Data Available ${INFRA_NAMESPACE}
TorstenThieme840380b2020-10-02 09:31:56 +0000239 # Start second Onu
TorstenThieme66c91a82020-10-19 13:37:53 +0000240 ${src}= Set Variable ${hosts.src[${1}]}
241 Log ONU ${src['onu']}: startup without MIB upload cycle by using of template data of etcd. console=yes
Hardik Windlass4288c6a2021-09-28 07:22:06 +0000242 ${bbsim_pod}= Get Pod Name By Label ${NAMESPACE} release bbsim0
243 Power On ONU ${NAMESPACE} ${bbsim_pod} ${src['onu']}
TorstenThieme840380b2020-10-02 09:31:56 +0000244 ${timeStart}= Get Current Date
TorstenThieme89930b92022-06-16 12:13:51 +0000245 ${secondonustartup}= Get ONU Startup Duration ${state2test} ${secondonu} ${timeStart}
TorstenThieme840380b2020-10-02 09:31:56 +0000246 # compare both durations, second onu should be at least 3 times faster
247 ${status} Evaluate ${firstonustartup}>=${secondonustartup}*3
248 Should Be True ${status}
249 ... Startup durations (${firstonustartup} and ${secondonustartup}) do not full fill the requirements of 1/10.
250
TorstenThieme89930b92022-06-16 12:13:51 +0000251Perform ONU MIB Template Compare OMCI Baseline and Extended Message
252 [Documentation] This keyword performs ONU MIB Template Data Compare OMCI Baseline and Extended Message
253 ${firstonu}= Set Variable 0
254 ${waittime}= Set Variable 0ms
255 ${state2test}= Set Variable initial-mib-downloaded
256 Run Keyword If ${has_dataplane} Clean Up Linux
257 # Start Onu with OMCI Baseline Message
258 ${src}= Set Variable ${hosts.src[${firstonu}]}
259 Log \r\nONU ${src['onu']}: startup with MIB upload cycle and storage of template data to etcd. console=yes
260 ${bbsim_pod}= Get Pod Name By Label ${NAMESPACE} release bbsim0
261 Power On ONU ${NAMESPACE} ${bbsim_pod} ${src['onu']}
262 ${timeStart}= Get Current Date
263 ${baselineonustartup}= Get ONU Startup Duration ${state2test} ${firstonu} ${timeStart} ${waittime}
264 # check MIB Template data stored in etcd
265 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 3s
266 ... Verify MIB Template Data Available ${INFRA_NAMESPACE}
267 ${MibTemplateDataBaseline}= Get ONU MIB Template Data ${INFRA_NAMESPACE}
268 Delete All Devices and Verify
269 Delete MIB Template Data ${INFRA_NAMESPACE}
270 # Restart BBSIM with OMCI Extended Message
271 ${extra_helm_flags} Catenate
272 ... --set onu=2,pon=2,controlledActivation=only-onu,injectOmciUnknownAttributes=true,injectOmciUnknownMe=true
273 ... --set omccVersion=180
274 Remove BBSIM Helm Charts ${NAMESPACE}
275 Restart BBSIM ${NAMESPACE} extra_helm_flags=${extra_helm_flags}
276 Restart Port Forward BBSIM ${NAMESPACE}
277 # Start Onu again with OMCI Extended Message
278 Setup
279 ${src}= Set Variable ${hosts.src[${firstonu}]}
280 Log \r\nONU ${src['onu']}: startup with MIB upload cycle and storage of template data to etcd. console=yes
281 ${bbsim_pod}= Get Pod Name By Label ${NAMESPACE} release bbsim0
282 Power On ONU ${NAMESPACE} ${bbsim_pod} ${src['onu']}
283 ${timeStart}= Get Current Date
284 ${extendedonustartup}= Get ONU Startup Duration ${state2test} ${firstonu} ${timeStart} ${waittime}
285 # check MIB Template data stored in etcd
286 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 3s
287 ... Verify MIB Template Data Available ${INFRA_NAMESPACE}
288 ${MibTemplateDataExtended}= Get ONU MIB Template Data ${INFRA_NAMESPACE}
289 # Checks:
290 # - compare durations of MIB download, OMCI extended message duration should be less than %60 of baseline
291 # - both stored MIB tenmplates in ETCD should be equal
292 ${duration_compare}= Evaluate ${baselineonustartup}*0,8 > ${extendedonustartup}
293 Should Be True ${duration_compare} MIB Template download too slow for OMCI extended message!
294 # remove "TemplateCreated" e.g. "TemplateCreated":"2022-06-15 11:23:47.306519",
295 ${remove_regexp} Set Variable (?ms)"TemplateCreated":"[^"]*",
296 ${MibTemplateDataBaseline}= Remove String Using Regexp ${MibTemplateDataBaseline} ${remove_regexp}
297 ${MibTemplateDataExtended}= Remove String Using Regexp ${MibTemplateDataExtended} ${remove_regexp}
298 # Due to VOL-4721 comparison of MIB templates has to be executed without unknown ME!
299 # After correction of Jira remove the following lines and this comment
300 ${remove_regexp} Set Variable (?ms)"UnknownItuG988ManagedEntity":[^}]*}}}
301 ${MibTemplateDataBaseline}= Remove String Using Regexp ${MibTemplateDataBaseline} ${remove_regexp}
302 ${MibTemplateDataExtended}= Remove String Using Regexp ${MibTemplateDataExtended} ${remove_regexp}
303 # end of handling for VOL-4721
304 Should Be Equal As Strings ${MibTemplateDataBaseline} ${MibTemplateDataExtended} MIB Templates not equal!
305
TorstenThieme840380b2020-10-02 09:31:56 +0000306Get ONU Startup Duration
307 [Documentation] This keyword delivers startup duration of onu
TorstenThieme89930b92022-06-16 12:13:51 +0000308 [Arguments] ${state2test} ${onu} ${starttime} ${waittime}=50ms
TorstenThieme840380b2020-10-02 09:31:56 +0000309 ${src}= Set Variable ${hosts.src[${onu}]}
TorstenThieme66c91a82020-10-19 13:37:53 +0000310 ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}=
311 ... Map State ${state2test}
TorstenThieme89930b92022-06-16 12:13:51 +0000312 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} ${waittime}
TorstenThieme840380b2020-10-02 09:31:56 +0000313 ... Validate Device ${admin_state} ${oper_status} ${connect_status}
314 ... ${src['onu']} onu=True onu_reason=${onu_state}
315 ${timeCurrent} = Get Current Date
316 ${timeTotalMs} = Subtract Date From Date ${timeCurrent} ${startTime} result_format=number
317 Log ONU ${src['onu']}: reached the state ${onu_state} after ${timeTotalMs} sec. console=yes
318 [Return] ${timeTotalMs}
TorstenThieme2d8327b2022-03-15 08:42:27 +0000319
320Bring Up ONU
321 [Documentation] This keyword brings up onu
322 [Arguments] ${onu}=0 ${state2reach}=omci-flows-pushed
323 ${src}= Set Variable ${hosts.src[${onu}]}
324 ${admin_state} ${oper_status} ${connect_status} ${onu_state_nb} ${onu_state}=
325 ... Map State ${state2reach}
326 ${bbsim_pod}= Get Pod Name By Label ${NAMESPACE} release bbsim0
327 Power On ONU ${NAMESPACE} ${bbsim_pod} ${src['onu']}
328 Run Keyword And Continue On Failure Wait Until Keyword Succeeds ${timeout} 1s
329 ... Validate Device ${admin_state} ${oper_status} ${connect_status}
330 ... ${src['onu']} onu=True onu_reason=${onu_state}
TorstenThieme89930b92022-06-16 12:13:51 +0000331
332# Keywords regarding restart BBSIM
333
334Remove BBSIM Helm Charts
335 [Arguments] ${namespace} ${instance}=0
336 [Documentation] Remove BBSIM helm charts
337 ${cmd} Catenate helm delete -n '${namespace}' 'bbsim${instance}'
338 ${rc} Run And Return Rc ${cmd}
339 Should Be Equal as Integers ${rc} 0
340 ${list} Create List bbsim${instance}
341 Wait For Pods Not Exist ${namespace} ${list}
342
343Restart BBSIM
344 [Documentation] Restart BBSIM helm chart
345 [Arguments] ${namespace} ${instance}=0 ${extra_helm_flags}=${EMPTY}
346 ${cmd} Catenate
347 ... helm upgrade --install -n ${namespace} bbsim${instance} onf/bbsim
348 ... --set olt_id=1${instance}
349 ... --set global.image_pullPolicy=Always
350 ... --set global.image_tag=master
351 ... --set global.image_org=voltha/
352 ... --set global.image_registry=
353 ... --set global.log_level=${helmloglevel} ${extra_helm_flags}
354 ${rc} Run And Return Rc ${cmd}
355 Should Be Equal as Integers ${rc} 0
356 ${list} Create List bbsim
357 Wait For Pods Ready ${namespace} ${list}
358
359Restart Port Forward BBSIM
360 [Documentation] Restart Port forward BBSIM
361 [Arguments] ${namespace} ${instance}=0
362 ${tag} Catenate bbsim${instance}
363 Restart VOLTHA Port Forward ${tag}