push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-enrichment-lib / openecomp-sdc-enrichment-core / src / test / resources / extractServiceComposition / onlyComponents / OnlyComponentsST_01.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     nova_local_type_pcm1:
240       type: org.openecomp.resource.vfc.nodes.heat.pcm
241       properties:
242         flavor:
243           get_input: pcm_flavor_name
244         availability_zone:
245           get_input: availabilityzone_name
246         image:
247           get_input: pcm_image_name
248         config_drive: 'True'
249         user_data_format: RAW
250         name:
251           get_input: pcm_server_name
252         user_data: UNSUPPORTED_RESOURCE_server_init
253     nova_local_type_pcm2:
254       type: org.openecomp.resource.vfc.nodes.heat.pcm
255       properties:
256         flavor:
257           get_input: pcm_flavor_name
258         availability_zone:
259           get_input: availabilityzone_name
260         image:
261           get_input: pcm_image_name
262         config_drive: 'True'
263         user_data_format: RAW
264         name:
265           get_input: pcm_server_name
266         user_data: UNSUPPORTED_RESOURCE_server_init
267     nova_local_type_pcrf_psm:
268       type: org.openecomp.resource.vfc.nodes.heat.pcrf_psm
269       properties:
270         flavor:
271           get_input: pcm_flavor_name
272         availability_zone:
273           get_input: availabilityzone_name
274         image:
275           get_input: pcm_image_name
276         config_drive: 'True'
277         user_data_format: RAW
278         name:
279           get_input: pcm_server_name
280         user_data: UNSUPPORTED_RESOURCE_server_init
281     nova_global_type1:
282       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
283       properties:
284         flavor:
285           get_input: fsb1-flavor
286         availability_zone:
287           get_input: fsb_zone
288         name:
289           get_input: fsb1-name
290     nova_global_type2:
291       type: org.openecomp.resource.vfc.nodes.heat.nova.Server
292       properties:
293         flavor:
294           get_input: fsb1-flavor
295         availability_zone:
296           get_input: fsb_zone
297         metadata:
298           write_files:
299           - path: /etc/sysconfig/network-scripts/ifcfg-eth0
300             permissions: '0644'
301             content:
302               str_replace:
303                 template:
304                   get_artifact:
305                   - SELF
306                   - nimbus-ethernet
307                 params:
308                   $dev: eth0
309                   $netmask:
310                     get_input: cps_net_mask
311                   $ip:
312                     get_input: cps_net_ip
313           - path: /etc/sysconfig/network-scripts/ifcfg-eth1
314             permissions: '0644'
315             content:
316               str_replace:
317                 template:
318                   get_artifact:
319                   - SELF
320                   - nimbus-ethernet-gw
321                 params:
322                   $dev: eth1
323                   $netmask:
324                     get_input: oam_net_mask
325                   $gateway:
326                     get_input: oam_net_gw
327                   $ip:
328                     get_input: oam_net_ip
329         name:
330           get_input: fsb1-name
331       artifacts:
332         nimbus-ethernet-gw:
333           type: tosca.artifacts.Deployment
334           file: ../Artifacts/nimbus-ethernet-gw
335         nimbus-ethernet:
336           type: tosca.artifacts.Deployment
337           file: ../Artifacts/nimbus-ethernet
338   groups:
339     ep-jsa_net:
340       type: org.openecomp.groups.heat.HeatStack
341       properties:
342         heat_file: ../Artifacts/ep-jsa_net.yaml
343         description: |
344           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
345       members:
346       - nova_local_type_pcm1
347       - nova_local_type_pcm2
348       - nova_local_type_pcrf_psm
349       - nova_global_type1
350       - nova_global_type2