[SDC-29] rebase continue work to align source
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updGroupsConnectivity / consolidation / 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     fsb2-name:
21       label: FSB2_name
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB2_name
26     cmaui_cinder_volume_size:
27       label: volume size
28       hidden: false
29       immutable: false
30       type: float
31       description: my volume size 320GB
32     fsb-flavor:
33       label: FSB1_flavor
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_flavor
38     fsb-image:
39       label: FSB1_image
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_image
44     fsb1-Internal1-mac:
45       label: FSB1_internal_mac
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_internal_mac
50     fsb1-Internal2-mac:
51       label: FSB1_internal_mac
52       hidden: false
53       immutable: false
54       type: string
55       description: FSB1_internal_mac
56     fsb1-zone:
57       label: FSB1_zone
58       hidden: false
59       immutable: false
60       type: string
61       description: FSB1_zone
62     fsb2_zone:
63       label: FSB2_zone
64       hidden: false
65       immutable: false
66       type: string
67       description: FSB2_zone
68     network_name:
69       hidden: false
70       immutable: false
71       type: string
72       description: prop
73     fsb2-Internal1-mac:
74       label: FSB1_internal_mac
75       hidden: false
76       immutable: false
77       type: string
78       description: FSB1_internal_mac
79     fsb2-Internal2-mac:
80       label: FSB1_internal_mac
81       hidden: false
82       immutable: false
83       type: string
84       description: FSB1_internal_mac
85     fsb1-oam-ip:
86       hidden: false
87       immutable: false
88       type: string
89       description: prop
90     jsa_net_name:
91       hidden: false
92       immutable: false
93       type: string
94       description: prop
95     packet_mirror_network_name:
96       hidden: false
97       immutable: false
98       type: string
99       description: prop
100   node_templates:
101     FSB2_Internal2:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         mac_address:
105           get_input: fsb2-Internal2-mac
106         network: Internal2-net-fsb2-Internal2
107       requirements:
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: FSB2_template
111           relationship: tosca.relationships.network.BindsTo
112       - link:
113           capability: tosca.capabilities.network.Linkable
114           node: jsa_net
115           relationship: tosca.relationships.network.LinksTo
116     FSB2_Internal1:
117       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
118       properties:
119         mac_address:
120           get_input: fsb2-Internal1-mac
121         network: Internal2-net-fsb2-Internal1
122       requirements:
123       - binding:
124           capability: tosca.capabilities.network.Bindable
125           node: FSB1_template
126           relationship: tosca.relationships.network.BindsTo
127       - link:
128           capability: tosca.capabilities.network.Linkable
129           node: jsa_net
130           relationship: tosca.relationships.network.LinksTo
131     FSB1_Internal2:
132       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
133       properties:
134         mac_address:
135           get_input: fsb1-Internal2-mac
136         network: Internal1-net-fsb1-Internal2
137       requirements:
138       - binding:
139           capability: tosca.capabilities.network.Bindable
140           node: FSB2_template
141           relationship: tosca.relationships.network.BindsTo
142       - link:
143           capability: tosca.capabilities.network.Linkable
144           node: jsa_net1
145           relationship: tosca.relationships.network.LinksTo
146     FSB1_Internal1:
147       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
148       properties:
149         mac_address:
150           get_input: fsb1-Internal1-mac
151         network: Internal1-net-fsb1-Internal1
152       requirements:
153       - binding:
154           capability: tosca.capabilities.network.Bindable
155           node: FSB1_template
156           relationship: tosca.relationships.network.BindsTo
157       - link:
158           capability: tosca.capabilities.network.Linkable
159           node: jsa_net1
160           relationship: tosca.relationships.network.LinksTo
161     jsa_net:
162       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
163       properties:
164         shared: true
165         network_name:
166           get_input: jsa_net_name
167     jsa_net1:
168       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
169       properties:
170         shared: true
171         network_name:
172           get_attribute:
173           - abstract_FSB
174           - FSB_FSB1_Internal_network_id
175         dhcp_agent_ids:
176           get_attribute:
177           - abstract_FSB
178           - FSB_addresses
179         tenant_id:
180           get_attribute:
181           - abstract_FSB
182           - FSB_FSB2_Internal_network_id
183         qos_policy:
184           get_attribute:
185           - abstract_FSB
186           - FSB_FSB2_Internal_network_id
187     FSB1_template:
188       type: org.openecomp.resource.vfc.nodes.heat.FSB
189       properties:
190         flavor:
191           get_input: fsb-flavor
192         image:
193           get_input: fsb-image
194         user_data: STATIC-DATA-FSB1
195         admin_pass: OPTIONAL-DATA-FSB1
196         availability_zone:
197           get_input: fsb1_zone
198         metadata:
199           write_files:
200           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
201           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
202         name:
203           get_input: fsb1-name
204       requirements:
205       - dependency:
206           capability: tosca.capabilities.Node
207           node: packet_mirror_network
208           relationship: tosca.relationships.DependsOn
209     FSB2_template:
210       type: org.openecomp.resource.vfc.nodes.heat.FSB
211       properties:
212         flavor:
213           get_input: fsb-flavor
214         image:
215           get_input: fsb-image
216         user_data: STATIC-DATA-FSB2
217         availability_zone:
218           get_input: fsb2_zone
219         metadata:
220           write_files:
221           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
222           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
223         name:
224           get_input: fsb2-name
225       requirements:
226       - dependency:
227           capability: tosca.capabilities.Node
228           node: packet_mirror_network
229           relationship: tosca.relationships.DependsOn
230     packet_mirror_network:
231       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
232       properties:
233         network_name:
234           get_input: packet_mirror_network_name
235     abstract_FSB:
236       type: org.openecomp.resource.abstract.nodes.FSB
237       directives:
238       - substitutable
239       properties:
240         port_FSB1_Internal_mac_address:
241         - get_input: fsb1-Internal1-mac
242         - get_input: fsb1-Internal2-mac
243         compute_FSB_user_data:
244         - STATIC-DATA-FSB1
245         - STATIC-DATA-FSB2
246         vm_flavor_name:
247           get_input: fsb-flavor
248         vm_image_name:
249           get_input: fsb-image
250         compute_FSB_admin_pass:
251         - OPTIONAL-DATA-FSB1
252         - null
253         port_FSB1_Internal_network:
254         - Internal1-net-fsb1-Internal1
255         - Internal1-net-fsb1-Internal2
256         port_FSB2_Internal_mac_address:
257         - get_input: fsb2-Internal1-mac
258         - get_input: fsb2-Internal2-mac
259         port_FSB2_Internal_network:
260         - Internal2-net-fsb2-Internal1
261         - Internal2-net-fsb2-Internal2
262         compute_FSB_metadata:
263         - write_files:
264           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
265           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
266         - write_files:
267           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
268           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
269         compute_FSB_availability_zone:
270         - get_input: fsb1_zone
271         - get_input: fsb2_zone
272         compute_FSB_name:
273         - get_input: fsb1-name
274         - get_input: fsb2-name
275         service_template_filter:
276           substitute_service_template: Nested_FSBServiceTemplate.yaml
277           count: 2
278         index_value:
279           get_property:
280           - SELF
281           - service_template_filter
282           - index_value
283       requirements:
284       - dependency_FSB:
285           capability: tosca.capabilities.Node
286           node: packet_mirror_network
287           relationship: tosca.relationships.DependsOn
288       - link_FSB_FSB1_Internal:
289           capability: tosca.capabilities.network.Linkable
290           node: jsa_net1
291           relationship: tosca.relationships.network.LinksTo
292       - link_FSB_FSB2_Internal:
293           capability: tosca.capabilities.network.Linkable
294           node: jsa_net
295           relationship: tosca.relationships.network.LinksTo
296   groups:
297     FE_SMP_Affinity_group:
298       type: tosca.groups.Root
299       members:
300       - abstract_FSB
301     BE_Affinity_group:
302       type: tosca.groups.Root
303       members:
304       - abstract_FSB
305     ep-jsa_net_group:
306       type: org.openecomp.groups.heat.HeatStack
307       properties:
308         heat_file: ../Artifacts/ep-jsa_net.yaml
309         description: |
310           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
311       members:
312       - FSB1_Internal1
313       - FSB1_Internal2
314       - FSB2_Internal1
315       - FSB2_Internal2
316       - FSB1_template
317       - FSB2_template
318       - jsa_net
319       - jsa_net1
320       - packet_mirror_network_name