blob: 113c51b98ccddf59ea473fba78767eeb5d94fbfa [file] [log] [blame]
Hyunsun Moona1490f72019-10-10 14:27:58 -07001# Copyright 2019-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 @edge-fabric-accelleran.yaml http://central1: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/fabricipaddress.yaml
23 - custom_types/site.yaml
24 - custom_types/node.yaml
25 - custom_types/vrouterservice.yaml
26 - custom_types/vrouterserviceinstance.yaml
27
28description: Configures the ONF COMAC POD with Cavium
29
30topology_template:
31 node_templates:
32
33 # Site deployment
34 mySite:
35 type: tosca.nodes.Site
36 properties:
37 name: mysite
38 login_base: opencord
39 abbreviated_name: ms
40 site_url: http://opencord.org/
41 hosts_nodes: true
42
43 # compute nodes
44 node#node1:
45 type: tosca.nodes.Node
46 properties:
47 dataPlaneIntf: eth2
Hyunsun Moonc7502442020-01-30 15:52:35 -080048 dataPlaneIp: 192.168.251.131
Hyunsun Moona1490f72019-10-10 14:27:58 -070049 name: node1
50
51 node#node2:
52 type: tosca.nodes.Node
53 properties:
54 dataPlaneIntf: eth2
Hyunsun Moonc7502442020-01-30 15:52:35 -080055 dataPlaneIp: 192.168.251.132
Hyunsun Moona1490f72019-10-10 14:27:58 -070056 name: node2
57
58 # static routes
59 service#vrouter:
60 type: tosca.nodes.VRouterService
61 properties:
62 name: vrouter
63 must-exist: true
64
65 vroutersi#calico:
66 type: tosca.nodes.VRouterServiceInstance
67 properties:
68 name: calico
69 requirements:
70 - owner:
71 node: service#vrouter
72 relationship: tosca.relationships.BelongsToOne
73
74 # Fabric configuration
75 switch#leaf_1:
76 type: tosca.nodes.Switch
77 properties:
78 driver: ofdpa3
79 ipv4Loopback: 192.168.0.204
80 ipv4NodeSid: 214
81 isEdgeRouter: true
82 name: Agg Switch
83 ofId: of:0000000000000001
84 routerMac: 54:87:de:ad:be:ef
85
Hyunsun Moon848f7db2019-12-08 17:50:36 -080086 # staging-edge-a
Hyunsun Moona1490f72019-10-10 14:27:58 -070087 port#node_1_port:
88 type: tosca.nodes.SwitchPort
89 properties:
90 portId: 33
91 requirements:
92 - switch:
93 node: switch#leaf_1
94 relationship: tosca.relationships.BelongsToOne
95
96 interface#port_1_interface:
97 type: tosca.nodes.PortInterface
98 properties:
99 vlanUntagged: 20
100 name: node_1
101 requirements:
102 - port:
103 node: port#node_1_port
104 relationship: tosca.relationships.BelongsToOne
105
106 ip#port_1_sgi_net:
107 type: tosca.nodes.FabricIpAddress
108 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800109 ip: 192.168.250.254/24
Hyunsun Moona1490f72019-10-10 14:27:58 -0700110 description: node_1_sgi_net
111 requirements:
112 - interface:
113 node: interface#port_1_interface
114 relationship: tosca.relationships.BelongsToOne
115
116 ip#port_1_s1u_net:
117 type: tosca.nodes.FabricIpAddress
118 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800119 ip: 192.168.251.254/24
Hyunsun Moona1490f72019-10-10 14:27:58 -0700120 description: node_1_s1u_net
121 requirements:
122 - interface:
123 node: interface#port_1_interface
124 relationship: tosca.relationships.BelongsToOne
125
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800126 # staging-edge-b
Hyunsun Moona1490f72019-10-10 14:27:58 -0700127 port#node_2_port:
128 type: tosca.nodes.SwitchPort
129 properties:
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800130 portId: 40
Hyunsun Moona1490f72019-10-10 14:27:58 -0700131 requirements:
132 - switch:
133 node: switch#leaf_1
134 relationship: tosca.relationships.BelongsToOne
135
136 interface#port_2_interface:
137 type: tosca.nodes.PortInterface
138 properties:
139 vlanUntagged: 20
140 name: node_2
141 requirements:
142 - port:
143 node: port#node_2_port
144 relationship: tosca.relationships.BelongsToOne
145
146 ip#port_2_sgi_net:
147 type: tosca.nodes.FabricIpAddress
148 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800149 ip: 192.168.250.254/24
Hyunsun Moona1490f72019-10-10 14:27:58 -0700150 description: node_2_sgi_net
151 requirements:
152 - interface:
153 node: interface#port_2_interface
154 relationship: tosca.relationships.BelongsToOne
155
156 ip#port_2_s1u_net:
157 type: tosca.nodes.FabricIpAddress
158 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800159 ip: 192.168.251.254/24
Hyunsun Moona1490f72019-10-10 14:27:58 -0700160 description: node_2_s1u_net
161 requirements:
162 - interface:
163 node: interface#port_2_interface
164 relationship: tosca.relationships.BelongsToOne
165
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800166 # staging-edge-c
167 port#node_3_port:
168 type: tosca.nodes.SwitchPort
169 properties:
170 portId: 38
171 requirements:
172 - switch:
173 node: switch#leaf_1
174 relationship: tosca.relationships.BelongsToOne
175
176 interface#port_3_interface:
177 type: tosca.nodes.PortInterface
178 properties:
179 vlanUntagged: 20
180 name: node_3
181 requirements:
182 - port:
183 node: port#node_3_port
184 relationship: tosca.relationships.BelongsToOne
185
186 ip#port_3_sgi_net:
187 type: tosca.nodes.FabricIpAddress
188 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800189 ip: 192.168.250.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800190 description: node_3_sgi_net
191 requirements:
192 - interface:
193 node: interface#port_3_interface
194 relationship: tosca.relationships.BelongsToOne
195
196 ip#port_3_s1u_net:
197 type: tosca.nodes.FabricIpAddress
198 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800199 ip: 192.168.251.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800200 description: node_3_s1u_net
201 requirements:
202 - interface:
203 node: interface#port_3_interface
204 relationship: tosca.relationships.BelongsToOne
205
206 # product-edge-1
207 port#node_4_port:
208 type: tosca.nodes.SwitchPort
209 properties:
210 portId: 34
211 requirements:
212 - switch:
213 node: switch#leaf_1
214 relationship: tosca.relationships.BelongsToOne
215
216 interface#port_4_interface:
217 type: tosca.nodes.PortInterface
218 properties:
219 vlanUntagged: 20
220 name: node_4
221 requirements:
222 - port:
223 node: port#node_4_port
224 relationship: tosca.relationships.BelongsToOne
225
226 ip#port_4_sgi_net:
227 type: tosca.nodes.FabricIpAddress
228 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800229 ip: 192.168.250.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800230 description: node_4_sgi_net
231 requirements:
232 - interface:
233 node: interface#port_4_interface
234 relationship: tosca.relationships.BelongsToOne
235
236 ip#port_4_s1u_net:
237 type: tosca.nodes.FabricIpAddress
238 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800239 ip: 192.168.251.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800240 description: node_4_s1u_net
241 requirements:
242 - interface:
243 node: interface#port_4_interface
244 relationship: tosca.relationships.BelongsToOne
245
246 # product-edge-2
247 port#node_5_port:
248 type: tosca.nodes.SwitchPort
249 properties:
250 portId: 39
251 requirements:
252 - switch:
253 node: switch#leaf_1
254 relationship: tosca.relationships.BelongsToOne
255
256 interface#port_5_interface:
257 type: tosca.nodes.PortInterface
258 properties:
259 vlanUntagged: 20
260 name: node_5
261 requirements:
262 - port:
263 node: port#node_5_port
264 relationship: tosca.relationships.BelongsToOne
265
266 ip#port_5_sgi_net:
267 type: tosca.nodes.FabricIpAddress
268 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800269 ip: 192.168.250.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800270 description: node_5_sgi_net
271 requirements:
272 - interface:
273 node: interface#port_5_interface
274 relationship: tosca.relationships.BelongsToOne
275
276 ip#port_5_s1u_net:
277 type: tosca.nodes.FabricIpAddress
278 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800279 ip: 192.168.251.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800280 description: node_5_s1u_net
281 requirements:
282 - interface:
283 node: interface#port_5_interface
284 relationship: tosca.relationships.BelongsToOne
285
286 # QA machine
287 port#node_6_port:
288 type: tosca.nodes.SwitchPort
289 properties:
290 portId: 36
291 requirements:
292 - switch:
293 node: switch#leaf_1
294 relationship: tosca.relationships.BelongsToOne
295
296 interface#port_6_interface:
297 type: tosca.nodes.PortInterface
298 properties:
299 vlanUntagged: 20
300 name: node_6
301 requirements:
302 - port:
303 node: port#node_6_port
304 relationship: tosca.relationships.BelongsToOne
305
306 ip#port_6_sgi_net:
307 type: tosca.nodes.FabricIpAddress
308 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800309 ip: 192.168.250.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800310 description: node_6_sgi_net
311 requirements:
312 - interface:
313 node: interface#port_6_interface
314 relationship: tosca.relationships.BelongsToOne
315
316 ip#port_6_s1u_net:
317 type: tosca.nodes.FabricIpAddress
318 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800319 ip: 192.168.251.254/24
Hyunsun Moon848f7db2019-12-08 17:50:36 -0800320 description: node_6_s1u_net
321 requirements:
322 - interface:
323 node: interface#port_6_interface
324 relationship: tosca.relationships.BelongsToOne
325
Hyunsun Moona1490f72019-10-10 14:27:58 -0700326 # RRU Port
327 port#rru_port:
328 type: tosca.nodes.SwitchPort
329 properties:
330 portId: 37
331 requirements:
332 - switch:
333 node: switch#leaf_1
334 relationship: tosca.relationships.BelongsToOne
335
336 interface#rru_interface:
337 type: tosca.nodes.PortInterface
338 properties:
339 vlanUntagged: 20
340 name: rru
341 requirements:
342 - port:
343 node: port#rru_port
344 relationship: tosca.relationships.BelongsToOne
345
346 ip#port_rru_sgi_net:
347 type: tosca.nodes.FabricIpAddress
348 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800349 ip: 192.168.250.254/24
Hyunsun Moona1490f72019-10-10 14:27:58 -0700350 description: rru_sgi_net
351 requirements:
352 - interface:
353 node: interface#rru_interface
354 relationship: tosca.relationships.BelongsToOne
355
356 ip#port_rru_s1u_net:
357 type: tosca.nodes.FabricIpAddress
358 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800359 ip: 192.168.251.254/24
Hyunsun Moona1490f72019-10-10 14:27:58 -0700360 description: rru_s1u_net
361 requirements:
362 - interface:
363 node: interface#rru_interface
364 relationship: tosca.relationships.BelongsToOne
365
Woojoong Kim90dd2392019-10-21 17:21:27 -0700366 # Management node Port
367 port#man_node_port:
368 type: tosca.nodes.SwitchPort
369 properties:
370 portId: 35
371 requirements:
372 - switch:
373 node: switch#leaf_1
374 relationship: tosca.relationships.BelongsToOne
375
376 interface#man_node_interface:
377 type: tosca.nodes.PortInterface
378 properties:
379 vlanUntagged: 20
380 name: man_node
381 requirements:
382 - port:
383 node: port#man_node_port
384 relationship: tosca.relationships.BelongsToOne
385
386 ip#port_man_node_sgi_net:
387 type: tosca.nodes.FabricIpAddress
388 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800389 ip: 192.168.250.254/24
Woojoong Kim90dd2392019-10-21 17:21:27 -0700390 description: man_node_sgi_net
391 requirements:
392 - interface:
393 node: interface#man_node_interface
394 relationship: tosca.relationships.BelongsToOne
395
396 ip#port_man_node_s1u_net:
397 type: tosca.nodes.FabricIpAddress
398 properties:
Hyunsun Moonc7502442020-01-30 15:52:35 -0800399 ip: 192.168.251.254/24
Woojoong Kim90dd2392019-10-21 17:21:27 -0700400 description: man_node_s1u_net
401 requirements:
402 - interface:
403 node: interface#man_node_interface
404 relationship: tosca.relationships.BelongsToOne