push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / multiHeat / referencedHeatResources / expectedOutput / eca_oamServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: eca_oam
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.eca:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36   org.openecomp.resource.vfc.nodes.heat.arb:
37     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
38 topology_template:
39   inputs:
40     metadata:
41       label: metadata
42       hidden: false
43       immutable: false
44       type: string
45       description: cmaui metadata
46     oam_flavor:
47       label: flavor name
48       hidden: false
49       immutable: false
50       type: string
51       description: OAM flavor name
52       default: lc.xlarge4
53     eca_eca_mgmt_ips:
54       label: eca_mgmt network ips for eca VM
55       hidden: false
56       immutable: false
57       type: list
58       description: internal eca_mgmt network ips for eca VM
59       default:
60       - 172.25.137.242
61       - 172.25.137.243
62       entry_schema:
63         type: string
64     eca_mgmt_net_name:
65       label: internal network name
66       hidden: false
67       immutable: false
68       type: string
69       description: the name of the internal network
70       default: int_mms_eca_mgmt_net_1
71     ECA_OAM_volume_type:
72       label: eca oam vm volume type
73       hidden: false
74       immutable: false
75       type: string
76       description: the name of the target volume backend
77       default: Platinum
78     arb_eca_mgmt_ips:
79       label: eca_mgmt network ips
80       hidden: false
81       immutable: false
82       type: list
83       description: internal eca_mgmt network ips for arb VM
84       default:
85       - 172.25.137.244
86       entry_schema:
87         type: string
88     networks:
89       label: network name
90       hidden: false
91       immutable: false
92       type: string
93       description: cmaui network name
94     cmaui_name:
95       label: cmaui name
96       hidden: false
97       immutable: false
98       type: string
99       description: cmaui name
100     arb_volume_size:
101       label: volume size
102       hidden: false
103       immutable: false
104       type: float
105       description: the size of the ARB volume
106       default: 40
107     vnf_id:
108       hidden: false
109       immutable: false
110       type: string
111       description: Unique ID for this VNF instance
112       default: This_is_ths_MMSC-ECA_id
113     availability_zone_0:
114       label: availabilityzone name
115       hidden: false
116       immutable: false
117       type: string
118       description: availabilityzone name
119       default: nova
120     oam_image_name:
121       label: image name
122       hidden: false
123       immutable: false
124       type: string
125       description: the OAM image name
126       default: ECABASE
127     oam_volume_size:
128       label: volume size
129       hidden: false
130       immutable: false
131       type: float
132       description: the size of the OAM volume
133       default: 1800
134     swift_eca_url:
135       label: Swift URL
136       hidden: false
137       immutable: false
138       type: string
139       description: Base URL for eca swift object store
140       default: http://object-store.rdm2.cci.com:8080/v1/AUTH_1bbab536a19b4756926e7d0ec1eb543c/eca
141     oam_net_name:
142       label: oam network name
143       hidden: false
144       immutable: false
145       type: string
146       description: the name of the oam network
147       default: oam_protected_net_0
148     ARB_volume_type:
149       label: arb vm volume type
150       hidden: false
151       immutable: false
152       type: string
153       description: the name of the target volume backend
154       default: Platinum
155     eca_names:
156       label: oam servers names
157       hidden: false
158       immutable: false
159       type: list
160       description: the names of the OAM1,OAM2 VM instances
161       default:
162       - ZRDM1MMSC02OAM001
163       - ZRDM1MMSC02OAM002
164       entry_schema:
165         type: string
166     arbiter_flavor:
167       label: flavor name
168       hidden: false
169       immutable: false
170       type: string
171       description: arbiter flavor name
172       default: m1.large2
173     eca_oam_ips:
174       label: oam network ips
175       hidden: false
176       immutable: false
177       type: list
178       description: the ips of oam networks for eca VM
179       default:
180       - 107.250.172.44
181       - 107.250.172.45
182       entry_schema:
183         type: string
184     security_group_name:
185       label: security group name
186       hidden: false
187       immutable: false
188       type: string
189       description: the name of security group
190       default: mmsc_security_group_1
191     user_data:
192       label: user data
193       hidden: false
194       immutable: false
195       type: string
196       description: cmaui user data
197     cmaui_image:
198       label: cmaui image
199       hidden: false
200       immutable: false
201       type: string
202       description: cmaui image
203     arb_names:
204       label: arbiter server names
205       hidden: false
206       immutable: false
207       type: list
208       description: the names of the arbiter VM instances
209       default:
210       - ZRDM1MMSC02ARB001
211       entry_schema:
212         type: string
213     cmaui_flavor:
214       label: flavor name
215       hidden: false
216       immutable: false
217       type: string
218       description: cmaui flavor name
219     user_data_format:
220       label: user data
221       hidden: false
222       immutable: false
223       type: string
224       description: cmaui user data
225     eca_oam_gateway:
226       label: oam1 oam gateway
227       hidden: false
228       immutable: false
229       type: string
230       description: the ip of oam gateway
231       default: 107.250.172.1
232     arb_oam_ips:
233       label: oam network ips for arb VM
234       hidden: false
235       immutable: false
236       type: list
237       description: oam network ips for eca VM
238       default:
239       - 107.250.172.46
240       entry_schema:
241         type: string
242   node_templates:
243     arb_mgmt_port:
244       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
245       properties:
246         replacement_policy: AUTO
247         security_groups:
248         - get_input: security_group_name
249         fixed_ips:
250         - ip_address:
251             get_input:
252             - arb_oam_ips
253             - 0
254         network:
255           get_input: oam_net_name
256       requirements:
257       - binding:
258           capability: tosca.capabilities.network.Bindable
259           node: arb_instance
260           relationship: tosca.relationships.network.BindsTo
261     oam2_mgmt_port:
262       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
263       properties:
264         replacement_policy: AUTO
265         security_groups:
266         - get_input: security_group_name
267         fixed_ips:
268         - ip_address:
269             get_input:
270             - eca_oam_ips
271             - 1
272         network:
273           get_input: oam_net_name
274       requirements:
275       - binding:
276           capability: tosca.capabilities.network.Bindable
277           node: oam2_instance
278           relationship: tosca.relationships.network.BindsTo
279     arb_instance:
280       type: org.openecomp.resource.vfc.nodes.heat.arb
281       properties:
282         flavor:
283           get_input: arbiter_flavor
284         availability_zone:
285           get_input: availability_zone_0
286         image:
287           get_input: oam_image_name
288         metadata:
289           vnf_id:
290             get_input: vnf_id
291         name:
292           get_input:
293           - arb_names
294           - 0
295       requirements:
296       - local_storage:
297           capability: tosca.capabilities.Attachment
298           node: arb_volume
299           relationship: arb_volume_attachment
300     arb_volume:
301       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
302       properties:
303         volume_type:
304           get_input: ARB_volume_type
305         size: '(get_input : arb_volume_size) * 1024'
306     oam1_instance:
307       type: org.openecomp.resource.vfc.nodes.heat.eca
308       properties:
309         flavor:
310           get_input: oam_flavor
311         availability_zone:
312           get_input: availability_zone_0
313         image:
314           get_input: oam_image_name
315         metadata:
316           vnf_id:
317             get_input: vnf_id
318         name:
319           get_input:
320           - eca_names
321           - 0
322       requirements:
323       - local_storage:
324           capability: tosca.capabilities.Attachment
325           node: oam1_volume
326           relationship: oam1_volume_attachment
327     oam2_volume:
328       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
329       properties:
330         volume_type:
331           get_input: ECA_OAM_volume_type
332         size: '(get_input : oam_volume_size) * 1024'
333     oam1_volume:
334       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
335       properties:
336         volume_type:
337           get_input: ECA_OAM_volume_type
338         size: '(get_input : oam_volume_size) * 1024'
339     oam1_int_port:
340       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
341       properties:
342         replacement_policy: AUTO
343         security_groups:
344         - get_input: security_group_name
345         fixed_ips:
346         - ip_address:
347             get_input:
348             - eca_eca_mgmt_ips
349             - 0
350         network:
351           get_input: eca_mgmt_net_name
352       requirements:
353       - binding:
354           capability: tosca.capabilities.network.Bindable
355           node: oam1_instance
356           relationship: tosca.relationships.network.BindsTo
357     oam1_mgmt_port:
358       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
359       properties:
360         replacement_policy: AUTO
361         security_groups:
362         - get_input: security_group_name
363         fixed_ips:
364         - ip_address:
365             get_input:
366             - eca_oam_ips
367             - 0
368         network:
369           get_input: oam_net_name
370       requirements:
371       - binding:
372           capability: tosca.capabilities.network.Bindable
373           node: oam1_instance
374           relationship: tosca.relationships.network.BindsTo
375     arb_int_port:
376       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
377       properties:
378         replacement_policy: AUTO
379         security_groups:
380         - get_input: security_group_name
381         fixed_ips:
382         - ip_address:
383             get_input:
384             - arb_eca_mgmt_ips
385             - 0
386         network:
387           get_input: eca_mgmt_net_name
388       requirements:
389       - binding:
390           capability: tosca.capabilities.network.Bindable
391           node: arb_instance
392           relationship: tosca.relationships.network.BindsTo
393     oam2_int_port:
394       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
395       properties:
396         replacement_policy: AUTO
397         security_groups:
398         - get_input: security_group_name
399         fixed_ips:
400         - ip_address:
401             get_input:
402             - eca_eca_mgmt_ips
403             - 1
404         network:
405           get_input: eca_mgmt_net_name
406       requirements:
407       - binding:
408           capability: tosca.capabilities.network.Bindable
409           node: oam2_instance
410           relationship: tosca.relationships.network.BindsTo
411     oam2_instance:
412       type: org.openecomp.resource.vfc.nodes.heat.eca
413       properties:
414         flavor:
415           get_input: oam_flavor
416         availability_zone:
417           get_input: availability_zone_0
418         image:
419           get_input: oam_image_name
420         metadata:
421           vnf_id:
422             get_input: vnf_id
423         name:
424           get_input:
425           - eca_names
426           - 1
427       requirements:
428       - local_storage:
429           capability: tosca.capabilities.Attachment
430           node: oam2_volume
431           relationship: oam2_volume_attachment
432   relationship_templates:
433     oam2_volume_attachment:
434       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
435       properties:
436         volume_id: oam2_volume
437         instance_uuid: oam2_instance
438     oam1_volume_attachment:
439       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
440       properties:
441         volume_id: oam1_volume
442         instance_uuid: oam1_instance
443     arb_volume_attachment:
444       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
445       properties:
446         volume_id: arb_volume
447         instance_uuid: arb_instance
448   groups:
449     eca_oam:
450       type: org.openecomp.groups.heat.HeatStack
451       properties:
452         heat_file: ../Artifacts/eca_oam.yaml
453         description: This stack creates two ECA OAM VM and one ARB VM
454       members:
455       - arb_mgmt_port
456       - oam2_mgmt_port
457       - arb_instance
458       - arb_volume
459       - oam1_instance
460       - oam2_volume
461       - oam1_volume
462       - oam1_int_port
463       - oam1_mgmt_port
464       - arb_int_port
465       - oam2_int_port
466       - oam2_instance
467   substitution_mappings:
468     node_type: org.openecomp.resource.abstract.nodes.heat.eca_oam
469     capabilities:
470       attachment_oam2_volume:
471       - oam2_volume
472       - attachment
473       binding_oam2_instance:
474       - oam2_instance
475       - binding
476       attachment_oam2_int_port:
477       - oam2_int_port
478       - attachment
479       attachment_oam1_volume:
480       - oam1_volume
481       - attachment
482       os_oam1_instance:
483       - oam1_instance
484       - os
485       scalable_oam2_instance:
486       - oam2_instance
487       - scalable
488       scalable_arb_instance:
489       - arb_instance
490       - scalable
491       endpoint_oam1_instance:
492       - oam1_instance
493       - endpoint
494       binding_arb_instance:
495       - arb_instance
496       - binding
497       host_arb_instance:
498       - arb_instance
499       - host
500       endpoint_arb_instance:
501       - arb_instance
502       - endpoint
503       attachment_oam1_int_port:
504       - oam1_int_port
505       - attachment
506       attachment_arb_volume:
507       - arb_volume
508       - attachment
509       host_oam1_instance:
510       - oam1_instance
511       - host
512       os_oam2_instance:
513       - oam2_instance
514       - os
515       endpoint_oam2_instance:
516       - oam2_instance
517       - endpoint
518       scalable_oam1_instance:
519       - oam1_instance
520       - scalable
521       host_oam2_instance:
522       - oam2_instance
523       - host
524       os_arb_instance:
525       - arb_instance
526       - os
527       attachment_oam1_mgmt_port:
528       - oam1_mgmt_port
529       - attachment
530       attachment_arb_int_port:
531       - arb_int_port
532       - attachment
533       attachment_arb_mgmt_port:
534       - arb_mgmt_port
535       - attachment
536       attachment_oam2_mgmt_port:
537       - oam2_mgmt_port
538       - attachment
539       binding_oam1_instance:
540       - oam1_instance
541       - binding
542     requirements:
543       link_oam2_mgmt_port:
544       - oam2_mgmt_port
545       - link
546       link_oam1_int_port:
547       - oam1_int_port
548       - link
549       link_oam1_mgmt_port:
550       - oam1_mgmt_port
551       - link
552       local_storage_arb_instance:
553       - arb_instance
554       - local_storage
555       link_arb_mgmt_port:
556       - arb_mgmt_port
557       - link
558       local_storage_oam2_instance:
559       - oam2_instance
560       - local_storage
561       link_arb_int_port:
562       - arb_int_port
563       - link
564       link_oam2_int_port:
565       - oam2_int_port
566       - link
567       local_storage_oam1_instance:
568       - oam1_instance
569       - local_storage