blob: b5dd3cf7749eb65ba0462a561cbe20f5dd6ca4a1 [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-2.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
56 # link
57 onos_app#olt:
58 type: tosca.nodes.ONOSApp
59 properties:
60 name: olt
61 must-exist: true
62
63 olt-config-attr:
64 type: tosca.nodes.ServiceInstanceAttribute
65 properties:
66 name: /onos/v1/network/configuration/links
67 value: >
68 {
69 "of:0000000000000002/24-of:0000000000000012/65536": {
70 "basic": {}
71 }
72 }
73 requirements:
74 - service_instance:
75 node: onos_app#olt
76 relationship: tosca.relationships.BelongsToOne
77
78 # 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 # Pre-provision the subscriber
108 bbsim_subscriber_0:
109 type: tosca.nodes.RCORDSubscriber
110 properties:
111 name: Sub_BBSM00000100
112 status: pre-provisioned
113 c_tag: 900
114 s_tag: 999
115 onu_device: BBSM00000100
116
117 bbsim_subscriber_1:
118 type: tosca.nodes.RCORDSubscriber
119 properties:
120 name: Sub_BBSM00000101
121 status: pre-provisioned
122 c_tag: 901
123 s_tag: 999
124 onu_device: BBSM00000101