blob: 27cc9974cba5e8ac80a7af4408061427dd9d209f [file] [log] [blame]
Luca Preteda53c892018-09-26 16:10:43 -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-fabric.yaml http://10.90.0.101:30007/run
16
17tosca_definitions_version: tosca_simple_yaml_1_0
18imports:
19 - custom_types/switch.yaml
20 - custom_types/switchport.yaml
21 - custom_types/portinterface.yaml
22 - custom_types/bngportmapping.yaml
23 - custom_types/attworkflowdriverwhitelistentry.yaml
24 - custom_types/attworkflowdriverservice.yaml
Matteo Scandolo99ad3762018-10-12 13:54:30 -070025 - custom_types/serviceinstanceattribute.yaml
26 - custom_types/onosapp.yaml
Luca Preteda53c892018-09-26 16:10:43 -070027
Luca Pretedd1e3502018-10-11 09:44:40 -070028description: Configures the fabric and the whitelist
Luca Preteda53c892018-09-26 16:10:43 -070029
30topology_template:
31 node_templates:
Luca Prete044817f2018-10-16 19:02:08 +020032 switch#agg_sw:
Luca Preteda53c892018-09-26 16:10:43 -070033 type: tosca.nodes.Switch
34 properties:
35 driver: ofdpa3
36 ipv4Loopback: 192.168.0.201
37 ipv4NodeSid: 17
38 isEdgeRouter: True
Luca Prete044817f2018-10-16 19:02:08 +020039 name: AGG SWITCH
Luca Preteda53c892018-09-26 16:10:43 -070040 ofId: of:0000000000000001
41 routerMac: 00:00:02:01:06:01
42
43 # Setup the EdgeCore OLT switch port
44 port#edgecore_olt_port:
45 type: tosca.nodes.SwitchPort
46 properties:
47 portId: 49
48 host_learning: false
49 requirements:
50 - switch:
Luca Prete044817f2018-10-16 19:02:08 +020051 node: switch#agg_sw
Luca Preteda53c892018-09-26 16:10:43 -070052 relationship: tosca.relationships.BelongsToOne
53
Luca Pretee10208e2018-10-16 16:40:42 +020054 # Setup the Adtran OLT switch port
55 port#adtran_olt_port:
56 type: tosca.nodes.SwitchPort
57 properties:
58 portId: 50
59 host_learning: false
60 requirements:
61 - switch:
Luca Prete044817f2018-10-16 19:02:08 +020062 node: switch#agg_sw
Luca Pretee10208e2018-10-16 16:40:42 +020063 relationship: tosca.relationships.BelongsToOne
Luca Preteda53c892018-09-26 16:10:43 -070064
Luca Pretee1725602018-10-16 12:41:02 +020065 # Setup the CIG OLT switch port
66 port#cig_olt_port:
67 type: tosca.nodes.SwitchPort
68 properties:
69 portId: 51
70 host_learning: false
71 requirements:
72 - switch:
Luca Prete044817f2018-10-16 19:02:08 +020073 node: switch#agg_sw
Luca Pretee1725602018-10-16 12:41:02 +020074 relationship: tosca.relationships.BelongsToOne
Luca Preteda53c892018-09-26 16:10:43 -070075
Luca Pretefc71a642018-10-16 11:23:42 +020076 # # Setup the Iskratel XGS-PON OLT switch port
77 # port#iskratelx_olt_port:
78 # type: tosca.nodes.SwitchPort
79 # properties:
80 # portId: 46
81 # host_learning: false
82 # requirements:
83 # - switch:
Luca Prete044817f2018-10-16 19:02:08 +020084 # node: switch#agg_sw
Luca Pretefc71a642018-10-16 11:23:42 +020085 # relationship: tosca.relationships.BelongsToOne
Luca Preteda53c892018-09-26 16:10:43 -070086
Luca Pretee799b0a2018-10-16 16:08:54 +020087 # Setup the Iskratel GPON OLT switch port
88 port#iskratelg_olt_port:
89 type: tosca.nodes.SwitchPort
90 properties:
91 portId: 47
92 host_learning: false
93 requirements:
94 - switch:
Luca Prete044817f2018-10-16 19:02:08 +020095 node: switch#agg_sw
Luca Pretee799b0a2018-10-16 16:08:54 +020096 relationship: tosca.relationships.BelongsToOne
Luca Preteda53c892018-09-26 16:10:43 -070097
98 # Port connected to the BNG
99 port#bng_port:
100 type: tosca.nodes.SwitchPort
101 properties:
102 portId: 48
Luca Preteda53c892018-09-26 16:10:43 -0700103 requirements:
104 - switch:
Luca Prete044817f2018-10-16 19:02:08 +0200105 node: switch#agg_sw
Luca Preteda53c892018-09-26 16:10:43 -0700106 relationship: tosca.relationships.BelongsToOne
107
108 # Setup the fabric switch port where the external
109 # router is connected to
110 bngmapping:
111 type: tosca.nodes.BNGPortMapping
112 properties:
113 s_tag: any
114 switch_port: 48
115
Matteo Scandolo99ad3762018-10-12 13:54:30 -0700116 # DHCP L2 Relay config
117 onos_app#dhcpl2relay:
118 type: tosca.nodes.ONOSApp
119 properties:
120 name: dhcpl2relay
121 must-exist: true
122
123 dhcpl2relay-config-attr:
124 type: tosca.nodes.ServiceInstanceAttribute
125 properties:
126 name: /onos/v1/network/configuration/apps/org.opencord.dhcpl2relay
127 value: >
128 {
129 "dhcpl2relay" : {
130 "useOltUplinkForServerPktInOut" : false,
Luca Prete9e926c02018-10-15 15:33:31 +0200131 "dhcpServerConnectPoints" : [ "of:0000000000000001/48" ]
Matteo Scandolo99ad3762018-10-12 13:54:30 -0700132 }
133 }
134 requirements:
135 - service_instance:
136 node: onos_app#dhcpl2relay
137 relationship: tosca.relationships.BelongsToOne
138
Matteo Scandoloc75769d2018-10-16 10:55:47 -0700139 # OLT app extra config
140 onos_app#olt:
141 type: tosca.nodes.ONOSApp
142 properties:
143 name: olt
144 must-exist: true
145
146 olt-config-attr:
147 type: tosca.nodes.ServiceInstanceAttribute
148 properties:
149 name: /onos/v1/network/configuration/devices
150 value: >
151 "of:00000024454a6be4" : {
152 "basic" : {
153 "name" : "ADTRAN OLT",
154 "driver" : "voltha"
155 }
156 }
157 requirements:
158 - service_instance:
159 node: onos_app#olt
160 relationship: tosca.relationships.BelongsToOne
161
Luca Preteda53c892018-09-26 16:10:43 -0700162 # ONU Whitelist
163 service#att:
164 type: tosca.nodes.AttWorkflowDriverService
165 properties:
166 name: att-workflow-driver
167 must-exist: true
168
Luca Pretedd1e3502018-10-11 09:44:40 -0700169 # ONUs connected to EdgeCore OLT
Luca Preteee529232018-10-16 12:38:31 +0200170 ALPHe3d1cee9:
Luca Preteda53c892018-09-26 16:10:43 -0700171 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
172 properties:
Luca Preteee529232018-10-16 12:38:31 +0200173 serial_number: ALPHe3d1cee9
Luca Preteda53c892018-09-26 16:10:43 -0700174 pon_port_id: 536870912
Luca Preteee529232018-10-16 12:38:31 +0200175 device_id: of:00000000c0a8646f
Luca Preteda53c892018-09-26 16:10:43 -0700176 requirements:
177 - owner:
178 node: service#att
179 relationship: tosca.relationships.BelongsToOne
180
Luca Preteee529232018-10-16 12:38:31 +0200181 ISKT71e81130:
182 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
183 properties:
184 serial_number: ISKT71e81130
185 pon_port_id: 536870912
186 device_id: of:00000000c0a8646f
187 requirements:
188 - owner:
189 node: service#att
190 relationship: tosca.relationships.BelongsToOne
Luca Pretedd1e3502018-10-11 09:44:40 -0700191
Luca Pretee10208e2018-10-16 16:40:42 +0200192 # ONUs connected to Adtran OLT
193 ADTN17510028:
194 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
195 properties:
196 serial_number: ADTN17510028
197 pon_port_id: 5
198 device_id: of:00000024454A6BE4
199 requirements:
200 - owner:
201 node: service#att
202 relationship: tosca.relationships.BelongsToOne
Luca Pretedd1e3502018-10-11 09:44:40 -0700203
Luca Pretee10208e2018-10-16 16:40:42 +0200204 ADTN16180345:
205 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
206 properties:
207 serial_number: ADTN16180345
208 pon_port_id: 6
209 device_id: of:00000024454A6BE4
210 requirements:
211 - owner:
212 node: service#att
213 relationship: tosca.relationships.BelongsToOne
Luca Pretedd1e3502018-10-11 09:44:40 -0700214
Luca Preteee529232018-10-16 12:38:31 +0200215 # ONUs connected to CIG OLT
216 CIGG18a00002:
217 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
218 properties:
219 serial_number: CIGG18a00002
220 pon_port_id: 536870913
221 device_id: of:00000000c0a86471
222 requirements:
223 - owner:
224 node: service#att
225 relationship: tosca.relationships.BelongsToOne
Luca Preteda53c892018-09-26 16:10:43 -0700226
Luca Pretefc71a642018-10-16 11:23:42 +0200227 # # ONUs connected to Iskratel XGS-PON OLT
Luca Preteee529232018-10-16 12:38:31 +0200228 # ISKT71e81070:
Luca Pretefc71a642018-10-16 11:23:42 +0200229 # type: tosca.nodes.AttWorkflowDriverWhiteListEntry
230 # properties:
Luca Preteee529232018-10-16 12:38:31 +0200231 # serial_number: ISKT71e81070
Luca Pretefc71a642018-10-16 11:23:42 +0200232 # pon_port_id: 536870912
Luca Preteee529232018-10-16 12:38:31 +0200233 # device_id: of:00000000c0a86472
Luca Pretefc71a642018-10-16 11:23:42 +0200234 # requirements:
235 # - owner:
236 # node: service#att
237 # relationship: tosca.relationships.BelongsToOne
Luca Preteda53c892018-09-26 16:10:43 -0700238
Luca Preteee529232018-10-16 12:38:31 +0200239 # ISKT71e81071:
Luca Pretefc71a642018-10-16 11:23:42 +0200240 # type: tosca.nodes.AttWorkflowDriverWhiteListEntry
241 # properties:
Luca Preteee529232018-10-16 12:38:31 +0200242 # serial_number: ISKT71e81071
Luca Pretefc71a642018-10-16 11:23:42 +0200243 # pon_port_id: 536870912
Luca Preteee529232018-10-16 12:38:31 +0200244 # device_id: of:00000000c0a86472
Luca Pretefc71a642018-10-16 11:23:42 +0200245 # requirements:
246 # - owner:
247 # node: service#att
248 # relationship: tosca.relationships.BelongsToOne
Luca Pretedd1e3502018-10-11 09:44:40 -0700249
Luca Pretefc71a642018-10-16 11:23:42 +0200250 # # ONUs connected to Iskratel GPON OLT
Luca Preteee529232018-10-16 12:38:31 +0200251 # ISKT45f2c688:
Luca Pretefc71a642018-10-16 11:23:42 +0200252 # type: tosca.nodes.AttWorkflowDriverWhiteListEntry
253 # properties:
Luca Preteee529232018-10-16 12:38:31 +0200254 # serial_number: ISKT45f2c688
Luca Pretefc71a642018-10-16 11:23:42 +0200255 # pon_port_id: 536870912
Luca Preteee529232018-10-16 12:38:31 +0200256 # device_id: of:00000000c0a86473
Luca Pretefc71a642018-10-16 11:23:42 +0200257 # requirements:
258 # - owner:
259 # node: service#att
260 # relationship: tosca.relationships.BelongsToOne
Luca Pretedd1e3502018-10-11 09:44:40 -0700261
Luca Preteee529232018-10-16 12:38:31 +0200262 # ISKT45f2bd61:
Luca Pretefc71a642018-10-16 11:23:42 +0200263 # type: tosca.nodes.AttWorkflowDriverWhiteListEntry
264 # properties:
Luca Preteee529232018-10-16 12:38:31 +0200265 # serial_number: ISKT45f2bd61
Luca Pretefc71a642018-10-16 11:23:42 +0200266 # pon_port_id: 536870912
Luca Preteee529232018-10-16 12:38:31 +0200267 # device_id: of:00000000c0a86473
Luca Pretefc71a642018-10-16 11:23:42 +0200268 # requirements:
269 # - owner:
270 # node: service#att
271 # relationship: tosca.relationships.BelongsToOne
Luca Pretedd1e3502018-10-11 09:44:40 -0700272
Luca Preteee529232018-10-16 12:38:31 +0200273 # ISKT45f2c1e4:
Luca Pretefc71a642018-10-16 11:23:42 +0200274 # type: tosca.nodes.AttWorkflowDriverWhiteListEntry
275 # properties:
Luca Preteee529232018-10-16 12:38:31 +0200276 # serial_number: ISKT45f2c1e4
Luca Pretefc71a642018-10-16 11:23:42 +0200277 # pon_port_id: 536870912
Luca Preteee529232018-10-16 12:38:31 +0200278 # device_id: of:00000000c0a86473
Luca Pretefc71a642018-10-16 11:23:42 +0200279 # requirements:
280 # - owner:
281 # node: service#att
282 # relationship: tosca.relationships.BelongsToOne