blob: c0c975b194bd0d37516d0cc2e3123993913928b4 [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
Matteo Scandoloc75769d2018-10-16 10:55:47 -070026 - custom_types/serviceinstanceattribute.yaml
27 - custom_types/onosapp.yaml
Matteo Scandolo08c9c802018-10-12 10:00:03 -070028description: 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 Scandolo48be0122018-10-15 15:01:54 -070042 device_type: bbsimolt
Matteo Scandolo08c9c802018-10-12 10:00:03 -070043 host: bbsim.voltha.svc
44 # host: 10.233.33.1
45 port: 50060
46 switch_datapath_id: of:0000000000000001
47 switch_port: "3"
48 outer_tpid: "0x8100"
Matteo Scandolo08c9c802018-10-12 10:00:03 -070049 nas_id: "NAS_ID"
50 requirements:
51 - volt_service:
52 node: service#volt
53 relationship: tosca.relationships.BelongsToOne
54
Matteo Scandoloc75769d2018-10-16 10:55:47 -070055 # POD Config
Matteo Scandolo48be0122018-10-15 15:01:54 -070056 bngmapping:
57 type: tosca.nodes.BNGPortMapping
58 properties:
59 s_tag: any
60 switch_port: 31
61
Matteo Scandoloc75769d2018-10-16 10:55:47 -070062 # DHCP L2 Relay config
63 onos_app#dhcpl2relay:
64 type: tosca.nodes.ONOSApp
65 properties:
66 name: dhcpl2relay
67 must-exist: true
68
69 dhcpl2relay-config-attr:
70 type: tosca.nodes.ServiceInstanceAttribute
71 properties:
72 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
73 value: >
74 {
75 "dhcpl2relay" : {
76 "useOltUplinkForServerPktInOut" : true
77 }
78 }
79 requirements:
80 - service_instance:
81 node: onos_app#dhcpl2relay
82 relationship: tosca.relationships.BelongsToOne
83
Matteo Scandolo08c9c802018-10-12 10:00:03 -070084 # Whitelist
85 service#att:
86 type: tosca.nodes.AttWorkflowDriverService
87 properties:
88 name: att-workflow-driver
89 must-exist: true
90
91 NONE31323030:
92 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
93 properties:
Matteo Scandolo48be0122018-10-15 15:01:54 -070094 serial_number: NONE00000100
95 pon_port_id: 536870913
Matteo Scandolo08c9c802018-10-12 10:00:03 -070096 device_id: of:0000aabbccddee12
97 requirements:
98 - owner:
99 node: service#att
100 relationship: tosca.relationships.BelongsToOne
101
102 # Pre-provision the subscriber
103 bbsim_subscriber_1:
104 type: tosca.nodes.RCORDSubscriber
105 properties:
Matteo Scandolo48be0122018-10-15 15:01:54 -0700106 name: Sub_NONE00000100
Matteo Scandolo08c9c802018-10-12 10:00:03 -0700107 status: pre-provisioned
108 c_tag: 123
109 s_tag: 456
Matteo Scandolo48be0122018-10-15 15:01:54 -0700110 onu_device: NONE00000100
Matteo Scandolo08c9c802018-10-12 10:00:03 -0700111 nas_port_id : "PON 1/1/03/1:1.1.1"
112 circuit_id: foo1
113 remote_id: bar1