push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-enrichment-lib / openecomp-sdc-enrichment-core / src / test / resources / extractServiceComposition / all / expectedOutput / VariouseST.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7   NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9   CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11   CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13   ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15   NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17   NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19   ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21   AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 node_types:
24   org.openecomp.resource.vfc.nodes.heat.pcrf_psm:
25     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
26   org.openecomp.resource.vfc.nodes.heat.pcm:
27     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
28 topology_template:
29   inputs:
30     Internal2_name:
31       label: Internal2_name
32       hidden: false
33       immutable: false
34       type: string
35       description: Internal2_name
36     Internal1_shared:
37       label: Internal1_shared
38       hidden: false
39       immutable: false
40       type: string
41       description: Internal1_shared
42     FSB1_volume_name:
43       label: FSB1_volume
44       hidden: false
45       immutable: false
46       type: string
47       description: FSB1_volume_1
48     jsa_cidr:
49       label: jsa_cidr
50       hidden: false
51       immutable: false
52       type: string
53       description: jsa_cidr
54       default: 107.243.7.128/26
55     availabilityzone_name:
56       label: availabilityzone_name
57       hidden: false
58       immutable: false
59       type: string
60       description: availabilityzone_name
61     fsb1-name:
62       label: FSB1_name
63       hidden: false
64       immutable: false
65       type: string
66       description: FSB1_name
67     pcm_image_name:
68       label: pcm_image_name
69       hidden: false
70       immutable: false
71       type: string
72       description: pcm_image_name
73     Internal2_external:
74       label: Internal2_external
75       hidden: false
76       immutable: false
77       type: string
78       description: Internal2_external
79     Internal2_forwarding_mode:
80       label: Internal2_forwarding_mode
81       hidden: false
82       immutable: false
83       type: string
84       description: Internal2_forwarding_mode
85     pcrf_psm_flavor_name:
86       label: pcrf_psm_flavor_name
87       hidden: false
88       immutable: false
89       type: string
90       description: pcrf_psm_flavor_name
91     pcrf_psm_image_name:
92       label: pcrf_psm_image_name
93       hidden: false
94       immutable: false
95       type: string
96       description: pcrf_psm_image_name
97     FSB_1_image:
98       label: MME_FSB1
99       hidden: false
100       immutable: false
101       type: string
102       description: MME_FSB1_15B-CP04-r5a01
103     volume_size:
104       label: volume size
105       hidden: false
106       immutable: false
107       type: float
108       description: my volume size 320GB
109     fsb1-Internal1-mac:
110       label: FSB1_internal_mac
111       hidden: false
112       immutable: false
113       type: string
114       description: FSB1_internal_mac
115     Internal2_shared:
116       label: Internal2_shared
117       hidden: false
118       immutable: false
119       type: string
120       description: Internal2_shared
121     pcm_server_name:
122       label: pcm_server_name
123       hidden: false
124       immutable: false
125       type: string
126       description: pcm_server_name
127     Internal1_net_name:
128       label: Internal1_net_name
129       hidden: false
130       immutable: false
131       type: string
132       description: Internal1_net_name
133     oam_net_name:
134       label: oam_net_name
135       hidden: false
136       immutable: false
137       type: string
138       description: oam_net_name
139     fsb1-flavor:
140       label: FSB1_flavor
141       hidden: false
142       immutable: false
143       type: string
144       description: FSB1_flavor
145     fsb1-Internal2-mac:
146       label: FSB1_internal_mac
147       hidden: false
148       immutable: false
149       type: string
150       description: FSB1_internal_mac
151     volume_type:
152       label: volume type
153       hidden: false
154       immutable: false
155       type: string
156       description: volume type Gold
157     fsb1-zone:
158       label: FSB1_zone
159       hidden: false
160       immutable: false
161       type: string
162       description: FSB1_zone
163     fsb_zone:
164       label: FSB1_zone
165       hidden: false
166       immutable: false
167       type: string
168       description: FSB1_zone
169     security_group_name:
170       hidden: false
171       immutable: false
172       type: list
173       description: CMAUI1, CMAUI2 server names
174       entry_schema:
175         type: String
176     jsa_net_name:
177       label: jsa_net_name
178       hidden: false
179       immutable: false
180       type: string
181       description: jsa_net_name
182       default: jsa_log_net_0
183     pcrf_psm_server_name:
184       label: pcrf_psm_server_name
185       hidden: false
186       immutable: false
187       type: string
188       description: pcrf_psm_server_name
189     pcm_flavor_name:
190       label: pcm_flavor_name
191       hidden: false
192       immutable: false
193       type: string
194       description: pcm_flavor_name
195     oam_net_id:
196       label: oam_net_id
197       hidden: false
198       immutable: false
199       type: string
200       description: oam_net_id
201     fsb2-Internal1-mac:
202       label: FSB1_internal_mac
203       hidden: false
204       immutable: false
205       type: string
206       description: FSB1_internal_mac
207     Internal1_forwarding_mode:
208       label: Internal1_forwarding_mode
209       hidden: false
210       immutable: false
211       type: string
212       description: Internal1_forwarding_mode
213     pcrf_cps_net_name:
214       label: pcrf_cps_net_name
215       hidden: false
216       immutable: false
217       type: string
218       description: pcrf_cps_net_name
219     cps_net_name:
220       label: cps_net_name
221       hidden: false
222       immutable: false
223       type: string
224       description: cps_net_name
225     pcrf_security_group_name:
226       hidden: false
227       immutable: false
228       type: list
229       description: CMAUI1, CMAUI2 server names
230       entry_schema:
231         type: String
232     Internal1_external:
233       label: Internal1_external
234       hidden: false
235       immutable: false
236       type: string
237       description: Internal1_external
238   node_templates:
239
240     jsa_net:
241       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
242       properties:
243         shared: true
244         network_name:
245           get_input: jsa_net_name
246     jsa_net1:
247       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
248       properties:
249         shared: true
250         network_name:
251           get_input: jsa_net_name
252     nova_local_type_pcm1:
253       type: org.openecomp.resource.vfc.nodes.heat.pcm
254       properties:
255         flavor:
256           get_input: pcm_flavor_name
257         availability_zone:
258           get_input: availabilityzone_name
259         image:
260           get_input: pcm_image_name
261         config_drive: 'True'
262         user_data_format: RAW
263         name:
264           get_input: pcm_server_name
265         user_data: UNSUPPORTED_RESOURCE_server_init
266     nova_local_type_pcm2:
267       type: org.openecomp.resource.vfc.nodes.heat.pcm
268       properties:
269         flavor:
270           get_input: pcm_flavor_name
271         availability_zone:
272           get_input: availabilityzone_name
273         image:
274           get_input: pcm_image_name
275         config_drive: 'True'
276         user_data_format: RAW
277         name:
278           get_input: pcm_server_name
279         user_data: UNSUPPORTED_RESOURCE_server_init
280     nova_local_type_pcrf_psm:
281       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm
282       properties:
283         flavor:
284           get_input: pcm_flavor_name
285         availability_zone:
286           get_input: availabilityzone_name
287         image:
288           get_input: pcm_image_name
289         config_drive: 'True'
290         user_data_format: RAW
291         name:
292           get_input: pcm_server_name
293         user_data: UNSUPPORTED_RESOURCE_server_init
294     nova_global_type1:
295       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
296       properties:
297         flavor:
298           get_input: fsb1-flavor
299         availability_zone:
300           get_input: fsb_zone
301         name:
302           get_input: fsb1-name
303     nova_global_type2:
304       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
305       properties:
306         flavor:
307           get_input: fsb1-flavor
308         availability_zone:
309           get_input: fsb_zone
310         metadata:
311           write_files:
312           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
313             permissions: '0644'
314             content:
315               str_replace:
316                 template:
317                   get_artifact:
318                   - SELF
319                   - nimbus-ethernet
320                 params:
321                   $dev: eth0
322                   $netmask:
323                     get_input: cps_net_mask
324                   $ip:
325                     get_input: cps_net_ip
326           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
327             permissions: '0644'
328             content:
329               str_replace:
330                 template:
331                   get_artifact:
332                   - SELF
333                   - nimbus-ethernet-gw
334                 params:
335                   $dev: eth1
336                   $netmask:
337                     get_input: oam_net_mask
338                   $gateway:
339                     get_input: oam_net_gw
340                   $ip:
341                     get_input: oam_net_ip
342         name:
343           get_input: fsb1-name
344       artifacts:
345         nimbus-ethernet-gw:
346           type: tosca.artifacts.Deployment
347           file: ../Artifacts/nimbus-ethernet-gw
348         nimbus-ethernet:
349           type: tosca.artifacts.Deployment
350           file: ../Artifacts/nimbus-ethernet
351   groups:
352     ep-jsa_net:
353       type: org.openecomp.groups.heat.HeatStack
354       properties:
355         heat_file: ../Artifacts/ep-jsa_net.yaml
356         description: |
357           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
358       members:
359       - nova_local_type_pcm1
360       - nova_local_type_pcm2
361       - nova_local_type_pcrf_psm
362       - nova_global_type1
363       - nova_global_type2