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