blob: e6011a921082dcbf66ea7b9953f50d0e692a3646 [file] [log] [blame]
Matteo Scandolo08c9c802018-10-12 10:00:03 -07001# 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-pod1-bbsim.yaml http://10.90.0.101: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
Matteo Scandolo48be0122018-10-15 15:01:54 -070022 - custom_types/bngportmapping.yaml
Matteo Scandolo08c9c802018-10-12 10:00:03 -070023 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
25 - custom_types/rcordsubscriber.yaml
26description: Create a simulated OLT Device in VOLTHA
27topology_template:
28 node_templates:
29
30 service#volt:
31 type: tosca.nodes.VOLTService
32 properties:
33 name: volt
34 must-exist: true
35
36 olt_device:
37 type: tosca.nodes.OLTDevice
38 properties:
39 name: BBSIM_OLT
Matteo Scandolo48be0122018-10-15 15:01:54 -070040 device_type: bbsimolt
Matteo Scandolo08c9c802018-10-12 10:00:03 -070041 host: bbsim.voltha.svc
42 # host: 10.233.33.1
43 port: 50060
44 switch_datapath_id: of:0000000000000001
45 switch_port: "3"
46 outer_tpid: "0x8100"
47 uplink: "65536"
48 nas_id: "NAS_ID"
49 requirements:
50 - volt_service:
51 node: service#volt
52 relationship: tosca.relationships.BelongsToOne
53
Matteo Scandolo48be0122018-10-15 15:01:54 -070054 bngmapping:
55 type: tosca.nodes.BNGPortMapping
56 properties:
57 s_tag: any
58 switch_port: 31
59
Matteo Scandolo08c9c802018-10-12 10:00:03 -070060 # Whitelist
61 service#att:
62 type: tosca.nodes.AttWorkflowDriverService
63 properties:
64 name: att-workflow-driver
65 must-exist: true
66
67 NONE31323030:
68 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
69 properties:
Matteo Scandolo48be0122018-10-15 15:01:54 -070070 serial_number: NONE00000100
71 pon_port_id: 536870913
Matteo Scandolo08c9c802018-10-12 10:00:03 -070072 device_id: of:0000aabbccddee12
73 requirements:
74 - owner:
75 node: service#att
76 relationship: tosca.relationships.BelongsToOne
77
78 # Pre-provision the subscriber
79 bbsim_subscriber_1:
80 type: tosca.nodes.RCORDSubscriber
81 properties:
Matteo Scandolo48be0122018-10-15 15:01:54 -070082 name: Sub_NONE00000100
Matteo Scandolo08c9c802018-10-12 10:00:03 -070083 status: pre-provisioned
84 c_tag: 123
85 s_tag: 456
Matteo Scandolo48be0122018-10-15 15:01:54 -070086 onu_device: NONE00000100
Matteo Scandolo08c9c802018-10-12 10:00:03 -070087 nas_port_id : "PON 1/1/03/1:1.1.1"
88 circuit_id: foo1
89 remote_id: bar1