blob: 5c452db73d2e846586ad0b54888fceaf83a00518 [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: "BBSIMOLT000"
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
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
BBSM00000010:
type: tosca.nodes.AttWorkflowDriverWhiteListEntry
properties:
serial_number: BBSM00000010
pon_port_id: 536870912
device_id: of:0000626273696d76
requirements:
- owner:
node: service#att
relationship: tosca.relationships.BelongsToOne
# Pre-provision the subscriber
bbsim_subscriber_1:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000001
status: pre-provisioned
c_tag: 900
s_tag: 999
onu_device: BBSM00000001
circuit_id: circuit01
remote_id: remote01
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: 901
s_tag: 999
onu_device: BBSM00000002
circuit_id: circuit02
remote_id: remote02
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: 902
s_tag: 999
onu_device: BBSM00000003
circuit_id: circuit03
remote_id: remote03
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: 903
s_tag: 999
onu_device: BBSM00000004
circuit_id: circuit04
remote_id: remote04
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: 904
s_tag: 999
onu_device: BBSM00000005
circuit_id: circuit05
remote_id: remote05
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: 905
s_tag: 999
onu_device: BBSM00000006
circuit_id: circuit06
remote_id: remote06
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: 906
s_tag: 999
onu_device: BBSM00000007
circuit_id: circuit07
remote_id: remote07
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: 907
s_tag: 999
onu_device: BBSM00000008
circuit_id: circuit08
remote_id: remote08
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: 908
s_tag: 999
onu_device: BBSM00000009
circuit_id: circuit09
remote_id: remote09
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: 909
s_tag: 999
onu_device: BBSM0000000a
circuit_id: circuit90a
remote_id: remote0a
nas_port_id: PON 2/1/01/1:1.1.a
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: 910
s_tag: 999
onu_device: BBSM0000000b
circuit_id: circuit0b
remote_id: remote0b
nas_port_id: PON 2/1/01/1:1.1.00b
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: 911
s_tag: 999
onu_device: BBSM0000000c
circuit_id: circuit0c
remote_id: remote0c
nas_port_id: PON 2/1/01/1:1.1.00c
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: 912
s_tag: 999
onu_device: BBSM0000000d
circuit_id: circuit0d
remote_id: remote0d
nas_port_id: PON 2/1/01/1:1.1.00d
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: 913
s_tag: 999
onu_device: BBSM0000000e
circuit_id: circuit0e
remote_id: remote0e
nas_port_id: PON 2/1/01/1:1.1.00e
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: 914
s_tag: 999
onu_device: BBSM0000000f
circuit_id: circuit0f
remote_id: remote0f
nas_port_id: PON 2/1/01/1:1.1.00f
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_10:
type: tosca.nodes.RCORDSubscriber
properties:
name: Sub_BBSM00000010
status: pre-provisioned
c_tag: 915
s_tag: 999
onu_device: BBSM00000010
circuit_id: circuit10
remote_id: remote10
nas_port_id: PON 2/1/01/1:1.1.010
tech_profile_id: 64
requirements:
- upstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne
- downstream_bps:
node: bronze_bp
relationship: tosca.relationships.BelongsToOne