blob: bab7fb4f9e663f248f388116928e137f1293da20 [file] [log] [blame]
Matteo Scandolo1c92dac2018-11-05 17:30:58 -08001# Copyright 2017-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
Matteo Scandolo49e5a292018-12-14 15:36:46 -080015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @bbsim-16.yaml http://10.90.0.120:30007/run
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080016
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/oltdevice.yaml
20 - custom_types/onudevice.yaml
21 - custom_types/voltservice.yaml
22 - custom_types/bngportmapping.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
25 - custom_types/rcordsubscriber.yaml
26 - custom_types/serviceinstanceattribute.yaml
27 - custom_types/onosapp.yaml
28description: Create a simulated OLT Device in VOLTHA
29topology_template:
30 node_templates:
31
32 service#volt:
33 type: tosca.nodes.VOLTService
34 properties:
35 name: volt
36 must-exist: true
37
38 olt_device:
39 type: tosca.nodes.OLTDevice
40 properties:
41 name: BBSIM_OLT
Matteo Scandolo208abf42018-11-27 17:10:07 -080042 # device_type: bbsimolt
43 device_type: openolt
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080044 host: bbsim.voltha.svc
45 port: 50060
46 switch_datapath_id: of:0000000000000002
47 switch_port: "3"
48 outer_tpid: "0x8100"
49 uplink: "65536"
50 nas_id: "NAS_ID"
51 serial_number: "bbsim.voltha.svc:50060"
52 requirements:
53 - volt_service:
54 node: service#volt
55 relationship: tosca.relationships.BelongsToOne
56
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080057 # Whitelist
58 service#att:
59 type: tosca.nodes.AttWorkflowDriverService
60 properties:
61 name: att-workflow-driver
62 must-exist: true
63
64 BBSM00000100:
65 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
66 properties:
67 serial_number: BBSM00000100
68 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -080069 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080070 requirements:
71 - owner:
72 node: service#att
73 relationship: tosca.relationships.BelongsToOne
74
75 BBSM00000101:
76 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
77 properties:
78 serial_number: BBSM00000101
79 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -080080 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080081 requirements:
82 - owner:
83 node: service#att
84 relationship: tosca.relationships.BelongsToOne
85
86 BBSM00000102:
87 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
88 properties:
89 serial_number: BBSM00000102
90 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -080091 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080092 requirements:
93 - owner:
94 node: service#att
95 relationship: tosca.relationships.BelongsToOne
96
97 BBSM00000103:
98 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
99 properties:
100 serial_number: BBSM00000103
101 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800102 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800103 requirements:
104 - owner:
105 node: service#att
106 relationship: tosca.relationships.BelongsToOne
107
108 BBSM00000104:
109 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
110 properties:
111 serial_number: BBSM00000104
112 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800113 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800114 requirements:
115 - owner:
116 node: service#att
117 relationship: tosca.relationships.BelongsToOne
118
119 BBSM00000105:
120 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
121 properties:
122 serial_number: BBSM00000105
123 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800124 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800125 requirements:
126 - owner:
127 node: service#att
128 relationship: tosca.relationships.BelongsToOne
129
130 BBSM00000106:
131 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
132 properties:
133 serial_number: BBSM00000106
134 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800135 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800136 requirements:
137 - owner:
138 node: service#att
139 relationship: tosca.relationships.BelongsToOne
140
141 BBSM00000107:
142 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
143 properties:
144 serial_number: BBSM00000107
145 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800146 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800147 requirements:
148 - owner:
149 node: service#att
150 relationship: tosca.relationships.BelongsToOne
151
152 BBSM00000108:
153 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
154 properties:
155 serial_number: BBSM00000108
156 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800157 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800158 requirements:
159 - owner:
160 node: service#att
161 relationship: tosca.relationships.BelongsToOne
162
163 BBSM00000109:
164 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
165 properties:
166 serial_number: BBSM00000109
167 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800168 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800169 requirements:
170 - owner:
171 node: service#att
172 relationship: tosca.relationships.BelongsToOne
173
174 BBSM0000010a:
175 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
176 properties:
177 serial_number: BBSM0000010a
178 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800179 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800180 requirements:
181 - owner:
182 node: service#att
183 relationship: tosca.relationships.BelongsToOne
184
185 BBSM0000010b:
186 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
187 properties:
188 serial_number: BBSM0000010b
189 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800190 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800191 requirements:
192 - owner:
193 node: service#att
194 relationship: tosca.relationships.BelongsToOne
195
196 BBSM0000010c:
197 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
198 properties:
199 serial_number: BBSM0000010c
200 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800201 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800202 requirements:
203 - owner:
204 node: service#att
205 relationship: tosca.relationships.BelongsToOne
206
207 BBSM0000010d:
208 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
209 properties:
210 serial_number: BBSM0000010d
211 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800212 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800213 requirements:
214 - owner:
215 node: service#att
216 relationship: tosca.relationships.BelongsToOne
217
218 BBSM0000010e:
219 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
220 properties:
221 serial_number: BBSM0000010e
222 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800223 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800224 requirements:
225 - owner:
226 node: service#att
227 relationship: tosca.relationships.BelongsToOne
228
229 BBSM0000010f:
230 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
231 properties:
232 serial_number: BBSM0000010f
233 pon_port_id: 536870913
Matteo Scandolo208abf42018-11-27 17:10:07 -0800234 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -0800235 requirements:
236 - owner:
237 node: service#att
238 relationship: tosca.relationships.BelongsToOne
239
240 # Pre-provision the subscriber
241 bbsim_subscriber_0:
242 type: tosca.nodes.RCORDSubscriber
243 properties:
244 name: Sub_BBSM00000100
245 status: pre-provisioned
246 c_tag: 900
247 s_tag: 999
248 onu_device: BBSM00000100
249 circuit_id: circuit0
250 remote_id: remote0
251 nas_port_id: PON 2/1/01/1:1.1.0
252
253 bbsim_subscriber_1:
254 type: tosca.nodes.RCORDSubscriber
255 properties:
256 name: Sub_BBSM00000101
257 status: pre-provisioned
258 c_tag: 901
259 s_tag: 999
260 onu_device: BBSM00000101
261 circuit_id: circuit1
262 remote_id: remote1
263 nas_port_id: PON 2/1/01/1:1.1.1
264
265 bbsim_subscriber_2:
266 type: tosca.nodes.RCORDSubscriber
267 properties:
268 name: Sub_BBSM00000102
269 status: pre-provisioned
270 c_tag: 902
271 s_tag: 999
272 onu_device: BBSM00000102
273 circuit_id: circuit2
274 remote_id: remote2
275 nas_port_id: PON 2/1/01/1:1.1.2
276
277 bbsim_subscriber_3:
278 type: tosca.nodes.RCORDSubscriber
279 properties:
280 name: Sub_BBSM00000103
281 status: pre-provisioned
282 c_tag: 903
283 s_tag: 999
284 onu_device: BBSM00000103
285 circuit_id: circuit3
286 remote_id: remote3
287 nas_port_id: PON 2/1/01/1:1.1.3
288
289 bbsim_subscriber_4:
290 type: tosca.nodes.RCORDSubscriber
291 properties:
292 name: Sub_BBSM00000104
293 status: pre-provisioned
294 c_tag: 904
295 s_tag: 999
296 onu_device: BBSM00000104
297 circuit_id: circuit4
298 remote_id: remote4
299 nas_port_id: PON 2/1/01/1:1.1.4
300
301 bbsim_subscriber_5:
302 type: tosca.nodes.RCORDSubscriber
303 properties:
304 name: Sub_BBSM00000105
305 status: pre-provisioned
306 c_tag: 905
307 s_tag: 999
308 onu_device: BBSM00000105
309 circuit_id: circuit5
310 remote_id: remote5
311 nas_port_id: PON 2/1/01/1:1.1.5
312
313 bbsim_subscriber_6:
314 type: tosca.nodes.RCORDSubscriber
315 properties:
316 name: Sub_BBSM00000106
317 status: pre-provisioned
318 c_tag: 906
319 s_tag: 999
320 onu_device: BBSM00000106
321 circuit_id: circuit6
322 remote_id: remote6
323 nas_port_id: PON 2/1/01/1:1.1.6
324
325 bbsim_subscriber_7:
326 type: tosca.nodes.RCORDSubscriber
327 properties:
328 name: Sub_BBSM00000107
329 status: pre-provisioned
330 c_tag: 907
331 s_tag: 999
332 onu_device: BBSM00000107
333 circuit_id: circuit7
334 remote_id: remote7
335 nas_port_id: PON 2/1/01/1:1.1.7
336
337 bbsim_subscriber_8:
338 type: tosca.nodes.RCORDSubscriber
339 properties:
340 name: Sub_BBSM00000108
341 status: pre-provisioned
342 c_tag: 908
343 s_tag: 999
344 onu_device: BBSM00000108
345 circuit_id: circuit8
346 remote_id: remote8
347 nas_port_id: PON 2/1/01/1:1.1.8
348
349 bbsim_subscriber_9:
350 type: tosca.nodes.RCORDSubscriber
351 properties:
352 name: Sub_BBSM00000109
353 status: pre-provisioned
354 c_tag: 909
355 s_tag: 999
356 onu_device: BBSM00000109
357 circuit_id: circuit9
358 remote_id: remote9
359 nas_port_id: PON 2/1/01/1:1.1.9
360
361 bbsim_subscriber_a:
362 type: tosca.nodes.RCORDSubscriber
363 properties:
364 name: Sub_BBSM0000010a
365 status: pre-provisioned
366 c_tag: 910
367 s_tag: 999
368 onu_device: BBSM0000010a
369 circuit_id: circuit10a
370 remote_id: remote10a
371 nas_port_id: PON 2/1/01/1:1.1.10a
372
373 bbsim_subscriber_b:
374 type: tosca.nodes.RCORDSubscriber
375 properties:
376 name: Sub_BBSM0000010b
377 status: pre-provisioned
378 c_tag: 911
379 s_tag: 999
380 onu_device: BBSM0000010b
381 circuit_id: circuit10b
382 remote_id: remote10b
383 nas_port_id: PON 2/1/01/1:1.1.10b
384
385 bbsim_subscriber_c:
386 type: tosca.nodes.RCORDSubscriber
387 properties:
388 name: Sub_BBSM0000010c
389 status: pre-provisioned
390 c_tag: 912
391 s_tag: 999
392 onu_device: BBSM0000010c
393 circuit_id: circuit10c
394 remote_id: remote10c
395 nas_port_id: PON 2/1/01/1:1.1.10c
396
397 bbsim_subscriber_d:
398 type: tosca.nodes.RCORDSubscriber
399 properties:
400 name: Sub_BBSM0000010d
401 status: pre-provisioned
402 c_tag: 913
403 s_tag: 999
404 onu_device: BBSM0000010d
405 circuit_id: circuit10d
406 remote_id: remote10d
407 nas_port_id: PON 2/1/01/1:1.1.10d
408
409 bbsim_subscriber_e:
410 type: tosca.nodes.RCORDSubscriber
411 properties:
412 name: Sub_BBSM0000010e
413 status: pre-provisioned
414 c_tag: 914
415 s_tag: 999
416 onu_device: BBSM0000010e
417 circuit_id: circuit10e
418 remote_id: remote10e
419 nas_port_id: PON 2/1/01/1:1.1.10e
420
421 bbsim_subscriber_f:
422 type: tosca.nodes.RCORDSubscriber
423 properties:
424 name: Sub_BBSM0000010f
425 status: pre-provisioned
426 c_tag: 915
427 s_tag: 999
428 onu_device: BBSM0000010f
429 circuit_id: circuit10f
430 remote_id: remote10f
431 nas_port_id: PON 2/1/01/1:1.1.10f