blob: 84de26a6f8c70afb64e3d3e3825cfa5fd095a00b [file] [log] [blame]
Matteo Scandolod246a872019-01-30 11:43:14 -08001# 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
Matteo Scandolo5b728032019-01-30 13:58:48 -080015# curl -H "xos-username: admin@opencord.org" -H "xos-password: letmein" -X POST --data-binary @mcord-barcelona-fabric.yaml http://192.168.69.1:30007/run
Matteo Scandolod246a872019-01-30 11:43:14 -080016
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
Matteo Scandoloa95ce022019-01-30 14:12:40 -080023 - custom_types/site.yaml
24 - custom_types/deployment.yaml
25 - custom_types/sitedeployment.yaml
26 - custom_types/node.yaml
27 - custom_types/vrouterservice.yaml
28 - custom_types/vrouterserviceinstance.yaml
Matteo Scandolod246a872019-01-30 11:43:14 -080029
Matteo Scandoloa95ce022019-01-30 14:12:40 -080030description: Configures the ONF SEBA POD with AT&T workflow
Matteo Scandolod246a872019-01-30 11:43:14 -080031
32topology_template:
33 node_templates:
34
Matteo Scandoloa95ce022019-01-30 14:12:40 -080035 # Site deployment
36 mySite:
37 type: tosca.nodes.Site
38 properties:
39 name: mysite
40 login_base: opencord
41 abbreviated_name: ms
42 site_url: http://opencord.org/
43 hosts_nodes: true
44
45 myDeployment:
46 type: tosca.nodes.Deployment
47 properties:
48 name: mydeployment
49
50 site_deployment:
51 type: tosca.nodes.SiteDeployment
52 requirements:
53 - site:
54 node: mySite
55 relationship: tosca.relationships.BelongsToOne
56 - deployment:
57 node: myDeployment
58 relationship: tosca.relationships.BelongsToOne
59
60 # compute nodes
61 node#node1:
62 type: tosca.nodes.Node
63 properties:
64 dataPlaneIntf: eth2
65 dataPlaneIp: 118.0.0.201
66 name: node1
67 requirements:
68 - site_deployment:
69 node: site_deployment
70 relationship: tosca.relationships.BelongsToOne
71
72 node#node2:
73 type: tosca.nodes.Node
74 properties:
75 dataPlaneIntf: eth2
76 dataPlaneIp: 118.0.0.202
77 name: node2
78 requirements:
79 - site_deployment:
80 node: site_deployment
81 relationship: tosca.relationships.BelongsToOne
82
83 node#node3:
84 type: tosca.nodes.Node
85 properties:
86 dataPlaneIntf: eth2
87 dataPlaneIp: 118.0.0.203
88 name: node3
89 requirements:
90 - site_deployment:
91 node: site_deployment
92 relationship: tosca.relationships.BelongsToOne
93
94 # static routes
95
96 service#vrouter:
97 type: tosca.nodes.VRouterService
98 properties:
99 name: vrouter
100 must-exist: true
101
102
103 vroutersi#calico:
104 type: tosca.nodes.VRouterServiceInstance
105 properties:
106 name: calico
107 requirements:
108 - owner:
109 node: service#vrouter
110 relationship: tosca.relationships.BelongsToOne
111
Matteo Scandolod246a872019-01-30 11:43:14 -0800112 # Fabric configuration
113 switch#leaf_1:
114 type: tosca.nodes.Switch
115 properties:
116 driver: ofdpa3
117 ipv4Loopback: 192.168.0.204
118 ipv4NodeSid: 214
119 isEdgeRouter: true
120 name: Agg Switch
121 ofId: of:0000000000000001
122 routerMac: 54:87:de:ad:be:ef
123
124 # Node1 Port
125 port#node_1_port:
126 type: tosca.nodes.SwitchPort
127 properties:
Matteo Scandolo7cb060b2019-01-30 11:57:41 -0800128 portId: 33
Matteo Scandolod246a872019-01-30 11:43:14 -0800129 requirements:
130 - switch:
131 node: switch#leaf_1
132 relationship: tosca.relationships.BelongsToOne
133
134 interface#port_1_interface:
135 type: tosca.nodes.PortInterface
136 properties:
137 vlanUntagged: 20
138 name: node_1
139 requirements:
140 - port:
141 node: port#node_1_port
142 relationship: tosca.relationships.BelongsToOne
143
144 ip#port_1_ip_1:
145 type: tosca.nodes.FabricIpAddress
146 properties:
147 ip: 13.1.1.0/24
148 description: node_1_ip_1
149 requirements:
150 - interface:
151 node: interface#port_1_interface
152 relationship: tosca.relationships.BelongsToOne
153
154 ip#port_1_ip_2:
155 type: tosca.nodes.FabricIpAddress
156 properties:
157 ip: 119.0.0.254/24
158 description: node_1_ip_2
159 requirements:
160 - interface:
161 node: interface#port_1_interface
162 relationship: tosca.relationships.BelongsToOne
163
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800164 ip#port_1_ip_3:
165 type: tosca.nodes.FabricIpAddress
166 properties:
167 ip: 116.0.0.254/24
168 description: node_1_ip_3
169 requirements:
170 - interface:
171 node: interface#port_1_interface
172 relationship: tosca.relationships.BelongsToOne
173
Matteo Scandolod246a872019-01-30 11:43:14 -0800174 # Node2 Port
175 port#node_2_port:
176 type: tosca.nodes.SwitchPort
177 properties:
Matteo Scandolo7cb060b2019-01-30 11:57:41 -0800178 portId: 34
Matteo Scandolod246a872019-01-30 11:43:14 -0800179 requirements:
180 - switch:
181 node: switch#leaf_1
182 relationship: tosca.relationships.BelongsToOne
183
184 interface#port_2_interface:
185 type: tosca.nodes.PortInterface
186 properties:
187 vlanUntagged: 20
188 name: node_2
189 requirements:
190 - port:
191 node: port#node_2_port
192 relationship: tosca.relationships.BelongsToOne
193
194 ip#port_2_ip_1:
195 type: tosca.nodes.FabricIpAddress
196 properties:
197 ip: 13.1.1.0/24
198 description: node_2_ip_1
199 requirements:
200 - interface:
201 node: interface#port_2_interface
202 relationship: tosca.relationships.BelongsToOne
203
204 ip#port_2_ip_2:
205 type: tosca.nodes.FabricIpAddress
206 properties:
207 ip: 119.0.0.254/24
208 description: node_2_ip_2
209 requirements:
210 - interface:
211 node: interface#port_2_interface
212 relationship: tosca.relationships.BelongsToOne
213
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800214 ip#port_2_ip_3:
215 type: tosca.nodes.FabricIpAddress
216 properties:
217 ip: 116.0.0.254/24
218 description: node_2_ip_3
219 requirements:
220 - interface:
221 node: interface#port_2_interface
222 relationship: tosca.relationships.BelongsToOne
223
Matteo Scandolod246a872019-01-30 11:43:14 -0800224 # Node3 Port
225 port#node_3_port:
226 type: tosca.nodes.SwitchPort
227 properties:
Matteo Scandolo7cb060b2019-01-30 11:57:41 -0800228 portId: 35
Matteo Scandolod246a872019-01-30 11:43:14 -0800229 requirements:
230 - switch:
231 node: switch#leaf_1
232 relationship: tosca.relationships.BelongsToOne
233
234 interface#port_3_interface:
235 type: tosca.nodes.PortInterface
236 properties:
237 vlanUntagged: 20
238 name: node_3
239 requirements:
240 - port:
241 node: port#node_3_port
242 relationship: tosca.relationships.BelongsToOne
243
244 ip#port_3_ip_1:
245 type: tosca.nodes.FabricIpAddress
246 properties:
247 ip: 13.1.1.0/24
248 description: node_3_ip_1
249 requirements:
250 - interface:
251 node: interface#port_3_interface
252 relationship: tosca.relationships.BelongsToOne
253
254 ip#port_3_ip_2:
255 type: tosca.nodes.FabricIpAddress
256 properties:
257 ip: 119.0.0.254/24
258 description: node_3_ip_2
259 requirements:
260 - interface:
261 node: interface#port_3_interface
262 relationship: tosca.relationships.BelongsToOne
Matteo Scandolod0e5ab02019-02-04 09:07:41 -0800263
264 ip#port_3_ip_3:
265 type: tosca.nodes.FabricIpAddress
266 properties:
267 ip: 116.0.0.254/24
268 description: node_3_ip_2
269 requirements:
270 - interface:
271 node: interface#port_3_interface
272 relationship: tosca.relationships.BelongsToOne
Doyoung Lee6f730d52019-04-17 16:55:08 -0700273
274 # eNodeB - rru Port
275 port#rru_port:
276 type: tosca.nodes.SwitchPort
277 properties:
278 portId: 37
279 requirements:
280 - switch:
281 node: switch#leaf_1
282 relationship: tosca.relationships.BelongsToOne
283
284 interface#port_1_interface:
285 type: tosca.nodes.PortInterface
286 properties:
287 vlanUntagged: 20
288 name: rru
289 requirements:
290 - port:
291 node: port#rru_port
292 relationship: tosca.relationships.BelongsToOne
293
294 ip#port_1_ip_1:
295 type: tosca.nodes.FabricIpAddress
296 properties:
297 ip: 13.1.1.0/24
298 description: rru_ip_1
299 requirements:
300 - interface:
301 node: interface#port_1_interface
302 relationship: tosca.relationships.BelongsToOne
303
304 ip#port_1_ip_2:
305 type: tosca.nodes.FabricIpAddress
306 properties:
307 ip: 119.0.0.254/24
308 description: rru_ip_2
309 requirements:
310 - interface:
311 node: interface#port_1_interface
312 relationship: tosca.relationships.BelongsToOne
313
314 ip#port_1_ip_3:
315 type: tosca.nodes.FabricIpAddress
316 properties:
317 ip: 116.0.0.254/24
318 description: rru_ip_3
319 requirements:
320 - interface:
321 node: interface#port_1_interface
322 relationship: tosca.relationships.BelongsToOne