[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 / updNodesConnectedOut / 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         admin_pass: STATIC-DATA-FSB1
195         user_data: 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         admin_pass: 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         compute_FSB_user_data:
243         - OPTIONAL-DATA-FSB1
244         - null
245         vm_flavor_name:
246           get_input: fsb-flavor
247         vm_image_name:
248           get_input: fsb-image
249         compute_FSB_admin_pass:
250         - STATIC-DATA-FSB1
251         - STATIC-DATA-FSB2
252         port_FSB1_Internal_network:
253         - Internal1-net-fsb1-Internal1
254         - Internal1-net-fsb1-Internal2
255         port_FSB2_Internal_mac_address:
256           get_input: fsb2-Internal1-mac
257         port_FSB2_Internal_network:
258         - Internal2-net-fsb2-Internal1
259         - Internal2-net-fsb2-Internal2
260         compute_FSB_metadata:
261         - write_files:
262           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
263           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
264         - write_files:
265           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
266           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
267         compute_FSB_availability_zone:
268         - get_input: fsb1_zone
269         - get_input: fsb2_zone
270         compute_FSB_name:
271         - get_input: fsb1-name
272         - get_input: fsb2-name
273         service_template_filter:
274           substitute_service_template: Nested_FSBServiceTemplate.yaml
275           count: 2
276         index_value:
277           get_property:
278           - SELF
279           - service_template_filter
280           - index_value
281       requirements:
282       - dependency_FSB:
283           capability: tosca.capabilities.Node
284           node: packet_mirror_network
285           relationship: tosca.relationships.DependsOn
286       - link_FSB_FSB1_Internal:
287           capability: tosca.capabilities.network.Linkable
288           node: jsa_net1
289           relationship: tosca.relationships.network.LinksTo
290       - link_FSB_FSB2_Internal:
291           capability: tosca.capabilities.network.Linkable
292           node: jsa_net
293           relationship: tosca.relationships.network.LinksTo
294   groups:
295     ep-jsa_net_group:
296       type: org.openecomp.groups.heat.HeatStack
297       properties:
298         heat_file: ../Artifacts/ep-jsa_net.yaml
299         description: |
300           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
301       members:
302       - FSB1_Internal1
303       - FSB1_Internal2
304       - FSB2_Internal1
305       - FSB2_Internal2
306       - FSB1_template
307       - FSB2_template
308       - jsa_net
309       - jsa_net1
310       - packet_mirror_network_name