blob: 1477ea83729a2914e3451aa941b84e725e3e95fb [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
Matteo Scandolob9a27ef2018-11-13 10:51:40 -080015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @bbsim-2.yaml http://10.90.0.120:30007/run
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080016
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
Matteo Scandolo208abf42018-11-27 17:10:07 -080042 # device_type: bbsimolt
43 device_type: openolt
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080044 host: bbsim.voltha.svc
45 port: 50060
46 switch_datapath_id: of:0000000000000002
47 switch_port: "3"
48 outer_tpid: "0x8100"
49 uplink: "65536"
50 nas_id: "NAS_ID"
51 serial_number: "bbsim.voltha.svc:50060"
52 requirements:
53 - volt_service:
54 node: service#volt
55 relationship: tosca.relationships.BelongsToOne
56
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080057 # Whitelist
58 service#att:
59 type: tosca.nodes.AttWorkflowDriverService
60 properties:
61 name: att-workflow-driver
62 must-exist: true
63
64 BBSM00000100:
65 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
66 properties:
67 serial_number: BBSM00000100
68 pon_port_id: 536870913
Matteo Scandoloa9df2482019-01-16 13:15:43 -080069 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080070 requirements:
71 - owner:
72 node: service#att
73 relationship: tosca.relationships.BelongsToOne
74
75 BBSM00000101:
76 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
77 properties:
78 serial_number: BBSM00000101
79 pon_port_id: 536870913
Matteo Scandoloa9df2482019-01-16 13:15:43 -080080 device_id: of:0000626273696d76
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080081 requirements:
82 - owner:
83 node: service#att
84 relationship: tosca.relationships.BelongsToOne
85
86 # Pre-provision the subscriber
87 bbsim_subscriber_0:
88 type: tosca.nodes.RCORDSubscriber
89 properties:
90 name: Sub_BBSM00000100
91 status: pre-provisioned
92 c_tag: 900
93 s_tag: 999
94 onu_device: BBSM00000100
Matteo Scandolo146038f2018-11-14 16:41:18 -080095 circuit_id: circuit0
96 remote_id: remote0
97 nas_port_id: PON 2/1/01/1:1.1.0
Matteo Scandolo1c92dac2018-11-05 17:30:58 -080098
99 bbsim_subscriber_1:
100 type: tosca.nodes.RCORDSubscriber
101 properties:
102 name: Sub_BBSM00000101
103 status: pre-provisioned
104 c_tag: 901
105 s_tag: 999
106 onu_device: BBSM00000101
Matteo Scandolo146038f2018-11-14 16:41:18 -0800107 circuit_id: circuit1
108 remote_id: remote1
109 nas_port_id: PON 2/1/01/1:1.1.1