[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / creSubstitutionServiceTemplate / NoPorts / in / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.FSB1:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     Internal2_name:
13       label: Internal2_name
14       hidden: false
15       immutable: false
16       type: string
17       description: Internal2_name
18     Internal1_shared:
19       label: Internal1_shared
20       hidden: false
21       immutable: false
22       type: string
23       description: Internal1_shared
24     FSB1_volume_name:
25       label: FSB1_volume
26       hidden: false
27       immutable: false
28       type: string
29       description: FSB1_volume_1
30     jsa_cidr:
31       label: jsa_cidr
32       hidden: false
33       immutable: false
34       type: string
35       description: jsa_cidr
36       default: 107.243.7.128/26
37     availabilityzone_name:
38       label: availabilityzone_name
39       hidden: false
40       immutable: false
41       type: string
42       description: availabilityzone_name
43     fsb1-name:
44       label: FSB1_name
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_name
49     pcm_image_name:
50       label: pcm_image_name
51       hidden: false
52       immutable: false
53       type: string
54       description: pcm_image_name
55     Internal2_external:
56       label: Internal2_external
57       hidden: false
58       immutable: false
59       type: string
60       description: Internal2_external
61     Internal2_forwarding_mode:
62       label: Internal2_forwarding_mode
63       hidden: false
64       immutable: false
65       type: string
66       description: Internal2_forwarding_mode
67     pcrf_psm_flavor_name:
68       label: pcrf_psm_flavor_name
69       hidden: false
70       immutable: false
71       type: string
72       description: pcrf_psm_flavor_name
73     pcrf_psm_image_name:
74       label: pcrf_psm_image_name
75       hidden: false
76       immutable: false
77       type: string
78       description: pcrf_psm_image_name
79     pcrf_vnf_id:
80       hidden: false
81       immutable: false
82       type: string
83       description: prop
84     FSB_1_image:
85       label: MME_FSB1
86       hidden: false
87       immutable: false
88       type: string
89       description: MME_FSB1_15B-CP04-r5a01
90     snapshot01:
91       hidden: false
92       immutable: false
93       type: string
94       description: prop
95     volume_size:
96       label: volume size
97       hidden: false
98       immutable: false
99       type: float
100       description: my volume size 320GB
101     snapshot02:
102       hidden: false
103       immutable: false
104       type: string
105       description: prop
106     fsb1-Internal1-mac:
107       label: FSB1_internal_mac
108       hidden: false
109       immutable: false
110       type: string
111       description: FSB1_internal_mac
112     Internal2_shared:
113       label: Internal2_shared
114       hidden: false
115       immutable: false
116       type: string
117       description: Internal2_shared
118     pcm_server_name:
119       label: pcm_server_name
120       hidden: false
121       immutable: false
122       type: string
123       description: pcm_server_name
124     cps_net_mask:
125       hidden: false
126       immutable: false
127       type: string
128       description: prop
129     Internal1_net_name:
130       label: Internal1_net_name
131       hidden: false
132       immutable: false
133       type: string
134       description: Internal1_net_name
135     oam_net_name:
136       label: oam_net_name
137       hidden: false
138       immutable: false
139       type: string
140       description: oam_net_name
141     fsb1-flavor:
142       label: FSB1_flavor
143       hidden: false
144       immutable: false
145       type: string
146       description: FSB1_flavor
147     fsb1-Internal2-mac:
148       label: FSB1_internal_mac
149       hidden: false
150       immutable: false
151       type: string
152       description: FSB1_internal_mac
153     pcm_vol_01:
154       hidden: false
155       immutable: false
156       type: string
157       description: prop
158     volume_type:
159       label: volume type
160       hidden: false
161       immutable: false
162       type: string
163       description: volume type Gold
164     fsb1-zone:
165       label: FSB1_zone
166       hidden: false
167       immutable: false
168       type: string
169       description: FSB1_zone
170     fsb_zone:
171       label: FSB1_zone
172       hidden: false
173       immutable: false
174       type: string
175       description: FSB1_zone
176     oam_net_gw:
177       hidden: false
178       immutable: false
179       type: string
180       description: prop
181     VMME_FSB1_boot_volume:
182       hidden: false
183       immutable: false
184       type: string
185     network_name:
186       hidden: false
187       immutable: false
188       type: string
189       description: prop
190     security_group_name:
191       hidden: false
192       immutable: false
193       type: list
194       description: CMAUI1, CMAUI2 server names
195       entry_schema:
196         type: string
197     cps_net_ip:
198       hidden: false
199       immutable: false
200       type: string
201       description: prop
202     jsa_net_name:
203       label: jsa_net_name
204       hidden: false
205       immutable: false
206       type: string
207       description: jsa_net_name
208       default: jsa_log_net_0
209     pcrf_psm_server_name:
210       label: pcrf_psm_server_name
211       hidden: false
212       immutable: false
213       type: string
214       description: pcrf_psm_server_name
215     pcm_flavor_name:
216       label: pcm_flavor_name
217       hidden: false
218       immutable: false
219       type: string
220       description: pcm_flavor_name
221     oam_net_id:
222       label: oam_net_id
223       hidden: false
224       immutable: false
225       type: string
226       description: oam_net_id
227     pcrf_cps_net_ip:
228       hidden: false
229       immutable: false
230       type: string
231       description: prop
232     fsb2-Internal1-mac:
233       label: FSB1_internal_mac
234       hidden: false
235       immutable: false
236       type: string
237       description: FSB1_internal_mac
238     Internal1_forwarding_mode:
239       label: Internal1_forwarding_mode
240       hidden: false
241       immutable: false
242       type: string
243       description: Internal1_forwarding_mode
244     pcrf_cps_net_name:
245       label: pcrf_cps_net_name
246       hidden: false
247       immutable: false
248       type: string
249       description: pcrf_cps_net_name
250     pcm_vol:
251       hidden: false
252       immutable: false
253       type: string
254       description: prop
255     cps_net_name:
256       label: cps_net_name
257       hidden: false
258       immutable: false
259       type: string
260       description: cps_net_name
261     oam_net_ip:
262       hidden: false
263       immutable: false
264       type: string
265       description: prop
266     oam_net_mask:
267       hidden: false
268       immutable: false
269       type: string
270       description: prop
271     fsb1-oam-ip:
272       hidden: false
273       immutable: false
274       type: string
275       description: prop
276     pcrf_security_group_name:
277       hidden: false
278       immutable: false
279       type: list
280       description: CMAUI1, CMAUI2 server names
281       entry_schema:
282         type: string
283     Internal1_external:
284       label: Internal1_external
285       hidden: false
286       immutable: false
287       type: string
288       description: Internal1_external
289   node_templates:
290     FSB1_template:
291       type: org.openecomp.resource.vfc.nodes.heat.FSB1
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_group:
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       - FSB1_template