blob: b37db38f67ea5315f27ced8e3a78d66f685f318f [file] [log] [blame]
Andy Baviere6478b22017-12-21 13:17:56 -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
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
Andy Bavier0d1131e2018-01-02 11:27:43 -070030 - custom_types/networktemplate.yaml
Andy Baviere6478b22017-12-21 13:17:56 -070031 - custom_types/onosservice.yaml
32 - custom_types/networkslice.yaml
33 - custom_types/vspgwcservice.yaml
34 - custom_types/vspgwcvendor.yaml
35 - custom_types/vspgwuservice.yaml
36 - custom_types/vspgwuvendor.yaml
37 - custom_types/vmmeservice.yaml
38 - custom_types/vmmevendor.yaml
Andy Bavier0d1131e2018-01-02 11:27:43 -070039 - custom_types/vhssservice.yaml
40 - custom_types/vhssvendor.yaml
Woojoong Kim6586fe82018-01-09 13:10:03 -080041 - custom_types/hssdbservice.yaml
42 - custom_types/hssdbvendor.yaml
Andy Bavier0d1131e2018-01-02 11:27:43 -070043 - custom_types/sdncontrollerservice.yaml
44 - custom_types/sdncontrollervendor.yaml
Andy Baviere6478b22017-12-21 13:17:56 -070045 - custom_types/vepcservice.yaml
46 - custom_types/servicedependency.yaml
47 - custom_types/mcordsubscriberservice.yaml
48
49topology_template:
50 node_templates:
51
52# site, image, fully created in deployment.yaml
53 {{ site_name }}:
54 type: tosca.nodes.Site
55 properties:
56 must-exist: true
57 name: {{ site_name }}
58
Andy Bavier0d1131e2018-01-02 11:27:43 -070059# flavors
Andy Baviere6478b22017-12-21 13:17:56 -070060 m1.small:
61 type: tosca.nodes.Flavor
62 properties:
63 name: m1.small
64 must-exist: true
65 m1.large:
66 type: tosca.nodes.Flavor
67 properties:
68 name: m1.large
69 must-exist: true
70 m1.medium:
71 type: tosca.nodes.Flavor
72 properties:
73 name: m1.medium
74 must-exist: true
75 m1.xlarge:
76 type: tosca.nodes.Flavor
77 properties:
78 name: m1.xlarge
79 must-exist: true
80
Andy Bavier0d1131e2018-01-02 11:27:43 -070081# images
Andy Baviere6478b22017-12-21 13:17:56 -070082 image-test:
83 type: tosca.nodes.Image
84 properties:
85 name: image-test
86
Andy Bavier0db4faf2018-01-17 16:20:16 -070087 image-mme:
88 type: tosca.nodes.Image
89 properties:
90 name: image-mme
91
92 image-hss:
93 type: tosca.nodes.Image
94 properties:
95 name: image-hss
96
97 image-hss-db:
98 type: tosca.nodes.Image
99 properties:
100 name: image-hss-db
101
Andy Baviere6478b22017-12-21 13:17:56 -0700102 image-spgwc:
103 type: tosca.nodes.Image
104 properties:
105 name: image-spgwc
106
107 image-spgwu:
108 type: tosca.nodes.Image
109 properties:
110 name: image-spgwu
111
Andy Bavier0d1131e2018-01-02 11:27:43 -0700112# network templates
113 private_template:
114 type: tosca.nodes.NetworkTemplate
115 properties:
116 name: private_template
117 visibility: private
118 translation: none
119 vtn_kind: PRIVATE
120
121 flat_template:
122 type: tosca.nodes.NetworkTemplate
123 properties:
124 name: flat_template
125 visibility: private
126 translation: none
127 vtn_kind: FLAT
128
Andy Baviere6478b22017-12-21 13:17:56 -0700129# management networks, fully created in management-net.yaml
130 management:
131 type: tosca.nodes.Network
132 properties:
133 must-exist: true
134 name: management
135
136{% if use_management_hosts %}
137 management_hosts:
138 type: tosca.nodes.Network
139 properties:
140 must-exist: true
141 name: management_hosts
142{% endif %}
143
Andy Bavier0d1131e2018-01-02 11:27:43 -0700144# Other networks are created by vEPC service
Andy Baviere6478b22017-12-21 13:17:56 -0700145
146# ONOS_CORD, fully created in vtn.yaml
147 service#ONOS_CORD:
148 type: tosca.nodes.ONOSService
149 properties:
150 must-exist: true
151 name: ONOS_CORD
152
153# ONOS_Fabric, fully created in fabric.yaml
154 service#ONOS_Fabric:
155 type: tosca.nodes.ONOSService
156 properties:
157 must-exist: true
158 name: ONOS_Fabric
159
160# vMME Service
161 service#vmme:
162 type: tosca.nodes.VMMEService
163 properties:
164 name: vmme
165 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
166 private_key_fn: /opt/xos/services/vmme/keys/mcord_rsa
167 artifacts:
168 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
169
170 {{ site_name }}_vmme:
171 description: vMME Service Slice
172 type: tosca.nodes.Slice
173 properties:
174 name: {{ site_name }}_vmme
175 default_isolation: vm
176 network: noauto
177 requirements:
178 - site:
179 node: mysite
180 relationship: tosca.relationships.BelongsToOne
181 - service:
182 node: service#vmme
183 relationship: tosca.relationships.BelongsToOne
184 - default_image:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700185 node: image-mme
Andy Baviere6478b22017-12-21 13:17:56 -0700186 relationship: tosca.relationships.BelongsToOne
187 - default_flavor:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700188 node: m1.large
Andy Baviere6478b22017-12-21 13:17:56 -0700189 relationship: tosca.relationships.BelongsToOne
190
191 sprint_mme:
192 type: tosca.nodes.VMMEVendor
193 properties:
194 name: sprint_mme
195 requirements:
196 - image:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700197 node: image-mme
Andy Baviere6478b22017-12-21 13:17:56 -0700198 relationship: tosca.relationships.BelongsToOne
199 - flavor:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700200 node: m1.large
Andy Baviere6478b22017-12-21 13:17:56 -0700201 relationship: tosca.relationships.BelongsToOne
202
203#vSPGWC Service
204 service#vspgwc:
205 type: tosca.nodes.VSPGWCService
206 properties:
207 name: vspgwc
208 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
209 private_key_fn: /opt/xos/services/vspgwc/keys/mcord_rsa
210 artifacts:
211 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
212
213 {{ site_name }}_vspgwc:
Andy Bavier0d1131e2018-01-02 11:27:43 -0700214 description: vSPGW-C slice
Andy Baviere6478b22017-12-21 13:17:56 -0700215 type: tosca.nodes.Slice
216 properties:
217 name: {{ site_name }}_vspgwc
218 default_isolation: vm
219 network: noauto
220 requirements:
221 - site:
222 node: mysite
223 relationship: tosca.relationships.BelongsToOne
224 - service:
225 node: service#vspgwc
226 relationship: tosca.relationships.BelongsToOne
227 - default_image:
228 node: image-spgwc
229 relationship: tosca.relationships.BelongsToOne
230 - default_flavor:
231 node: m1.large
232 relationship: tosca.relationships.BelongsToOne
233
234 intel_vspgwc:
235 type: tosca.nodes.VSPGWCVendor
236 properties:
237 name: intel_vspgwc
238 requirements:
239 - image:
240 node: image-spgwc
241 relationship: tosca.relationships.BelongsToOne
242 - flavor:
243 node: m1.large
244 relationship: tosca.relationships.BelongsToOne
245
246
247#vSPGWU Service
248 service#vspgwu:
249 type: tosca.nodes.VSPGWUService
250 properties:
251 name: vspgwu
252 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
253 private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa
254 artifacts:
255 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
256
257 {{ site_name }}_vspgwu:
Andy Bavier0d1131e2018-01-02 11:27:43 -0700258 description: vSPGW-U slice
Andy Baviere6478b22017-12-21 13:17:56 -0700259 type: tosca.nodes.Slice
260 properties:
261 name: {{ site_name }}_vspgwu
262 default_isolation: vm
263 network: noauto
264 requirements:
265 - site:
266 node: mysite
267 relationship: tosca.relationships.BelongsToOne
268 - service:
269 node: service#vspgwu
270 relationship: tosca.relationships.BelongsToOne
271 - default_image:
272 node: image-spgwu
273 relationship: tosca.relationships.BelongsToOne
274 - default_flavor:
275 node: m1.xlarge
276 relationship: tosca.relationships.BelongsToOne
277
278 intel_vspgwu:
279 type: tosca.nodes.VSPGWUVendor
280 properties:
281 name: intel_vspgwu
282 requirements:
283 - image:
284 node: image-spgwu
285 relationship: tosca.relationships.BelongsToOne
286 - flavor:
287 node: m1.xlarge
288 relationship: tosca.relationships.BelongsToOne
289
Andy Bavier0d1131e2018-01-02 11:27:43 -0700290# vHSS service
291 service#vhss:
292 type: tosca.nodes.VHSSService
293 properties:
294 name: vhss
295 kind: vEPC
296 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
297 private_key_fn: /opt/xos/services/vhss/keys/mcord_rsa
298 artifacts:
299 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
300
301 {{ site_name }}_vhss:
302 description: vHSS Service Slice
303 type: tosca.nodes.Slice
304 properties:
305 name: {{ site_name }}_vhss
306 default_isolation: vm
307 network: noauto
308 requirements:
309 - site:
310 node: mysite
311 relationship: tosca.relationships.BelongsToOne
312 - service:
313 node: service#vhss
314 relationship: tosca.relationships.BelongsToOne
315 - default_image:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700316 node: image-hss
Andy Bavier0d1131e2018-01-02 11:27:43 -0700317 relationship: tosca.relationships.BelongsToOne
318 - default_flavor:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700319 node: m1.large
Andy Bavier0d1131e2018-01-02 11:27:43 -0700320 relationship: tosca.relationships.BelongsToOne
321
322 sprint_hss:
323 type: tosca.nodes.VHSSVendor
324 properties:
325 name: sprint_hss
326 requirements:
327 - image:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700328 node: image-hss
Andy Bavier0d1131e2018-01-02 11:27:43 -0700329 relationship: tosca.relationships.BelongsToOne
330 - flavor:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700331 node: m1.large
Andy Bavier0d1131e2018-01-02 11:27:43 -0700332 relationship: tosca.relationships.BelongsToOne
333
Woojoong Kim6586fe82018-01-09 13:10:03 -0800334# HSS_DB service
335 service#hssdb:
336 type: tosca.nodes.HSSDBService
337 properties:
338 name: hssdb
339 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
340 private_key_fn: /opt/xos/services/hssdb/keys/mcord_rsa
341 artifacts:
342 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
343
344 {{ site_name }}_hssdb:
345 description: HSS-DB Service Slice
346 type: tosca.nodes.Slice
347 properties:
348 name: {{ site_name }}_hssdb
349 default_isolation: vm
350 network: noauto
351 requirements:
352 - site:
353 node: mysite
354 relationship: tosca.relationships.BelongsToOne
355 - service:
356 node: service#hssdb
357 relationship: tosca.relationships.BelongsToOne
358 - default_image:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700359 node: image-hss-db
Woojoong Kim6586fe82018-01-09 13:10:03 -0800360 relationship: tosca.relationships.BelongsToOne
361 - default_flavor:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700362 node: m1.large
Woojoong Kim6586fe82018-01-09 13:10:03 -0800363 relationship: tosca.relationships.BelongsToOne
364
365 sprint_hssdb:
366 type: tosca.nodes.HSSDBVendor
367 properties:
368 name: sprint_hssdb
369 requirements:
370 - image:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700371 node: image-hss-db
Woojoong Kim6586fe82018-01-09 13:10:03 -0800372 relationship: tosca.relationships.BelongsToOne
373 - flavor:
Andy Bavier0db4faf2018-01-17 16:20:16 -0700374 node: m1.large
Woojoong Kim6586fe82018-01-09 13:10:03 -0800375 relationship: tosca.relationships.BelongsToOne
376
Andy Bavier0d1131e2018-01-02 11:27:43 -0700377#SDN Controller Service
378 service#sdncontroller:
379 type: tosca.nodes.SDNControllerService
380 properties:
381 name: sdncontroller
382 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
383 private_key_fn: /opt/xos/services/vspgwu/keys/mcord_rsa
384 artifacts:
385 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
386
387 {{ site_name }}_sdncontroller:
388 description: SDN controller slice
389 type: tosca.nodes.Slice
390 properties:
391 name: {{ site_name }}_sdncontroller
392 default_isolation: vm
393 network: noauto
394 requirements:
395 - site:
396 node: mysite
397 relationship: tosca.relationships.BelongsToOne
398 - service:
399 node: service#sdncontroller
400 relationship: tosca.relationships.BelongsToOne
401 - default_image:
402 node: image-test
403 relationship: tosca.relationships.BelongsToOne
404 - default_flavor:
405 node: m1.small
406 relationship: tosca.relationships.BelongsToOne
407
408 intel_sdncontroller:
409 type: tosca.nodes.SDNControllerVendor
410 properties:
411 name: intel_sdncontroller
412 requirements:
413 - image:
414 node: image-test
415 relationship: tosca.relationships.BelongsToOne
416 - flavor:
417 node: m1.small
418 relationship: tosca.relationships.BelongsToOne
419
Andy Baviere6478b22017-12-21 13:17:56 -0700420# vEPC Service
421 service#vepc:
422 type: tosca.nodes.VEPCService
423 properties:
424 name: vepc
425 public_key: {{ lookup('file', config_cord_profile_dir + '/key_import/mcord_rsa.pub') }}
426 private_key_fn: /opt/xos/services/epc-service/keys/mcord_rsa
427 artifacts:
428 pubkey: /opt/cord_profile/key_import/mcord_rsa.pub
429
430# ServiceDependencies
431 vmme_vspgwc:
432 type: tosca.nodes.ServiceDependency
433 properties:
434 connect_method: None
435 requirements:
436 - subscriber_service:
437 node: service#vmme
438 relationship: tosca.relationships.BelongsToOne
439 - provider_service:
440 node: service#vspgwc
441 relationship: tosca.relationships.BelongsToOne
442
443 vmme_vspgwu:
444 type: tosca.nodes.ServiceDependency
445 properties:
446 connect_method: None
447 requirements:
448 - subscriber_service:
449 node: service#vmme
450 relationship: tosca.relationships.BelongsToOne
451 - provider_service:
452 node: service#vspgwu
453 relationship: tosca.relationships.BelongsToOne
454
455 vspgwc_vspgwu:
456 type: tosca.nodes.ServiceDependency
457 properties:
458 connect_method: None
459 requirements:
460 - subscriber_service:
461 node: service#vspgwc
462 relationship: tosca.relationships.BelongsToOne
463 - provider_service:
464 node: service#vspgwu
465 relationship: tosca.relationships.BelongsToOne
466
Andy Bavier0d1131e2018-01-02 11:27:43 -0700467 vmme_vhss:
468 type: tosca.nodes.ServiceDependency
469 properties:
470 connect_method: None
471 requirements:
472 - subscriber_service:
473 node: service#vmme
474 relationship: tosca.relationships.BelongsToOne
475 - provider_service:
476 node: service#vhss
477 relationship: tosca.relationships.BelongsToOne
478
Woojoong Kim6586fe82018-01-09 13:10:03 -0800479 vhss_hssdb:
480 type: tosca.nodes.ServiceDependency
481 properties:
482 connect_method: None
483 requirements:
484 - subscriber_service:
485 node: service#vhss
486 relationship: tosca.relationships.BelongsToOne
487 - provider_service:
488 node: service#hssdb
489 relationship: tosca.relationships.BelongsToOne
490
Andy Baviere6478b22017-12-21 13:17:56 -0700491# M-CORD Subscriber
492 service#mcord:
493 type: tosca.nodes.MCordSubscriberService
494 properties:
495 name: mcord
496
Andy Bavier0d1131e2018-01-02 11:27:43 -0700497 # ServiceDependency M-CORD to vMME
Andy Baviere6478b22017-12-21 13:17:56 -0700498 mcord_vmme:
499 type: tosca.nodes.ServiceDependency
500 properties:
501 connect_method: None
502 requirements:
503 - subscriber_service:
504 node: service#vmme
505 relationship: tosca.relationships.BelongsToOne
506 - provider_service:
507 node: service#mcord
508 relationship: tosca.relationships.BelongsToOne