blob: 9714ed17ea3901d9e722550e3fc487029cbd5714 [file] [log] [blame]
Zack Williams06e75f42018-11-21 11:54:06 -07001# 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
15# Example TOSCA to create a BBSim OLT and 16 ONUs with SiaB
16# Load into xos-tosca with:
17# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @bbsim-16.yaml http://127.0.0.1:30007/run
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20imports:
21 - custom_types/voltservice.yaml
22 - custom_types/oltdevice.yaml
23 - custom_types/onudevice.yaml
24 - custom_types/attworkflowdriverservice.yaml
25 - custom_types/attworkflowdriverwhitelistentry.yaml
26 - custom_types/rcordsubscriber.yaml
27
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 Scandolo553829a2018-12-13 16:41:11 -080042 device_type: openolt
Zack Williams06e75f42018-11-21 11:54:06 -070043 host: bbsim.voltha.svc
44 port: 50060
45 switch_datapath_id: of:0000000000000002
46 switch_port: "3"
47 outer_tpid: "0x8100"
48 uplink: "65536"
49 nas_id: "NAS_ID"
50 serial_number: "bbsim.voltha.svc:50060"
51 requirements:
52 - volt_service:
53 node: service#volt
54 relationship: tosca.relationships.BelongsToOne
55
56 # Whitelist
57 service#att:
58 type: tosca.nodes.AttWorkflowDriverService
59 properties:
60 name: att-workflow-driver
61 must-exist: true
62
63 BBSM00000100:
64 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
65 properties:
66 serial_number: BBSM00000100
67 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -080068 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -070069 requirements:
70 - owner:
71 node: service#att
72 relationship: tosca.relationships.BelongsToOne
73
74 BBSM00000101:
75 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
76 properties:
77 serial_number: BBSM00000101
78 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -080079 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -070080 requirements:
81 - owner:
82 node: service#att
83 relationship: tosca.relationships.BelongsToOne
84
85 BBSM00000102:
86 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
87 properties:
88 serial_number: BBSM00000102
89 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -080090 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -070091 requirements:
92 - owner:
93 node: service#att
94 relationship: tosca.relationships.BelongsToOne
95
96 BBSM00000103:
97 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
98 properties:
99 serial_number: BBSM00000103
100 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800101 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700102 requirements:
103 - owner:
104 node: service#att
105 relationship: tosca.relationships.BelongsToOne
106
107 BBSM00000104:
108 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
109 properties:
110 serial_number: BBSM00000104
111 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800112 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700113 requirements:
114 - owner:
115 node: service#att
116 relationship: tosca.relationships.BelongsToOne
117
118 BBSM00000105:
119 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
120 properties:
121 serial_number: BBSM00000105
122 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800123 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700124 requirements:
125 - owner:
126 node: service#att
127 relationship: tosca.relationships.BelongsToOne
128
129 BBSM00000106:
130 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
131 properties:
132 serial_number: BBSM00000106
133 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800134 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700135 requirements:
136 - owner:
137 node: service#att
138 relationship: tosca.relationships.BelongsToOne
139
140 BBSM00000107:
141 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
142 properties:
143 serial_number: BBSM00000107
144 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800145 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700146 requirements:
147 - owner:
148 node: service#att
149 relationship: tosca.relationships.BelongsToOne
150
151 BBSM00000108:
152 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
153 properties:
154 serial_number: BBSM00000108
155 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800156 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700157 requirements:
158 - owner:
159 node: service#att
160 relationship: tosca.relationships.BelongsToOne
161
162 BBSM00000109:
163 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
164 properties:
165 serial_number: BBSM00000109
166 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800167 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700168 requirements:
169 - owner:
170 node: service#att
171 relationship: tosca.relationships.BelongsToOne
172
173 BBSM0000010a:
174 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
175 properties:
176 serial_number: BBSM0000010a
177 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800178 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700179 requirements:
180 - owner:
181 node: service#att
182 relationship: tosca.relationships.BelongsToOne
183
184 BBSM0000010b:
185 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
186 properties:
187 serial_number: BBSM0000010b
188 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800189 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700190 requirements:
191 - owner:
192 node: service#att
193 relationship: tosca.relationships.BelongsToOne
194
195 BBSM0000010c:
196 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
197 properties:
198 serial_number: BBSM0000010c
199 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800200 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700201 requirements:
202 - owner:
203 node: service#att
204 relationship: tosca.relationships.BelongsToOne
205
206 BBSM0000010d:
207 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
208 properties:
209 serial_number: BBSM0000010d
210 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800211 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700212 requirements:
213 - owner:
214 node: service#att
215 relationship: tosca.relationships.BelongsToOne
216
217 BBSM0000010e:
218 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
219 properties:
220 serial_number: BBSM0000010e
221 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800222 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700223 requirements:
224 - owner:
225 node: service#att
226 relationship: tosca.relationships.BelongsToOne
227
228 BBSM0000010f:
229 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
230 properties:
231 serial_number: BBSM0000010f
232 pon_port_id: 536870913
Matteo Scandolo79f05932018-12-19 13:46:06 -0800233 device_id: of:0000626273696d76
Zack Williams06e75f42018-11-21 11:54:06 -0700234 requirements:
235 - owner:
236 node: service#att
237 relationship: tosca.relationships.BelongsToOne
238
239 # Pre-provision the subscriber
240 bbsim_subscriber_0:
241 type: tosca.nodes.RCORDSubscriber
242 properties:
243 name: Sub_BBSM00000100
244 status: pre-provisioned
245 c_tag: 900
246 s_tag: 999
247 onu_device: BBSM00000100
248 circuit_id: circuit0
249 remote_id: remote0
250 nas_port_id: PON 2/1/01/1:1.1.0
251
252 bbsim_subscriber_1:
253 type: tosca.nodes.RCORDSubscriber
254 properties:
255 name: Sub_BBSM00000101
256 status: pre-provisioned
257 c_tag: 901
258 s_tag: 999
259 onu_device: BBSM00000101
260 circuit_id: circuit1
261 remote_id: remote1
262 nas_port_id: PON 2/1/01/1:1.1.1
263
264 bbsim_subscriber_2:
265 type: tosca.nodes.RCORDSubscriber
266 properties:
267 name: Sub_BBSM00000102
268 status: pre-provisioned
269 c_tag: 902
270 s_tag: 999
271 onu_device: BBSM00000102
272 circuit_id: circuit2
273 remote_id: remote2
274 nas_port_id: PON 2/1/01/1:1.1.2
275
276 bbsim_subscriber_3:
277 type: tosca.nodes.RCORDSubscriber
278 properties:
279 name: Sub_BBSM00000103
280 status: pre-provisioned
281 c_tag: 903
282 s_tag: 999
283 onu_device: BBSM00000103
284 circuit_id: circuit3
285 remote_id: remote3
286 nas_port_id: PON 2/1/01/1:1.1.3
287
288 bbsim_subscriber_4:
289 type: tosca.nodes.RCORDSubscriber
290 properties:
291 name: Sub_BBSM00000104
292 status: pre-provisioned
293 c_tag: 904
294 s_tag: 999
295 onu_device: BBSM00000104
296 circuit_id: circuit4
297 remote_id: remote4
298 nas_port_id: PON 2/1/01/1:1.1.4
299
300 bbsim_subscriber_5:
301 type: tosca.nodes.RCORDSubscriber
302 properties:
303 name: Sub_BBSM00000105
304 status: pre-provisioned
305 c_tag: 905
306 s_tag: 999
307 onu_device: BBSM00000105
308 circuit_id: circuit5
309 remote_id: remote5
310 nas_port_id: PON 2/1/01/1:1.1.5
311
312 bbsim_subscriber_6:
313 type: tosca.nodes.RCORDSubscriber
314 properties:
315 name: Sub_BBSM00000106
316 status: pre-provisioned
317 c_tag: 906
318 s_tag: 999
319 onu_device: BBSM00000106
320 circuit_id: circuit6
321 remote_id: remote6
322 nas_port_id: PON 2/1/01/1:1.1.6
323
324 bbsim_subscriber_7:
325 type: tosca.nodes.RCORDSubscriber
326 properties:
327 name: Sub_BBSM00000107
328 status: pre-provisioned
329 c_tag: 907
330 s_tag: 999
331 onu_device: BBSM00000107
332 circuit_id: circuit7
333 remote_id: remote7
334 nas_port_id: PON 2/1/01/1:1.1.7
335
336 bbsim_subscriber_8:
337 type: tosca.nodes.RCORDSubscriber
338 properties:
339 name: Sub_BBSM00000108
340 status: pre-provisioned
341 c_tag: 908
342 s_tag: 999
343 onu_device: BBSM00000108
344 circuit_id: circuit8
345 remote_id: remote8
346 nas_port_id: PON 2/1/01/1:1.1.8
347
348 bbsim_subscriber_9:
349 type: tosca.nodes.RCORDSubscriber
350 properties:
351 name: Sub_BBSM00000109
352 status: pre-provisioned
353 c_tag: 909
354 s_tag: 999
355 onu_device: BBSM00000109
356 circuit_id: circuit9
357 remote_id: remote9
358 nas_port_id: PON 2/1/01/1:1.1.9
359
360 bbsim_subscriber_a:
361 type: tosca.nodes.RCORDSubscriber
362 properties:
363 name: Sub_BBSM0000010a
364 status: pre-provisioned
365 c_tag: 910
366 s_tag: 999
367 onu_device: BBSM0000010a
368 circuit_id: circuit10a
369 remote_id: remote10a
370 nas_port_id: PON 2/1/01/1:1.1.10a
371
372 bbsim_subscriber_b:
373 type: tosca.nodes.RCORDSubscriber
374 properties:
375 name: Sub_BBSM0000010b
376 status: pre-provisioned
377 c_tag: 911
378 s_tag: 999
379 onu_device: BBSM0000010b
380 circuit_id: circuit10b
381 remote_id: remote10b
382 nas_port_id: PON 2/1/01/1:1.1.10b
383
384 bbsim_subscriber_c:
385 type: tosca.nodes.RCORDSubscriber
386 properties:
387 name: Sub_BBSM0000010c
388 status: pre-provisioned
389 c_tag: 912
390 s_tag: 999
391 onu_device: BBSM0000010c
392 circuit_id: circuit10c
393 remote_id: remote10c
394 nas_port_id: PON 2/1/01/1:1.1.10c
395
396 bbsim_subscriber_d:
397 type: tosca.nodes.RCORDSubscriber
398 properties:
399 name: Sub_BBSM0000010d
400 status: pre-provisioned
401 c_tag: 913
402 s_tag: 999
403 onu_device: BBSM0000010d
404 circuit_id: circuit10d
405 remote_id: remote10d
406 nas_port_id: PON 2/1/01/1:1.1.10d
407
408 bbsim_subscriber_e:
409 type: tosca.nodes.RCORDSubscriber
410 properties:
411 name: Sub_BBSM0000010e
412 status: pre-provisioned
413 c_tag: 914
414 s_tag: 999
415 onu_device: BBSM0000010e
416 circuit_id: circuit10e
417 remote_id: remote10e
418 nas_port_id: PON 2/1/01/1:1.1.10e
419
420 bbsim_subscriber_f:
421 type: tosca.nodes.RCORDSubscriber
422 properties:
423 name: Sub_BBSM0000010f
424 status: pre-provisioned
425 c_tag: 915
426 s_tag: 999
427 onu_device: BBSM0000010f
428 circuit_id: circuit10f
429 remote_id: remote10f
430 nas_port_id: PON 2/1/01/1:1.1.10f