Matteo Scandolo | bd312ce | 2019-06-07 10:37:25 -0700 | [diff] [blame] | 1 | # 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 | |
| 19 | tosca_definitions_version: tosca_simple_yaml_1_0 |
| 20 | imports: |
| 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 | - custom_types/bandwidthprofile.yaml |
| 28 | |
| 29 | description: Create a simulated OLT Device in VOLTHA |
| 30 | topology_template: |
| 31 | node_templates: |
| 32 | |
| 33 | # Bronze bandwidthprofile for subscriber |
| 34 | bronze_bp: |
| 35 | type: tosca.nodes.BandwidthProfile |
| 36 | properties: |
| 37 | air: 99999 |
| 38 | cbs: 99999 |
| 39 | cir: 99999 |
| 40 | ebs: 99999 |
| 41 | eir: 99999 |
| 42 | name: Bronze |
| 43 | |
| 44 | service#volt: |
| 45 | type: tosca.nodes.VOLTService |
| 46 | properties: |
| 47 | name: volt |
| 48 | must-exist: true |
| 49 | |
| 50 | olt_device: |
| 51 | type: tosca.nodes.OLTDevice |
| 52 | properties: |
| 53 | name: BBSIM_OLT |
| 54 | device_type: openolt |
| 55 | host: bbsim.voltha.svc |
| 56 | port: 50060 |
| 57 | switch_datapath_id: of:0000000000000002 |
| 58 | switch_port: "3" |
| 59 | outer_tpid: "0x8100" |
| 60 | uplink: "65536" |
| 61 | nas_id: "NAS_ID" |
| 62 | serial_number: "bbsim.voltha.svc:50060" |
| 63 | requirements: |
| 64 | - volt_service: |
| 65 | node: service#volt |
| 66 | relationship: tosca.relationships.BelongsToOne |
| 67 | |
| 68 | # Whitelist |
| 69 | service#att: |
| 70 | type: tosca.nodes.AttWorkflowDriverService |
| 71 | properties: |
| 72 | name: att-workflow-driver |
| 73 | must-exist: true |
| 74 | |
| 75 | BBSM00000100: |
| 76 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 77 | properties: |
| 78 | serial_number: BBSM00000100 |
| 79 | pon_port_id: 536870913 |
| 80 | device_id: of:0000626273696d76 |
| 81 | requirements: |
| 82 | - owner: |
| 83 | node: service#att |
| 84 | relationship: tosca.relationships.BelongsToOne |
| 85 | |
| 86 | BBSM00000101: |
| 87 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 88 | properties: |
| 89 | serial_number: BBSM00000101 |
| 90 | pon_port_id: 536870913 |
| 91 | device_id: of:0000626273696d76 |
| 92 | requirements: |
| 93 | - owner: |
| 94 | node: service#att |
| 95 | relationship: tosca.relationships.BelongsToOne |
| 96 | |
| 97 | BBSM00000102: |
| 98 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 99 | properties: |
| 100 | serial_number: BBSM00000102 |
| 101 | pon_port_id: 536870913 |
| 102 | device_id: of:0000626273696d76 |
| 103 | requirements: |
| 104 | - owner: |
| 105 | node: service#att |
| 106 | relationship: tosca.relationships.BelongsToOne |
| 107 | |
| 108 | BBSM00000103: |
| 109 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 110 | properties: |
| 111 | serial_number: BBSM00000103 |
| 112 | pon_port_id: 536870913 |
| 113 | device_id: of:0000626273696d76 |
| 114 | requirements: |
| 115 | - owner: |
| 116 | node: service#att |
| 117 | relationship: tosca.relationships.BelongsToOne |
| 118 | |
| 119 | BBSM00000104: |
| 120 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 121 | properties: |
| 122 | serial_number: BBSM00000104 |
| 123 | pon_port_id: 536870913 |
| 124 | device_id: of:0000626273696d76 |
| 125 | requirements: |
| 126 | - owner: |
| 127 | node: service#att |
| 128 | relationship: tosca.relationships.BelongsToOne |
| 129 | |
| 130 | BBSM00000105: |
| 131 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 132 | properties: |
| 133 | serial_number: BBSM00000105 |
| 134 | pon_port_id: 536870913 |
| 135 | device_id: of:0000626273696d76 |
| 136 | requirements: |
| 137 | - owner: |
| 138 | node: service#att |
| 139 | relationship: tosca.relationships.BelongsToOne |
| 140 | |
| 141 | BBSM00000106: |
| 142 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 143 | properties: |
| 144 | serial_number: BBSM00000106 |
| 145 | pon_port_id: 536870913 |
| 146 | device_id: of:0000626273696d76 |
| 147 | requirements: |
| 148 | - owner: |
| 149 | node: service#att |
| 150 | relationship: tosca.relationships.BelongsToOne |
| 151 | |
| 152 | BBSM00000107: |
| 153 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 154 | properties: |
| 155 | serial_number: BBSM00000107 |
| 156 | pon_port_id: 536870913 |
| 157 | device_id: of:0000626273696d76 |
| 158 | requirements: |
| 159 | - owner: |
| 160 | node: service#att |
| 161 | relationship: tosca.relationships.BelongsToOne |
| 162 | |
| 163 | BBSM00000108: |
| 164 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 165 | properties: |
| 166 | serial_number: BBSM00000108 |
| 167 | pon_port_id: 536870913 |
| 168 | device_id: of:0000626273696d76 |
| 169 | requirements: |
| 170 | - owner: |
| 171 | node: service#att |
| 172 | relationship: tosca.relationships.BelongsToOne |
| 173 | |
| 174 | BBSM00000109: |
| 175 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 176 | properties: |
| 177 | serial_number: BBSM00000109 |
| 178 | pon_port_id: 536870913 |
| 179 | device_id: of:0000626273696d76 |
| 180 | requirements: |
| 181 | - owner: |
| 182 | node: service#att |
| 183 | relationship: tosca.relationships.BelongsToOne |
| 184 | |
| 185 | BBSM0000010a: |
| 186 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 187 | properties: |
| 188 | serial_number: BBSM0000010a |
| 189 | pon_port_id: 536870913 |
| 190 | device_id: of:0000626273696d76 |
| 191 | requirements: |
| 192 | - owner: |
| 193 | node: service#att |
| 194 | relationship: tosca.relationships.BelongsToOne |
| 195 | |
| 196 | BBSM0000010b: |
| 197 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 198 | properties: |
| 199 | serial_number: BBSM0000010b |
| 200 | pon_port_id: 536870913 |
| 201 | device_id: of:0000626273696d76 |
| 202 | requirements: |
| 203 | - owner: |
| 204 | node: service#att |
| 205 | relationship: tosca.relationships.BelongsToOne |
| 206 | |
| 207 | BBSM0000010c: |
| 208 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 209 | properties: |
| 210 | serial_number: BBSM0000010c |
| 211 | pon_port_id: 536870913 |
| 212 | device_id: of:0000626273696d76 |
| 213 | requirements: |
| 214 | - owner: |
| 215 | node: service#att |
| 216 | relationship: tosca.relationships.BelongsToOne |
| 217 | |
| 218 | BBSM0000010d: |
| 219 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 220 | properties: |
| 221 | serial_number: BBSM0000010d |
| 222 | pon_port_id: 536870913 |
| 223 | device_id: of:0000626273696d76 |
| 224 | requirements: |
| 225 | - owner: |
| 226 | node: service#att |
| 227 | relationship: tosca.relationships.BelongsToOne |
| 228 | |
| 229 | BBSM0000010e: |
| 230 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 231 | properties: |
| 232 | serial_number: BBSM0000010e |
| 233 | pon_port_id: 536870913 |
| 234 | device_id: of:0000626273696d76 |
| 235 | requirements: |
| 236 | - owner: |
| 237 | node: service#att |
| 238 | relationship: tosca.relationships.BelongsToOne |
| 239 | |
| 240 | BBSM0000010f: |
| 241 | type: tosca.nodes.AttWorkflowDriverWhiteListEntry |
| 242 | properties: |
| 243 | serial_number: BBSM0000010f |
| 244 | pon_port_id: 536870913 |
| 245 | device_id: of:0000626273696d76 |
| 246 | requirements: |
| 247 | - owner: |
| 248 | node: service#att |
| 249 | relationship: tosca.relationships.BelongsToOne |
| 250 | |
| 251 | # Pre-provision the subscriber |
| 252 | bbsim_subscriber_0: |
| 253 | type: tosca.nodes.RCORDSubscriber |
| 254 | properties: |
| 255 | name: Sub_BBSM00000100 |
| 256 | status: pre-provisioned |
| 257 | c_tag: 900 |
| 258 | s_tag: 999 |
| 259 | onu_device: BBSM00000100 |
| 260 | circuit_id: circuit0 |
| 261 | remote_id: remote0 |
| 262 | nas_port_id: PON 2/1/01/1:1.1.0 |
| 263 | requirements: |
| 264 | - upstream_bps: |
| 265 | node: bronze_bp |
| 266 | relationship: tosca.relationships.BelongsToOne |
| 267 | - downstream_bps: |
| 268 | node: bronze_bp |
| 269 | relationship: tosca.relationships.BelongsToOne |
| 270 | |
| 271 | bbsim_subscriber_1: |
| 272 | type: tosca.nodes.RCORDSubscriber |
| 273 | properties: |
| 274 | name: Sub_BBSM00000101 |
| 275 | status: pre-provisioned |
| 276 | c_tag: 901 |
| 277 | s_tag: 999 |
| 278 | onu_device: BBSM00000101 |
| 279 | circuit_id: circuit1 |
| 280 | remote_id: remote1 |
| 281 | nas_port_id: PON 2/1/01/1:1.1.1 |
| 282 | requirements: |
| 283 | - upstream_bps: |
| 284 | node: bronze_bp |
| 285 | relationship: tosca.relationships.BelongsToOne |
| 286 | - downstream_bps: |
| 287 | node: bronze_bp |
| 288 | relationship: tosca.relationships.BelongsToOne |
| 289 | |
| 290 | bbsim_subscriber_2: |
| 291 | type: tosca.nodes.RCORDSubscriber |
| 292 | properties: |
| 293 | name: Sub_BBSM00000102 |
| 294 | status: pre-provisioned |
| 295 | c_tag: 902 |
| 296 | s_tag: 999 |
| 297 | onu_device: BBSM00000102 |
| 298 | circuit_id: circuit2 |
| 299 | remote_id: remote2 |
| 300 | nas_port_id: PON 2/1/01/1:1.1.2 |
| 301 | requirements: |
| 302 | - upstream_bps: |
| 303 | node: bronze_bp |
| 304 | relationship: tosca.relationships.BelongsToOne |
| 305 | - downstream_bps: |
| 306 | node: bronze_bp |
| 307 | relationship: tosca.relationships.BelongsToOne |
| 308 | |
| 309 | bbsim_subscriber_3: |
| 310 | type: tosca.nodes.RCORDSubscriber |
| 311 | properties: |
| 312 | name: Sub_BBSM00000103 |
| 313 | status: pre-provisioned |
| 314 | c_tag: 903 |
| 315 | s_tag: 999 |
| 316 | onu_device: BBSM00000103 |
| 317 | circuit_id: circuit3 |
| 318 | remote_id: remote3 |
| 319 | nas_port_id: PON 2/1/01/1:1.1.3 |
| 320 | requirements: |
| 321 | - upstream_bps: |
| 322 | node: bronze_bp |
| 323 | relationship: tosca.relationships.BelongsToOne |
| 324 | - downstream_bps: |
| 325 | node: bronze_bp |
| 326 | relationship: tosca.relationships.BelongsToOne |
| 327 | |
| 328 | bbsim_subscriber_4: |
| 329 | type: tosca.nodes.RCORDSubscriber |
| 330 | properties: |
| 331 | name: Sub_BBSM00000104 |
| 332 | status: pre-provisioned |
| 333 | c_tag: 904 |
| 334 | s_tag: 999 |
| 335 | onu_device: BBSM00000104 |
| 336 | circuit_id: circuit4 |
| 337 | remote_id: remote4 |
| 338 | nas_port_id: PON 2/1/01/1:1.1.4 |
| 339 | requirements: |
| 340 | - upstream_bps: |
| 341 | node: bronze_bp |
| 342 | relationship: tosca.relationships.BelongsToOne |
| 343 | - downstream_bps: |
| 344 | node: bronze_bp |
| 345 | relationship: tosca.relationships.BelongsToOne |
| 346 | |
| 347 | bbsim_subscriber_5: |
| 348 | type: tosca.nodes.RCORDSubscriber |
| 349 | properties: |
| 350 | name: Sub_BBSM00000105 |
| 351 | status: pre-provisioned |
| 352 | c_tag: 905 |
| 353 | s_tag: 999 |
| 354 | onu_device: BBSM00000105 |
| 355 | circuit_id: circuit5 |
| 356 | remote_id: remote5 |
| 357 | nas_port_id: PON 2/1/01/1:1.1.5 |
| 358 | requirements: |
| 359 | - upstream_bps: |
| 360 | node: bronze_bp |
| 361 | relationship: tosca.relationships.BelongsToOne |
| 362 | - downstream_bps: |
| 363 | node: bronze_bp |
| 364 | relationship: tosca.relationships.BelongsToOne |
| 365 | |
| 366 | bbsim_subscriber_6: |
| 367 | type: tosca.nodes.RCORDSubscriber |
| 368 | properties: |
| 369 | name: Sub_BBSM00000106 |
| 370 | status: pre-provisioned |
| 371 | c_tag: 906 |
| 372 | s_tag: 999 |
| 373 | onu_device: BBSM00000106 |
| 374 | circuit_id: circuit6 |
| 375 | remote_id: remote6 |
| 376 | nas_port_id: PON 2/1/01/1:1.1.6 |
| 377 | requirements: |
| 378 | - upstream_bps: |
| 379 | node: bronze_bp |
| 380 | relationship: tosca.relationships.BelongsToOne |
| 381 | - downstream_bps: |
| 382 | node: bronze_bp |
| 383 | relationship: tosca.relationships.BelongsToOne |
| 384 | |
| 385 | bbsim_subscriber_7: |
| 386 | type: tosca.nodes.RCORDSubscriber |
| 387 | properties: |
| 388 | name: Sub_BBSM00000107 |
| 389 | status: pre-provisioned |
| 390 | c_tag: 907 |
| 391 | s_tag: 999 |
| 392 | onu_device: BBSM00000107 |
| 393 | circuit_id: circuit7 |
| 394 | remote_id: remote7 |
| 395 | nas_port_id: PON 2/1/01/1:1.1.7 |
| 396 | requirements: |
| 397 | - upstream_bps: |
| 398 | node: bronze_bp |
| 399 | relationship: tosca.relationships.BelongsToOne |
| 400 | - downstream_bps: |
| 401 | node: bronze_bp |
| 402 | relationship: tosca.relationships.BelongsToOne |
| 403 | |
| 404 | bbsim_subscriber_8: |
| 405 | type: tosca.nodes.RCORDSubscriber |
| 406 | properties: |
| 407 | name: Sub_BBSM00000108 |
| 408 | status: pre-provisioned |
| 409 | c_tag: 908 |
| 410 | s_tag: 999 |
| 411 | onu_device: BBSM00000108 |
| 412 | circuit_id: circuit8 |
| 413 | remote_id: remote8 |
| 414 | nas_port_id: PON 2/1/01/1:1.1.8 |
| 415 | requirements: |
| 416 | - upstream_bps: |
| 417 | node: bronze_bp |
| 418 | relationship: tosca.relationships.BelongsToOne |
| 419 | - downstream_bps: |
| 420 | node: bronze_bp |
| 421 | relationship: tosca.relationships.BelongsToOne |
| 422 | |
| 423 | bbsim_subscriber_9: |
| 424 | type: tosca.nodes.RCORDSubscriber |
| 425 | properties: |
| 426 | name: Sub_BBSM00000109 |
| 427 | status: pre-provisioned |
| 428 | c_tag: 909 |
| 429 | s_tag: 999 |
| 430 | onu_device: BBSM00000109 |
| 431 | circuit_id: circuit9 |
| 432 | remote_id: remote9 |
| 433 | nas_port_id: PON 2/1/01/1:1.1.9 |
| 434 | requirements: |
| 435 | - upstream_bps: |
| 436 | node: bronze_bp |
| 437 | relationship: tosca.relationships.BelongsToOne |
| 438 | - downstream_bps: |
| 439 | node: bronze_bp |
| 440 | relationship: tosca.relationships.BelongsToOne |
| 441 | |
| 442 | bbsim_subscriber_a: |
| 443 | type: tosca.nodes.RCORDSubscriber |
| 444 | properties: |
| 445 | name: Sub_BBSM0000010a |
| 446 | status: pre-provisioned |
| 447 | c_tag: 910 |
| 448 | s_tag: 999 |
| 449 | onu_device: BBSM0000010a |
| 450 | circuit_id: circuit10a |
| 451 | remote_id: remote10a |
| 452 | nas_port_id: PON 2/1/01/1:1.1.10a |
| 453 | requirements: |
| 454 | - upstream_bps: |
| 455 | node: bronze_bp |
| 456 | relationship: tosca.relationships.BelongsToOne |
| 457 | - downstream_bps: |
| 458 | node: bronze_bp |
| 459 | relationship: tosca.relationships.BelongsToOne |
| 460 | |
| 461 | bbsim_subscriber_b: |
| 462 | type: tosca.nodes.RCORDSubscriber |
| 463 | properties: |
| 464 | name: Sub_BBSM0000010b |
| 465 | status: pre-provisioned |
| 466 | c_tag: 911 |
| 467 | s_tag: 999 |
| 468 | onu_device: BBSM0000010b |
| 469 | circuit_id: circuit10b |
| 470 | remote_id: remote10b |
| 471 | nas_port_id: PON 2/1/01/1:1.1.10b |
| 472 | requirements: |
| 473 | - upstream_bps: |
| 474 | node: bronze_bp |
| 475 | relationship: tosca.relationships.BelongsToOne |
| 476 | - downstream_bps: |
| 477 | node: bronze_bp |
| 478 | relationship: tosca.relationships.BelongsToOne |
| 479 | |
| 480 | bbsim_subscriber_c: |
| 481 | type: tosca.nodes.RCORDSubscriber |
| 482 | properties: |
| 483 | name: Sub_BBSM0000010c |
| 484 | status: pre-provisioned |
| 485 | c_tag: 912 |
| 486 | s_tag: 999 |
| 487 | onu_device: BBSM0000010c |
| 488 | circuit_id: circuit10c |
| 489 | remote_id: remote10c |
| 490 | nas_port_id: PON 2/1/01/1:1.1.10c |
| 491 | requirements: |
| 492 | - upstream_bps: |
| 493 | node: bronze_bp |
| 494 | relationship: tosca.relationships.BelongsToOne |
| 495 | - downstream_bps: |
| 496 | node: bronze_bp |
| 497 | relationship: tosca.relationships.BelongsToOne |
| 498 | |
| 499 | bbsim_subscriber_d: |
| 500 | type: tosca.nodes.RCORDSubscriber |
| 501 | properties: |
| 502 | name: Sub_BBSM0000010d |
| 503 | status: pre-provisioned |
| 504 | c_tag: 913 |
| 505 | s_tag: 999 |
| 506 | onu_device: BBSM0000010d |
| 507 | circuit_id: circuit10d |
| 508 | remote_id: remote10d |
| 509 | nas_port_id: PON 2/1/01/1:1.1.10d |
| 510 | requirements: |
| 511 | - upstream_bps: |
| 512 | node: bronze_bp |
| 513 | relationship: tosca.relationships.BelongsToOne |
| 514 | - downstream_bps: |
| 515 | node: bronze_bp |
| 516 | relationship: tosca.relationships.BelongsToOne |
| 517 | |
| 518 | bbsim_subscriber_e: |
| 519 | type: tosca.nodes.RCORDSubscriber |
| 520 | properties: |
| 521 | name: Sub_BBSM0000010e |
| 522 | status: pre-provisioned |
| 523 | c_tag: 914 |
| 524 | s_tag: 999 |
| 525 | onu_device: BBSM0000010e |
| 526 | circuit_id: circuit10e |
| 527 | remote_id: remote10e |
| 528 | nas_port_id: PON 2/1/01/1:1.1.10e |
| 529 | requirements: |
| 530 | - upstream_bps: |
| 531 | node: bronze_bp |
| 532 | relationship: tosca.relationships.BelongsToOne |
| 533 | - downstream_bps: |
| 534 | node: bronze_bp |
| 535 | relationship: tosca.relationships.BelongsToOne |
| 536 | |
| 537 | bbsim_subscriber_f: |
| 538 | type: tosca.nodes.RCORDSubscriber |
| 539 | properties: |
| 540 | name: Sub_BBSM0000010f |
| 541 | status: pre-provisioned |
| 542 | c_tag: 915 |
| 543 | s_tag: 999 |
| 544 | onu_device: BBSM0000010f |
| 545 | circuit_id: circuit10f |
| 546 | remote_id: remote10f |
| 547 | nas_port_id: PON 2/1/01/1:1.1.10f |
| 548 | requirements: |
| 549 | - upstream_bps: |
| 550 | node: bronze_bp |
| 551 | relationship: tosca.relationships.BelongsToOne |
| 552 | - downstream_bps: |
| 553 | node: bronze_bp |
| 554 | relationship: tosca.relationships.BelongsToOne |