blob: 746166bb83d5dd31210d049efda2880e5bdea110 [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"
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
Matteo Scandolob9a27ef2018-11-13 10:51:40 -080056 # map the BNG to a port
57 # this is not really used by BBSIM as there's no data-plane traffic,
58 # but it's required by NEM to configure the crossconnect
59 bngmapping:
60 type: tosca.nodes.BNGPortMapping
61 properties:
62 s_tag: any
63 switch_port: 1
64
Matteo Scandolo4b1cdfe2018-11-08 15:37:01 -080065 # DHCP L2 Relay config
66 onos_app#dhcpl2relay:
67 type: tosca.nodes.ONOSApp
68 properties:
69 name: dhcpl2relay
70 must-exist: true
71
72 dhcpl2relay-config-attr:
73 type: tosca.nodes.ServiceInstanceAttribute
74 properties:
75 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
76 value: >
77 {
78 "dhcpl2relay" : {
79 "useOltUplinkForServerPktInOut" : true
80 }
81 }
82 requirements:
83 - service_instance:
84 node: onos_app#dhcpl2relay
85 relationship: tosca.relationships.BelongsToOne
86
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080087 # Whitelist
88 service#att:
89 type: tosca.nodes.AttWorkflowDriverService
90 properties:
91 name: att-workflow-driver
92 must-exist: true
93
94 BBSM00000100:
95 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
96 properties:
97 serial_number: BBSM00000100
98 pon_port_id: 536870913
99 device_id: of:0000000000000012
100 requirements:
101 - owner:
102 node: service#att
103 relationship: tosca.relationships.BelongsToOne
104
105 BBSM00000101:
106 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
107 properties:
108 serial_number: BBSM00000101
109 pon_port_id: 536870913
110 device_id: of:0000000000000012
111 requirements:
112 - owner:
113 node: service#att
114 relationship: tosca.relationships.BelongsToOne
115
116 BBSM00000102:
117 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
118 properties:
119 serial_number: BBSM00000102
120 pon_port_id: 536870913
121 device_id: of:0000000000000012
122 requirements:
123 - owner:
124 node: service#att
125 relationship: tosca.relationships.BelongsToOne
126
127 BBSM00000103:
128 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
129 properties:
130 serial_number: BBSM00000103
131 pon_port_id: 536870913
132 device_id: of:0000000000000012
133 requirements:
134 - owner:
135 node: service#att
136 relationship: tosca.relationships.BelongsToOne
137
138 BBSM00000104:
139 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
140 properties:
141 serial_number: BBSM00000104
142 pon_port_id: 536870913
143 device_id: of:0000000000000012
144 requirements:
145 - owner:
146 node: service#att
147 relationship: tosca.relationships.BelongsToOne
148
149 BBSM00000105:
150 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
151 properties:
152 serial_number: BBSM00000105
153 pon_port_id: 536870913
154 device_id: of:0000000000000012
155 requirements:
156 - owner:
157 node: service#att
158 relationship: tosca.relationships.BelongsToOne
159
160 BBSM00000106:
161 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
162 properties:
163 serial_number: BBSM00000106
164 pon_port_id: 536870913
165 device_id: of:0000000000000012
166 requirements:
167 - owner:
168 node: service#att
169 relationship: tosca.relationships.BelongsToOne
170
171 BBSM00000107:
172 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
173 properties:
174 serial_number: BBSM00000107
175 pon_port_id: 536870913
176 device_id: of:0000000000000012
177 requirements:
178 - owner:
179 node: service#att
180 relationship: tosca.relationships.BelongsToOne
181
182 BBSM00000108:
183 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
184 properties:
185 serial_number: BBSM00000108
186 pon_port_id: 536870913
187 device_id: of:0000000000000012
188 requirements:
189 - owner:
190 node: service#att
191 relationship: tosca.relationships.BelongsToOne
192
193 BBSM00000109:
194 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
195 properties:
196 serial_number: BBSM00000109
197 pon_port_id: 536870913
198 device_id: of:0000000000000012
199 requirements:
200 - owner:
201 node: service#att
202 relationship: tosca.relationships.BelongsToOne
203
204 BBSM0000010a:
205 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
206 properties:
207 serial_number: BBSM0000010a
208 pon_port_id: 536870913
209 device_id: of:0000000000000012
210 requirements:
211 - owner:
212 node: service#att
213 relationship: tosca.relationships.BelongsToOne
214
215 BBSM0000010b:
216 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
217 properties:
218 serial_number: BBSM0000010b
219 pon_port_id: 536870913
220 device_id: of:0000000000000012
221 requirements:
222 - owner:
223 node: service#att
224 relationship: tosca.relationships.BelongsToOne
225
226 BBSM0000010c:
227 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
228 properties:
229 serial_number: BBSM0000010c
230 pon_port_id: 536870913
231 device_id: of:0000000000000012
232 requirements:
233 - owner:
234 node: service#att
235 relationship: tosca.relationships.BelongsToOne
236
237 BBSM0000010d:
238 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
239 properties:
240 serial_number: BBSM0000010d
241 pon_port_id: 536870913
242 device_id: of:0000000000000012
243 requirements:
244 - owner:
245 node: service#att
246 relationship: tosca.relationships.BelongsToOne
247
248 BBSM0000010e:
249 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
250 properties:
251 serial_number: BBSM0000010e
252 pon_port_id: 536870913
253 device_id: of:0000000000000012
254 requirements:
255 - owner:
256 node: service#att
257 relationship: tosca.relationships.BelongsToOne
258
259 BBSM0000010f:
260 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
261 properties:
262 serial_number: BBSM0000010f
263 pon_port_id: 536870913
264 device_id: of:0000000000000012
265 requirements:
266 - owner:
267 node: service#att
268 relationship: tosca.relationships.BelongsToOne
269
270 # Pre-provision the subscriber
271 bbsim_subscriber_0:
272 type: tosca.nodes.RCORDSubscriber
273 properties:
274 name: Sub_BBSM00000100
275 status: pre-provisioned
276 c_tag: 900
277 s_tag: 999
278 onu_device: BBSM00000100
279 circuit_id: circuit0
280 remote_id: remote0
281 nas_port_id: PON 2/1/01/1:1.1.0
282
283 bbsim_subscriber_1:
284 type: tosca.nodes.RCORDSubscriber
285 properties:
286 name: Sub_BBSM00000101
287 status: pre-provisioned
288 c_tag: 901
289 s_tag: 999
290 onu_device: BBSM00000101
291 circuit_id: circuit1
292 remote_id: remote1
293 nas_port_id: PON 2/1/01/1:1.1.1
294
295 bbsim_subscriber_2:
296 type: tosca.nodes.RCORDSubscriber
297 properties:
298 name: Sub_BBSM00000102
299 status: pre-provisioned
300 c_tag: 902
301 s_tag: 999
302 onu_device: BBSM00000102
303 circuit_id: circuit2
304 remote_id: remote2
305 nas_port_id: PON 2/1/01/1:1.1.2
306
307 bbsim_subscriber_3:
308 type: tosca.nodes.RCORDSubscriber
309 properties:
310 name: Sub_BBSM00000103
311 status: pre-provisioned
312 c_tag: 903
313 s_tag: 999
314 onu_device: BBSM00000103
315 circuit_id: circuit3
316 remote_id: remote3
317 nas_port_id: PON 2/1/01/1:1.1.3
318
319 bbsim_subscriber_4:
320 type: tosca.nodes.RCORDSubscriber
321 properties:
322 name: Sub_BBSM00000104
323 status: pre-provisioned
324 c_tag: 904
325 s_tag: 999
326 onu_device: BBSM00000104
327 circuit_id: circuit4
328 remote_id: remote4
329 nas_port_id: PON 2/1/01/1:1.1.4
330
331 bbsim_subscriber_5:
332 type: tosca.nodes.RCORDSubscriber
333 properties:
334 name: Sub_BBSM00000105
335 status: pre-provisioned
336 c_tag: 905
337 s_tag: 999
338 onu_device: BBSM00000105
339 circuit_id: circuit5
340 remote_id: remote5
341 nas_port_id: PON 2/1/01/1:1.1.5
342
343 bbsim_subscriber_6:
344 type: tosca.nodes.RCORDSubscriber
345 properties:
346 name: Sub_BBSM00000106
347 status: pre-provisioned
348 c_tag: 906
349 s_tag: 999
350 onu_device: BBSM00000106
351 circuit_id: circuit6
352 remote_id: remote6
353 nas_port_id: PON 2/1/01/1:1.1.6
354
355 bbsim_subscriber_7:
356 type: tosca.nodes.RCORDSubscriber
357 properties:
358 name: Sub_BBSM00000107
359 status: pre-provisioned
360 c_tag: 907
361 s_tag: 999
362 onu_device: BBSM00000107
363 circuit_id: circuit7
364 remote_id: remote7
365 nas_port_id: PON 2/1/01/1:1.1.7
366
367 bbsim_subscriber_8:
368 type: tosca.nodes.RCORDSubscriber
369 properties:
370 name: Sub_BBSM00000108
371 status: pre-provisioned
372 c_tag: 908
373 s_tag: 999
374 onu_device: BBSM00000108
375 circuit_id: circuit8
376 remote_id: remote8
377 nas_port_id: PON 2/1/01/1:1.1.8
378
379 bbsim_subscriber_9:
380 type: tosca.nodes.RCORDSubscriber
381 properties:
382 name: Sub_BBSM00000109
383 status: pre-provisioned
384 c_tag: 909
385 s_tag: 999
386 onu_device: BBSM00000109
387 circuit_id: circuit9
388 remote_id: remote9
389 nas_port_id: PON 2/1/01/1:1.1.9
390
391 bbsim_subscriber_a:
392 type: tosca.nodes.RCORDSubscriber
393 properties:
394 name: Sub_BBSM0000010a
395 status: pre-provisioned
396 c_tag: 910
397 s_tag: 999
398 onu_device: BBSM0000010a
399 circuit_id: circuit10a
400 remote_id: remote10a
401 nas_port_id: PON 2/1/01/1:1.1.10a
402
403 bbsim_subscriber_b:
404 type: tosca.nodes.RCORDSubscriber
405 properties:
406 name: Sub_BBSM0000010b
407 status: pre-provisioned
408 c_tag: 911
409 s_tag: 999
410 onu_device: BBSM0000010b
411 circuit_id: circuit10b
412 remote_id: remote10b
413 nas_port_id: PON 2/1/01/1:1.1.10b
414
415 bbsim_subscriber_c:
416 type: tosca.nodes.RCORDSubscriber
417 properties:
418 name: Sub_BBSM0000010c
419 status: pre-provisioned
420 c_tag: 912
421 s_tag: 999
422 onu_device: BBSM0000010c
423 circuit_id: circuit10c
424 remote_id: remote10c
425 nas_port_id: PON 2/1/01/1:1.1.10c
426
427 bbsim_subscriber_d:
428 type: tosca.nodes.RCORDSubscriber
429 properties:
430 name: Sub_BBSM0000010d
431 status: pre-provisioned
432 c_tag: 913
433 s_tag: 999
434 onu_device: BBSM0000010d
435 circuit_id: circuit10d
436 remote_id: remote10d
437 nas_port_id: PON 2/1/01/1:1.1.10d
438
439 bbsim_subscriber_e:
440 type: tosca.nodes.RCORDSubscriber
441 properties:
442 name: Sub_BBSM0000010e
443 status: pre-provisioned
444 c_tag: 914
445 s_tag: 999
446 onu_device: BBSM0000010e
447 circuit_id: circuit10e
448 remote_id: remote10e
449 nas_port_id: PON 2/1/01/1:1.1.10e
450
451 bbsim_subscriber_f:
452 type: tosca.nodes.RCORDSubscriber
453 properties:
454 name: Sub_BBSM0000010f
455 status: pre-provisioned
456 c_tag: 915
457 s_tag: 999
458 onu_device: BBSM0000010f
459 circuit_id: circuit10f
460 remote_id: remote10f
461 nas_port_id: PON 2/1/01/1:1.1.10f