blob: d33f07fc8381f2b6918b2bae5a2efb8494d25904 [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
25
Luca Pretedd1e3502018-10-11 09:44:40 -070026description: Configures the fabric and the whitelist
Luca Preteda53c892018-09-26 16:10:43 -070027
28topology_template:
29 node_templates:
Luca Preteda53c892018-09-26 16:10:43 -070030 switch#leaf_1:
31 type: tosca.nodes.Switch
32 properties:
33 driver: ofdpa3
34 ipv4Loopback: 192.168.0.201
35 ipv4NodeSid: 17
36 isEdgeRouter: True
37 name: leaf_1
38 ofId: of:0000000000000001
39 routerMac: 00:00:02:01:06:01
40
41 # Setup the EdgeCore OLT switch port
42 port#edgecore_olt_port:
43 type: tosca.nodes.SwitchPort
44 properties:
45 portId: 49
46 host_learning: false
47 requirements:
48 - switch:
49 node: switch#leaf_1
50 relationship: tosca.relationships.BelongsToOne
51
52 # Setup the Adtran OLT switch port
53 port#adtran_olt_port:
54 type: tosca.nodes.SwitchPort
55 properties:
56 portId: 50
57 host_learning: false
58 requirements:
59 - switch:
60 node: switch#leaf_1
61 relationship: tosca.relationships.BelongsToOne
62
63 # Setup the CIG OLT switch port
64 port#cig_olt_port:
65 type: tosca.nodes.SwitchPort
66 properties:
67 portId: 51
68 host_learning: false
69 requirements:
70 - switch:
71 node: switch#leaf_1
72 relationship: tosca.relationships.BelongsToOne
73
74 # Setup the Iskratel XGS-PON OLT switch port
75 port#iskratelx_olt_port:
76 type: tosca.nodes.SwitchPort
77 properties:
78 portId: 52
79 host_learning: false
80 requirements:
81 - switch:
82 node: switch#leaf_1
83 relationship: tosca.relationships.BelongsToOne
84
85 # Setup the Iskratel GPON OLT switch port
86 port#iskratelg_olt_port:
87 type: tosca.nodes.SwitchPort
88 properties:
89 portId: 47
90 host_learning: false
91 requirements:
92 - switch:
93 node: switch#leaf_1
94 relationship: tosca.relationships.BelongsToOne
95
96 # Port connected to the BNG
97 port#bng_port:
98 type: tosca.nodes.SwitchPort
99 properties:
100 portId: 48
101 host_learning: false
102 requirements:
103 - switch:
104 node: switch#leaf_1
105 relationship: tosca.relationships.BelongsToOne
106
107 # Setup the fabric switch port where the external
108 # router is connected to
109 bngmapping:
110 type: tosca.nodes.BNGPortMapping
111 properties:
112 s_tag: any
113 switch_port: 48
114
115 # ONU Whitelist
116 service#att:
117 type: tosca.nodes.AttWorkflowDriverService
118 properties:
119 name: att-workflow-driver
120 must-exist: true
121
Luca Pretedd1e3502018-10-11 09:44:40 -0700122 # ONUs connected to EdgeCore OLT
123 ALPHE3D1CEE9:
Luca Preteda53c892018-09-26 16:10:43 -0700124 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
125 properties:
Luca Pretedd1e3502018-10-11 09:44:40 -0700126 serial_number: ALPHE3D1CEE9
Luca Preteda53c892018-09-26 16:10:43 -0700127 pon_port_id: 536870912
128 device_id: of:000000000a5a0072
129 requirements:
130 - owner:
131 node: service#att
132 relationship: tosca.relationships.BelongsToOne
133
Luca Pretedd1e3502018-10-11 09:44:40 -0700134 ISKT71E81130:
135 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
136 properties:
137 serial_number: ISKT71E81130
Luca Prete663cb462018-10-11 09:49:45 -0700138 pon_port_id: 536870912
Luca Pretedd1e3502018-10-11 09:44:40 -0700139 device_id: of:000000000a5a0072
140 requirements:
141 - owner:
142 node: service#att
143 relationship: tosca.relationships.BelongsToOne
144
145 # ONUs connected to Adtran OLT
146 ADTN17510028:
147 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
148 properties:
149 serial_number: ADTN17510028
150 pon_port_id: 536870912
151 device_id: of:000000000a5a0072
152 requirements:
153 - owner:
154 node: service#att
155 relationship: tosca.relationships.BelongsToOne
156
157 ADTN16180345:
158 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
159 properties:
160 serial_number: ADTN16180345
Luca Prete663cb462018-10-11 09:49:45 -0700161 pon_port_id: 536870912
Luca Pretedd1e3502018-10-11 09:44:40 -0700162 device_id: of:000000000a5a0072
163 requirements:
164 - owner:
165 node: service#att
166 relationship: tosca.relationships.BelongsToOne
167
168 # ONUs connected to CIG OLT
Luca Preteda53c892018-09-26 16:10:43 -0700169 CIG:
170 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
171 properties:
172 serial_number: CIG
173 pon_port_id: 536870912
174 device_id: of:000000000a5a0072
175 requirements:
176 - owner:
177 node: service#att
178 relationship: tosca.relationships.BelongsToOne
179
Luca Pretedd1e3502018-10-11 09:44:40 -0700180 # ONUs connected to Iskratel XGS-PON OLT
181 ISKT71E81070:
Luca Preteda53c892018-09-26 16:10:43 -0700182 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
183 properties:
Luca Pretedd1e3502018-10-11 09:44:40 -0700184 serial_number: ISKT71E81070
Luca Preteda53c892018-09-26 16:10:43 -0700185 pon_port_id: 536870912
186 device_id: of:000000000a5a0072
187 requirements:
188 - owner:
189 node: service#att
190 relationship: tosca.relationships.BelongsToOne
191
Luca Prete0f7e8eb2018-10-11 11:34:42 -0700192 ISKT71E81071:
Luca Preteda53c892018-09-26 16:10:43 -0700193 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
194 properties:
Luca Prete0f7e8eb2018-10-11 11:34:42 -0700195 serial_number: ISKT71E81071
Luca Prete663cb462018-10-11 09:49:45 -0700196 pon_port_id: 536870912
Luca Pretedd1e3502018-10-11 09:44:40 -0700197 device_id: of:000000000a5a0072
198 requirements:
199 - owner:
200 node: service#att
201 relationship: tosca.relationships.BelongsToOne
202
203 # ONUs connected to Iskratel GPON OLT
204 ISKT45F2C688:
205 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
206 properties:
207 serial_number: ISKT45F2C688
Luca Preteda53c892018-09-26 16:10:43 -0700208 pon_port_id: 536870912
209 device_id: of:000000000a5a0072
210 requirements:
211 - owner:
212 node: service#att
Luca Pretedd1e3502018-10-11 09:44:40 -0700213 relationship: tosca.relationships.BelongsToOne
214
215 ISKT45F2BD61:
216 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
217 properties:
218 serial_number: ISKT45F2BD61
Luca Prete663cb462018-10-11 09:49:45 -0700219 pon_port_id: 536870912
Luca Pretedd1e3502018-10-11 09:44:40 -0700220 device_id: of:000000000a5a0072
221 requirements:
222 - owner:
223 node: service#att
224 relationship: tosca.relationships.BelongsToOne
225
226 ISKT45F2C1E4:
227 type: tosca.nodes.AttWorkflowDriverWhiteListEntry
228 properties:
229 serial_number: ISKT45F2C1E4
Luca Prete663cb462018-10-11 09:49:45 -0700230 pon_port_id: 536870912
Luca Pretedd1e3502018-10-11 09:44:40 -0700231 device_id: of:000000000a5a0072
232 requirements:
233 - owner:
234 node: service#att
235 relationship: tosca.relationships.BelongsToOne