[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 / pattern1b / noConsolidation / 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 topology_template:
10   inputs:
11     fsb1-name:
12       label: FSB1_name
13       hidden: false
14       immutable: false
15       type: string
16       description: FSB1_name
17     fsb1-Internal1-mac:
18       label: FSB1_internal_mac
19       hidden: false
20       immutable: false
21       type: string
22       description: FSB1_internal_mac
23     cps_net_mask:
24       hidden: false
25       immutable: false
26       type: string
27       description: prop
28     fsb1-flavor:
29       label: FSB1_flavor
30       hidden: false
31       immutable: false
32       type: string
33       description: FSB1_flavor
34     fsb1-Internal2-mac:
35       label: FSB1_internal_mac
36       hidden: false
37       immutable: false
38       type: string
39       description: FSB1_internal_mac
40     volume_type:
41       label: volume type
42       hidden: false
43       immutable: false
44       type: string
45       description: volume type Gold
46     fsb_zone:
47       label: FSB1_zone
48       hidden: false
49       immutable: false
50       type: string
51       description: FSB1_zone
52     oam_net_gw:
53       hidden: false
54       immutable: false
55       type: string
56       description: prop
57     network_name:
58       hidden: false
59       immutable: false
60       type: string
61       description: prop
62     cps_net_ip:
63       hidden: false
64       immutable: false
65       type: string
66       description: prop
67     jsa_net_name:
68       label: jsa_net_name
69       hidden: false
70       immutable: false
71       type: string
72       description: jsa_net_name
73       default: jsa_log_net_0
74     pcrf_psm_server_name:
75       label: pcrf_psm_server_name
76       hidden: false
77       immutable: false
78       type: string
79       description: pcrf_psm_server_name
80     pcm_flavor_name:
81       label: pcm_flavor_name
82       hidden: false
83       immutable: false
84       type: string
85       description: pcm_flavor_name
86     oam_net_id:
87       label: oam_net_id
88       hidden: false
89       immutable: false
90       type: string
91       description: oam_net_id
92     oam_net_ip:
93       hidden: false
94       immutable: false
95       type: string
96       description: prop
97     oam_net_mask:
98       hidden: false
99       immutable: false
100       type: string
101       description: prop
102     fsb1-oam-ip:
103       hidden: false
104       immutable: false
105       type: string
106       description: prop
107   node_templates:
108     jsa_net1:
109       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
110       properties:
111         shared: true
112         network_name:
113           get_attribute:
114           - FSB1_Internal1
115           - network_id
116         dhcp_agent_ids:
117           get_attribute:
118           - FSB1_template
119           - addresses
120         tenant_id:
121           get_attribute:
122           - FSB2_Internal2
123           - network_id
124         qos_policy:
125           get_attribute:
126           - FSB2_Internal2
127           - network_id
128     cmaui_volume1:
129       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
130       properties:
131         volume_type:
132           get_input: CMAUI_volume_type
133         size: '(get_input : cmaui_cinder_volume_size) * 1024'
134     cmaui_volume2:
135       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
136       properties:
137         volume_type:
138           get_input: CMAUI_volume_type
139         size: '(get_input : cmaui_cinder_volume_size) * 1024'
140     abstract_FSB1_0:
141       type: org.openecomp.resource.abstract.nodes.FSB1_0
142       directives:
143       - substitutable
144       properties:
145         port_FSB1_Internal_mac_address:
146           get_input: fsb1-Internal1-mac
147         compute_FSB1_availability_zone:
148         - get_input: fsb_zone
149         port_FSB1_Internal_network:
150         - Internal1-net
151         vm_flavor_name:
152           get_input: fsb1-flavor
153         port_FSB2_Internal_mac_address:
154           get_input: fsb1-Internal2-mac
155         port_FSB2_Internal_network:
156         - Internal2-net
157         service_template_filter:
158           substitute_service_template: Nested_FSB1_0ServiceTemplate.yaml
159           count: 1
160         index_value:
161           get_property:
162           - SELF
163           - service_template_filter
164           - index_value
165       requirements:
166       - link_FSB1_FSB1_Internal:
167           capability: tosca.capabilities.network.Linkable
168           node: jsa_net1
169           relationship: tosca.relationships.network.LinksTo
170       - local_storage_FSB1:
171           capability: tosca.capabilities.Attachment
172           node: cmaui_volume1
173           relationship: cmaui_volume_attachment
174       - local_storage_FSB1:
175           capability: tosca.capabilities.Attachment
176           node: cmaui_volume2
177           relationship: cmaui_volume_attachment
178     abstract_FSB1_1:
179       type: org.openecomp.resource.abstract.nodes.FSB1_1
180       directives:
181       - substitutable
182       properties:
183         compute_FSB1_availability_zone:
184         - get_input: fsb_zone
185         vm_flavor_name:
186           get_input: fsb1-flavor
187         service_template_filter:
188           substitute_service_template: Nested_FSB1_1ServiceTemplate.yaml
189           count: 1
190         index_value:
191           get_property:
192           - SELF
193           - service_template_filter
194           - index_value
195       requirements:
196       - link_FSB1_FSB1_Internal:
197           capability: tosca.capabilities.network.Linkable
198           node: jsa_net1
199           relationship: tosca.relationships.network.LinksTo
200       - local_storage_FSB1:
201           capability: tosca.capabilities.Attachment
202           node: cmaui_volume1
203           relationship: cmaui_volume_attachment
204       - local_storage_FSB1:
205           capability: tosca.capabilities.Attachment
206           node: cmaui_volume2
207           relationship: cmaui_volume_attachment
208     abstract_FSB1_2:
209       type: org.openecomp.resource.abstract.nodes.FSB1_2
210       directives:
211       - substitutable
212       properties:
213         compute_FSB1_availability_zone:
214         - get_input: fsb_zone
215         vm_flavor_name:
216           get_input: fsb1-flavor
217         service_template_filter:
218           substitute_service_template: Nested_FSB1_2ServiceTemplate.yaml
219           count: 1
220         index_value:
221           get_property:
222           - SELF
223           - service_template_filter
224           - index_value
225       requirements:
226       - link_FSB1_FSB1_Internal:
227           capability: tosca.capabilities.network.Linkable
228           node: jsa_net1
229           relationship: tosca.relationships.network.LinksTo
230       - local_storage_FSB1:
231           capability: tosca.capabilities.Attachment
232           node: cmaui_volume1
233           relationship: cmaui_volume_attachment
234       - local_storage_FSB1:
235           capability: tosca.capabilities.Attachment
236           node: cmaui_volume2
237           relationship: cmaui_volume_attachment
238   groups:
239     ep-jsa_net_group:
240       type: org.openecomp.groups.heat.HeatStack
241       properties:
242         heat_file: ../Artifacts/ep-jsa_net.yaml
243         description: |
244           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
245       members:
246       - abstract_FSB1_0
247       - abstract_FSB1_1
248       - abstract_FSB1_2
249   outputs:
250     simpleOutput1:
251       value:
252         get_attribute:
253         - abstract_FSB1_0
254         - FSB1_accessIPv4
255     simpleOutput2:
256       value:
257         get_attribute:
258         - FSB2_template
259         - addresses
260         - key1
261     complexOutput1:
262       value:
263         get_attribute:
264         - abstract_FSB1_0
265         - FSB1_addresses
266         - get_attribute:
267           - abstract_FSB1_0
268           - FSB1_FSB2_Internal_index
269     complexOutput2:
270       description: cgi fw01 left interface Mac-Address
271       value:
272         get_attribute:
273         - FSB1_Internal2
274         - addresses
275         - get_input:
276           - CMAUI_volume_type
277           - get_attribute:
278             - FSB2_Internal1
279             - oam_index
280         - 0
281         - OS-EXT-IPS-MAC:mac_addr
282     complexOutput3:
283       description: cgi fw01 left interface Mac-Address
284       value:
285         get_input:
286         - a
287         - addresses
288         - get_input:
289           - CMAUI_volume_type
290           - get_attribute:
291             - abstract_FSB1_0
292             - FSB1_FSB1_Internal_accessIPv6
293         - 0
294         - OS-EXT-IPS-MAC:mac_addr