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