blob: 98a508c888b16444fe3a192e944cc2d71e83091a [file] [log] [blame]
Andy Bavier444007e2017-10-24 06:02:36 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
19tosca_definitions_version: tosca_simple_yaml_1_0
20
21description: created by platform-install, need to add M-CORD services later
22
23imports:
24 - custom_types/xos.yaml
25 - custom_types/slice.yaml
26 - custom_types/site.yaml
27 - custom_types/image.yaml
28 - custom_types/flavor.yaml
29 - custom_types/network.yaml
30 - custom_types/onosservice.yaml
31 - custom_types/networkslice.yaml
32 - custom_types/venbservice.yaml
33 - custom_types/venbserviceinstance.yaml
Andy Baviere5c60f72017-10-26 10:02:27 -070034 - custom_types/vspgwcservice.yaml
35 - custom_types/vspgwcvendor.yaml
36 - custom_types/vspgwctenant.yaml
37 - custom_types/vspgwuservice.yaml
38 - custom_types/vspgwuvendor.yaml
39 - custom_types/vspgwutenant.yaml
Andy Bavier444007e2017-10-24 06:02:36 -070040
41topology_template:
42 node_templates:
43
44# site, image, fully created in deployment.yaml
45 {{ site_name }}:
46 type: tosca.nodes.Site
47 properties:
48 must-exist: true
49 name: {{ site_name }}
50
51 m1.small:
52 type: tosca.nodes.Flavor
53 properties:
54 name: m1.small
55 must-exist: true
56 m1.large:
57 type: tosca.nodes.Flavor
58 properties:
59 name: m1.large
60 must-exist: true
61 m1.medium:
62 type: tosca.nodes.Flavor
63 properties:
64 name: m1.medium
65 must-exist: true
66 m1.xlarge:
67 type: tosca.nodes.Flavor
68 properties:
69 name: m1.xlarge
70 must-exist: true
71
Woojoong Kim0fe84a82017-11-01 13:51:16 -070072 image-venb:
Andy Bavier444007e2017-10-24 06:02:36 -070073 type: tosca.nodes.Image
74 properties:
Woojoong Kim0fe84a82017-11-01 13:51:16 -070075 name: image-venb
76
77 image-spgwc:
78 type: tosca.nodes.Image
79 properties:
80 name: image-spgwc
81
82 image-spgwu:
83 type: tosca.nodes.Image
84 properties:
85 name: image-spgwu
Andy Bavier444007e2017-10-24 06:02:36 -070086
87# management networks, fully created in management-net.yaml
88 management:
89 type: tosca.nodes.Network
90 properties:
91 must-exist: true
92 name: management
93
94{% if use_management_hosts %}
95 management_hosts:
96 type: tosca.nodes.Network
97 properties:
98 must-exist: true
99 name: management_hosts
100{% endif %}
101
102# s1u_network is for connectivity between VMs, fully created in s1u-net.yaml
103 s1u_network:
104 type: tosca.nodes.Network
105 properties:
106 must-exist: true
107 name: s1u_network
108# s11_network is for connectivity between VMs, fully created in s11-net.yaml
109 s11_network:
110 type: tosca.nodes.Network
111 properties:
112 must-exist: true
113 name: s11_network
114# nbi_network is for connectivity between VMs, fully created in nbi-net.yaml
115 nbi_network:
116 type: tosca.nodes.Network
117 properties:
118 must-exist: true
119 name: nbi_network
120# sbi_network is for connectivity between VMs, fully created in sbi-net.yaml
121 sbi_network:
122 type: tosca.nodes.Network
123 properties:
124 must-exist: true
125 name: sbi_network
126# sgi_network is for connectivity between VMs, fully created in sgi-net.yaml
127 sgi_network:
128 type: tosca.nodes.Network
129 properties:
130 must-exist: true
131 name: sgi_network
Pingping Lin1d925a32017-10-27 11:48:45 -0700132# spgw_network is for connectivity between VMs, fully created in spgw-net.yaml
Andy Baviere5c60f72017-10-26 10:02:27 -0700133 spgw_network:
134 type: tosca.nodes.Network
135 properties:
136 must-exist: true
137 name: spgw_network
Pingping Lin1d925a32017-10-27 11:48:45 -0700138# flat_network is for connectivity between VM inside cord and server outside, fully created in flat-net.yaml
139 flat_network:
140 type: tosca.nodes.Network
141 properties:
142 must-exist: true
143 name: flat_network
Andy Bavier444007e2017-10-24 06:02:36 -0700144
145# ONOS_CORD, fully created in vtn.yaml
146 service#ONOS_CORD:
147 type: tosca.nodes.ONOSService
148 properties:
149 must-exist: true
150 name: ONOS_CORD
151
152# ONOS_Fabric, fully created in fabric.yaml
153 service#ONOS_Fabric:
154 type: tosca.nodes.ONOSService
155 properties:
156 must-exist: true
157 name: ONOS_Fabric
158
Andy Baviere5c60f72017-10-26 10:02:27 -0700159# vENB Service
Andy Bavier444007e2017-10-24 06:02:36 -0700160 service#venb:
161 type: tosca.nodes.VENBService
162 properties:
163 name: venb
164 kind: vEPC
165 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
166 private_key_fn: /opt/xos/services/venb/keys/mcord_rsa
167 artifacts:
168 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
169
Andy Bavier444007e2017-10-24 06:02:36 -0700170 {{ site_name }}_venb:
171 description: vENB Service Slice
172 type: tosca.nodes.Slice
173 properties:
174 name: {{ site_name }}_venb
175 default_isolation: vm
176 network: noauto
177 requirements:
178 - site:
179 node: mysite
180 relationship: tosca.relationships.BelongsToOne
181 - service:
182 node: service#venb
183 relationship: tosca.relationships.BelongsToOne
184 - default_image:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700185 node: image-venb
Andy Bavier444007e2017-10-24 06:02:36 -0700186 relationship: tosca.relationships.BelongsToOne
187 - default_flavor:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700188 node: m1.xlarge
Andy Bavier444007e2017-10-24 06:02:36 -0700189 relationship: tosca.relationships.BelongsToOne
190
191 venb_instance1:
192 type: tosca.nodes.VENBServiceInstance
193 properties:
194 name: venb_instance1
195 requirements:
196 - owner:
197 node: service#venb
198 relationship: tosca.relationships.BelongsToOne
199
200 venb_slice_management_network:
201 type: tosca.nodes.NetworkSlice
202 requirements:
203 - network:
204 node: management
205 relationship: tosca.relationships.BelongsToOne
206 - slice:
207 node: {{ site_name }}_venb
208 relationship: tosca.relationships.BelongsToOne
209
210 venb_slice_s11_network:
211 type: tosca.nodes.NetworkSlice
212 requirements:
213 - network:
214 node: s11_network
215 relationship: tosca.relationships.BelongsToOne
216 - slice:
217 node: {{ site_name }}_venb
218 relationship: tosca.relationships.BelongsToOne
219
220 venb_slice_s1u_network:
221 type: tosca.nodes.NetworkSlice
222 requirements:
223 - network:
224 node: s1u_network
225 relationship: tosca.relationships.BelongsToOne
226 - slice:
227 node: {{ site_name }}_venb
228 relationship: tosca.relationships.BelongsToOne
229
230 venb_slice_sgi_network:
231 type: tosca.nodes.NetworkSlice
232 requirements:
233 - network:
234 node: sgi_network
235 relationship: tosca.relationships.BelongsToOne
236 - slice:
237 node: {{ site_name }}_venb
238 relationship: tosca.relationships.BelongsToOne
Andy Baviere5c60f72017-10-26 10:02:27 -0700239
Pingping Lin1d925a32017-10-27 11:48:45 -0700240 venb_slice_flat_network:
241 type: tosca.nodes.NetworkSlice
242 requirements:
243 - network:
244 node: flat_network
245 relationship: tosca.relationships.BelongsToOne
246 - slice:
247 node: {{ site_name }}_venb
248 relationship: tosca.relationships.BelongsToOne
249
Andy Baviere5c60f72017-10-26 10:02:27 -0700250#vSPGWC Service
251 service#vspgwc:
252 type: tosca.nodes.VSPGWCService
253 properties:
254 name: vspgwc
255 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
256 private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa
257 artifacts:
258 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
259
260 {{ site_name }}_vspgwc:
261 description: SDN controller slice
262 type: tosca.nodes.Slice
263 properties:
264 name: {{ site_name }}_vspgwc
265 default_isolation: vm
266 network: noauto
267 requirements:
268 - site:
269 node: mysite
270 relationship: tosca.relationships.BelongsToOne
271 - service:
272 node: service#vspgwc
273 relationship: tosca.relationships.BelongsToOne
274 - default_image:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700275 node: image-spgwc
Andy Baviere5c60f72017-10-26 10:02:27 -0700276 relationship: tosca.relationships.BelongsToOne
277 - default_flavor:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700278 node: m1.large
Andy Baviere5c60f72017-10-26 10:02:27 -0700279 relationship: tosca.relationships.BelongsToOne
280
281 intel_vspgwc:
282 type: tosca.nodes.VSPGWCVendor
283 properties:
284 name: intel_vspgwc
285 requirements:
286 - image:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700287 node: image-spgwc
Andy Baviere5c60f72017-10-26 10:02:27 -0700288 relationship: tosca.relationships.BelongsToOne
289 - flavor:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700290 node: m1.large
Andy Baviere5c60f72017-10-26 10:02:27 -0700291 relationship: tosca.relationships.BelongsToOne
292
293 serviceinstance#vspgwc_instance:
294 type: tosca.nodes.VSPGWCTenant
295 properties:
296 name: vspgwc_instance1
297 requirements:
298 - vspgwc_vendor:
299 node: intel_vspgwc
300 relationship: tosca.relationships.BelongsToOne
301 - owner:
302 node: service#vspgwc
303 relationship: tosca.relationships.BelongsToOne
304
305 vspgwc_slice_management_network:
306 type: tosca.nodes.NetworkSlice
307 requirements:
308 - network:
309 node: management
310 relationship: tosca.relationships.BelongsToOne
311 - slice:
312 node: {{ site_name }}_vspgwc
313 relationship: tosca.relationships.BelongsToOne
314
315 vspgwc_slice_s11_network:
316 type: tosca.nodes.NetworkSlice
317 requirements:
318 - network:
319 node: s11_network
320 relationship: tosca.relationships.BelongsToOne
321 - slice:
322 node: {{ site_name }}_vspgwc
323 relationship: tosca.relationships.BelongsToOne
324
325 vspgwc_slice_spgw_network:
326 type: tosca.nodes.NetworkSlice
327 requirements:
328 - network:
329 node: spgw_network
330 relationship: tosca.relationships.BelongsToOne
331 - slice:
332 node: {{ site_name }}_vspgwc
333 relationship: tosca.relationships.BelongsToOne
334
335#vSPGWU Service
336 service#vspgwu:
337 type: tosca.nodes.VSPGWUService
338 properties:
339 name: vspgwu
340 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
341 private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa
342 artifacts:
343 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
344
345 {{ site_name }}_vspgwu:
346 description: SDN controller slice
347 type: tosca.nodes.Slice
348 properties:
349 name: {{ site_name }}_vspgwu
350 default_isolation: vm
351 network: noauto
352 requirements:
353 - site:
354 node: mysite
355 relationship: tosca.relationships.BelongsToOne
356 - service:
357 node: service#vspgwu
358 relationship: tosca.relationships.BelongsToOne
359 - default_image:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700360 node: image-spgwu
Andy Baviere5c60f72017-10-26 10:02:27 -0700361 relationship: tosca.relationships.BelongsToOne
362 - default_flavor:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700363 node: m1.xlarge
Andy Baviere5c60f72017-10-26 10:02:27 -0700364 relationship: tosca.relationships.BelongsToOne
365
366 intel_vspgwu:
367 type: tosca.nodes.VSPGWUVendor
368 properties:
369 name: intel_vspgwu
370 requirements:
371 - image:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700372 node: image-spgwu
Andy Baviere5c60f72017-10-26 10:02:27 -0700373 relationship: tosca.relationships.BelongsToOne
374 - flavor:
Woojoong Kim0fe84a82017-11-01 13:51:16 -0700375 node: m1.xlarge
Andy Baviere5c60f72017-10-26 10:02:27 -0700376 relationship: tosca.relationships.BelongsToOne
377
378 serviceinstance#vspgwu_instance:
379 type: tosca.nodes.VSPGWUTenant
380 properties:
381 name: vspgwu_instance1
382 requirements:
383 - vspgwu_vendor:
384 node: intel_vspgwu
385 relationship: tosca.relationships.BelongsToOne
386 - owner:
387 node: service#vspgwu
388 relationship: tosca.relationships.BelongsToOne
389
390 vspgwu_slice_management_network:
391 type: tosca.nodes.NetworkSlice
392 requirements:
393 - network:
394 node: management
395 relationship: tosca.relationships.BelongsToOne
396 - slice:
397 node: {{ site_name }}_vspgwu
398 relationship: tosca.relationships.BelongsToOne
399
400 vspgwu_slice_sgi_network:
401 type: tosca.nodes.NetworkSlice
402 requirements:
403 - network:
404 node: sgi_network
405 relationship: tosca.relationships.BelongsToOne
406 - slice:
407 node: {{ site_name }}_vspgwu
408 relationship: tosca.relationships.BelongsToOne
409
410 vspgwu_slice_spgw_network:
411 type: tosca.nodes.NetworkSlice
412 requirements:
413 - network:
414 node: spgw_network
415 relationship: tosca.relationships.BelongsToOne
416 - slice:
417 node: {{ site_name }}_vspgwu
418 relationship: tosca.relationships.BelongsToOne
419
420 vspgwu_slice_s1u_network:
421 type: tosca.nodes.NetworkSlice
422 requirements:
423 - network:
424 node: s1u_network
425 relationship: tosca.relationships.BelongsToOne
426 - slice:
427 node: {{ site_name }}_vspgwu
428 relationship: tosca.relationships.BelongsToOne