blob: 5ff00a2cd1d1263437004ded398879a4aecc90a5 [file] [log] [blame]
Joey Armstrong003e83e2023-01-09 20:23:48 -05001# Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Matteo Scandolo08c9c802018-10-12 10:00:03 -07002#
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"
Scott Baker970d5d52018-12-11 07:00:17 +000049 uplink: "65536"
Matteo Scandolo08c9c802018-10-12 10:00:03 -070050 nas_id: "NAS_ID"
51 requirements:
52 - volt_service:
53 node: service#volt
54 relationship: tosca.relationships.BelongsToOne
55
Matteo Scandoloc75769d2018-10-16 10:55:47 -070056 # POD Config
Matteo Scandolo48be0122018-10-15 15:01:54 -070057 bngmapping:
58 type: tosca.nodes.BNGPortMapping
59 properties:
60 s_tag: any
61 switch_port: 31
62
Matteo Scandoloc75769d2018-10-16 10:55:47 -070063 # DHCP L2 Relay config
64 onos_app#dhcpl2relay:
65 type: tosca.nodes.ONOSApp
66 properties:
67 name: dhcpl2relay
68 must-exist: true
69
70 dhcpl2relay-config-attr:
71 type: tosca.nodes.ServiceInstanceAttribute
72 properties:
73 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
74 value: >
75 {
76 "dhcpl2relay" : {
77 "useOltUplinkForServerPktInOut" : true
78 }
79 }
80 requirements:
81 - service_instance:
82 node: onos_app#dhcpl2relay
83 relationship: tosca.relationships.BelongsToOne
84
Matteo Scandolo08c9c802018-10-12 10:00:03 -070085 # Whitelist
86 service#att:
87 type: tosca.nodes.AttWorkflowDriverService
88 properties:
89 name: att-workflow-driver
90 must-exist: true
91
92 NONE31323030:
93 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
94 properties:
Matteo Scandolo48be0122018-10-15 15:01:54 -070095 serial_number: NONE00000100
96 pon_port_id: 536870913
Matteo Scandolo08c9c802018-10-12 10:00:03 -070097 device_id: of:0000aabbccddee12
98 requirements:
99 - owner:
100 node: service#att
101 relationship: tosca.relationships.BelongsToOne
102
103 # Pre-provision the subscriber
104 bbsim_subscriber_1:
105 type: tosca.nodes.RCORDSubscriber
106 properties:
Matteo Scandolo48be0122018-10-15 15:01:54 -0700107 name: Sub_NONE00000100
Matteo Scandolo08c9c802018-10-12 10:00:03 -0700108 status: pre-provisioned
109 c_tag: 123
110 s_tag: 456
Matteo Scandolo48be0122018-10-15 15:01:54 -0700111 onu_device: NONE00000100
Matteo Scandolo08c9c802018-10-12 10:00:03 -0700112 nas_port_id : "PON 1/1/03/1:1.1.1"
113 circuit_id: foo1
114 remote_id: bar1