blob: ade67edf8c93f756f5b05b99f5e28c8b264e924a [file] [log] [blame]
# Copyright 2017-present Open Networking Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Example TOSCA to create a BBSim OLT and 16 ONUs with SiaB
# Load into xos-tosca with:
# 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
tosca_definitions_version: tosca_simple_yaml_1_0
imports:
- custom_types/voltservice.yaml
- custom_types/oltdevice.yaml
- custom_types/onudevice.yaml
- custom_types/attworkflowdriverservice.yaml
- custom_types/attworkflowdriverwhitelistentry.yaml
- custom_types/rcordsubscriber.yaml
- custom_types/bandwidthprofile.yaml
description: Create a simulated OLT Device in VOLTHA
topology_template:
node_templates:
# Bronze bandwidthprofile for subscriber
bronze_bp:
type: tosca.nodes.BandwidthProfile
properties:
air: 99999
cbs: 99999
cir: 99999
ebs: 99999
eir: 99999
name: Bronze
service#volt:
type: tosca.nodes.VOLTService
properties:
name: volt
must-exist: true
olt_device:
type: tosca.nodes.OLTDevice
properties:
name: BBSIM_OLT
device_type: openolt
host: bbsim.voltha.svc
port: 50060
switch_datapath_id: of:0000000000000002
switch_port: "3"
outer_tpid: "0x8100"
uplink: "65536"
nas_id: "NAS_ID"
serial_number: "bbsim.voltha.svc:50060"
technology: xgspon
requirements:
- volt_service:
node: service#volt
relationship: tosca.relationships.BelongsToOne
# Whitelist
service#att:
type: tosca.nodes.AttWorkflowDriverService
properties:
name: att-workflow-driver
must-exist: true
BBSM00000000:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000000
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000001:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000001
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000002:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000002
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000003:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000003
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000004:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000004
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000005:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000005
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000006:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000006
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000007:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000007
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000008:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000008
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM00000009:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000009
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM0000000a:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM0000000a
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM0000000b:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM0000000b
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM0000000c:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM0000000c
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM0000000d:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM0000000d
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM0000000e:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM0000000e
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
BBSM0000000f:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM0000000f
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
# Pre-provision the subscriber
bbsim_subscriber_0:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000000
status: pre-provisioned
c_tag: 900
s_tag: 999
onu_device: BBSM00000000
circuit_id: circuit0
remote_id: remote0
nas_port_id: PON 2/1/01/1:1.1.0
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_1:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000001
status: pre-provisioned
c_tag: 901
s_tag: 999
onu_device: BBSM00000001
circuit_id: circuit1
remote_id: remote1
nas_port_id: PON 2/1/01/1:1.1.1
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_2:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000002
status: pre-provisioned
c_tag: 902
s_tag: 999
onu_device: BBSM00000002
circuit_id: circuit2
remote_id: remote2
nas_port_id: PON 2/1/01/1:1.1.2
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_3:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000003
status: pre-provisioned
c_tag: 903
s_tag: 999
onu_device: BBSM00000003
circuit_id: circuit3
remote_id: remote3
nas_port_id: PON 2/1/01/1:1.1.3
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_4:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000004
status: pre-provisioned
c_tag: 904
s_tag: 999
onu_device: BBSM00000004
circuit_id: circuit4
remote_id: remote4
nas_port_id: PON 2/1/01/1:1.1.4
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_5:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000005
status: pre-provisioned
c_tag: 905
s_tag: 999
onu_device: BBSM00000005
circuit_id: circuit5
remote_id: remote5
nas_port_id: PON 2/1/01/1:1.1.5
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_6:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000006
status: pre-provisioned
c_tag: 906
s_tag: 999
onu_device: BBSM00000006
circuit_id: circuit6
remote_id: remote6
nas_port_id: PON 2/1/01/1:1.1.6
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_7:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000007
status: pre-provisioned
c_tag: 907
s_tag: 999
onu_device: BBSM00000007
circuit_id: circuit7
remote_id: remote7
nas_port_id: PON 2/1/01/1:1.1.7
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_8:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000008
status: pre-provisioned
c_tag: 908
s_tag: 999
onu_device: BBSM00000008
circuit_id: circuit8
remote_id: remote8
nas_port_id: PON 2/1/01/1:1.1.8
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_9:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000009
status: pre-provisioned
c_tag: 909
s_tag: 999
onu_device: BBSM00000009
circuit_id: circuit9
remote_id: remote9
nas_port_id: PON 2/1/01/1:1.1.9
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_a:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM0000000a
status: pre-provisioned
c_tag: 910
s_tag: 999
onu_device: BBSM0000000a
circuit_id: circuit10a
remote_id: remote10a
nas_port_id: PON 2/1/01/1:1.1.10a
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_b:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM0000000b
status: pre-provisioned
c_tag: 911
s_tag: 999
onu_device: BBSM0000000b
circuit_id: circuit10b
remote_id: remote10b
nas_port_id: PON 2/1/01/1:1.1.10b
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_c:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM0000000c
status: pre-provisioned
c_tag: 912
s_tag: 999
onu_device: BBSM0000000c
circuit_id: circuit10c
remote_id: remote10c
nas_port_id: PON 2/1/01/1:1.1.10c
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_d:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM0000000d
status: pre-provisioned
c_tag: 913
s_tag: 999
onu_device: BBSM0000000d
circuit_id: circuit10d
remote_id: remote10d
nas_port_id: PON 2/1/01/1:1.1.10d
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_e:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM0000000e
status: pre-provisioned
c_tag: 914
s_tag: 999
onu_device: BBSM0000000e
circuit_id: circuit10e
remote_id: remote10e
nas_port_id: PON 2/1/01/1:1.1.10e
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
bbsim_subscriber_f:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM0000000f
status: pre-provisioned
c_tag: 915
s_tag: 999
onu_device: BBSM0000000f
circuit_id: circuit10f
remote_id: remote10f
nas_port_id: PON 2/1/01/1:1.1.10f
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne