[sdc] update code of sdc
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / createAbstractSubstitute / oneComputeMultiplePortsSameType / out / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.FSB:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     fsb1-name:
15       label: FSB1_name
16       hidden: false
17       immutable: false
18       type: string
19       description: FSB1_name
20     fsb1-Internal1-mac:
21       label: FSB1_internal_mac
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB1_internal_mac
26     fsb-flavor:
27       label: FSB1_flavor
28       hidden: false
29       immutable: false
30       type: string
31       description: FSB1_flavor
32     fsb-image:
33       label: FSB1_image
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_image
38     fsb1-Internal2-mac:
39       label: FSB1_internal_mac
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_internal_mac
44     fsb1_zone:
45       label: FSB1_zone
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_zone
50     network_name:
51       hidden: false
52       immutable: false
53       type: string
54       description: prop
55     CMAUI_volume_type:
56       hidden: false
57       immutable: false
58       type: string
59       description: prop
60     cmaui_cinder_volume_size:
61       hidden: false
62       immutable: false
63       type: string
64       description: prop
65   node_templates:
66     FSB1_Internal2:
67       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
68       properties:
69         mac_address:
70           get_input: fsb1-Internal2-mac
71         network: Internal2-net
72       requirements:
73       - binding:
74           capability: tosca.capabilities.network.Bindable
75           node: FSB1_template
76           relationship: tosca.relationships.network.BindsTo
77     FSB1_Internal1:
78       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
79       properties:
80         mac_address:
81           get_input: fsb1-Internal1-mac
82         network: Internal1-net
83       requirements:
84       - binding:
85           capability: tosca.capabilities.network.Bindable
86           node: FSB1_template
87           relationship: tosca.relationships.network.BindsTo
88       - link:
89           capability: tosca.capabilities.network.Linkable
90           node: jsa_net1
91           relationship: tosca.relationships.network.LinksTo
92     jsa_net1:
93       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
94       properties:
95         shared: true
96         network_name:
97           get_attribute:
98           - FSB1_Internal1
99           - network_id
100         dhcp_agent_ids:
101           get_attribute:
102           - FSB1_template
103           - addresses
104         tenant_id:
105           get_attribute:
106           - FSB1_Internal2
107           - network_id
108         qos_policy:
109           get_attribute:
110           - FSB1_Internal2
111           - network_id
112     FSB1_template:
113       type: org.openecomp.resource.vfc.nodes.heat.FSB
114       properties:
115         flavor:
116           get_input: fsb-flavor
117         image:
118           get_input: fsb-image
119         admin_pass: STATIC-DATA-FSB1
120         availability_zone:
121           get_input: fsb1_zone
122         metadata:
123           write_files:
124           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
125           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
126         name:
127           get_input: fsb1-name
128       requirements:
129       - local_storage:
130           capability: tosca.capabilities.Attachment
131           node: cmaui_volume1
132           relationship: cmaui_volume_attachment
133       - local_storage:
134           capability: tosca.capabilities.Attachment
135           node: cmaui_volume2
136           relationship: cmaui_volume_attachment
137       artifacts:
138         nimbus-ethernet-gw:
139           type: tosca.artifacts.Deployment
140           file: ../Artifacts/nimbus-ethernet-gw
141         nimbus-ethernet:
142           type: tosca.artifacts.Deployment
143           file: ../Artifacts/nimbus-ethernet
144     cmaui_volume1:
145       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
146       properties:
147         volume_type:
148           get_input: CMAUI_volume_type
149         size: '(get_input : cmaui_cinder_volume_size) * 1024'
150     cmaui_volume2:
151       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
152       properties:
153         volume_type:
154           get_input: CMAUI_volume_type
155         size: '(get_input : cmaui_cinder_volume_size) * 1024'
156     abstract_FSB:
157       type: org.openecomp.resource.abstract.nodes.FSB
158       directives:
159       - substitutable
160       properties:
161         port_FSB1_Internal1_mac_address:
162           get_input: fsb1-Internal1-mac
163         port_FSB1_Internal2_network:
164         - Internal2-net
165         port_FSB1_Internal1_network:
166         - Internal1-net
167         vm_flavor_name:
168           get_input: fsb-flavor
169         port_FSB1_Internal2_mac_address:
170           get_input: fsb1-Internal1-mac
171         vm_image_name:
172           get_input: fsb-image
173         compute_FSB_admin_pass:
174         - STATIC-DATA-FSB1
175         compute_FSB_metadata:
176         - write_files:
177           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
178           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
179         compute_FSB_availability_zone:
180         - get_input: fsb1_zone
181         compute_FSB_name:
182         - get_input: fsb1-name
183         service_template_filter:
184           substitute_service_template: Nested_FSBServiceTemplate.yaml
185           count: 1
186         index_value:
187           get_property:
188           - SELF
189           - service_template_filter
190           - index_value
191   groups:
192     ep-jsa_net_group:
193       type: org.openecomp.groups.heat.HeatStack
194       properties:
195         heat_file: ../Artifacts/ep-jsa_net.yaml
196         description: |
197           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
198       members:
199       - FSB1_Internal2
200       - FSB1_Internal1
201       - FSB1_template