[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 / getAttr / getAttrUC / expectedoutputfiles / 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.FSB2:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10   org.openecomp.resource.vfc.nodes.heat.FSB1:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     Internal2_name:
15       label: Internal2_name
16       hidden: false
17       immutable: false
18       type: string
19       description: Internal2_name
20     FSB1_volume_name:
21       label: FSB1_volume
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB1_volume_1
26     jsa_cidr:
27       label: jsa_cidr
28       hidden: false
29       immutable: false
30       type: string
31       description: jsa_cidr
32     availabilityzone_name:
33       label: availabilityzone_name
34       hidden: false
35       immutable: false
36       type: string
37       description: availabilityzone_name
38     Internal2_external:
39       label: Internal2_external
40       hidden: false
41       immutable: false
42       type: string
43       description: Internal2_external
44     vipr_atm_name_0:
45       hidden: false
46       immutable: false
47       type: string
48       description: prop
49     Internal2_forwarding_mode:
50       label: Internal2_forwarding_mode
51       hidden: false
52       immutable: false
53       type: string
54       description: Internal2_forwarding_mode
55     pcrf_vnf_id:
56       hidden: false
57       immutable: false
58       type: string
59       description: prop
60     FSB_1_image:
61       label: MME_FSB1
62       hidden: false
63       immutable: false
64       type: string
65       description: MME_FSB1_15B-CP04-r5a01
66     fsb1-Internal1-mac:
67       label: FSB1_internal_mac
68       hidden: false
69       immutable: false
70       type: string
71       description: FSB1_internal_mac
72     pcm_server_name:
73       label: pcm_server_name
74       hidden: false
75       immutable: false
76       type: string
77       description: pcm_server_name
78     oam_net_name:
79       label: oam_net_name
80       hidden: false
81       immutable: false
82       type: string
83       description: oam_net_name
84     fsb1-Internal2-mac:
85       label: FSB1_internal_mac
86       hidden: false
87       immutable: false
88       type: string
89       description: FSB1_internal_mac
90     fsb_zone:
91       label: FSB1_zone
92       hidden: false
93       immutable: false
94       type: string
95       description: FSB1_zone
96     oam_net_gw:
97       hidden: false
98       immutable: false
99       type: string
100       description: prop
101     VMME_FSB1_boot_volume:
102       hidden: false
103       immutable: false
104       type: string
105     network_name:
106       hidden: false
107       immutable: false
108       type: string
109       description: prop
110     cps_net_ip:
111       hidden: false
112       immutable: false
113       type: string
114       description: prop
115     pcrf_psm_server_name:
116       label: pcrf_psm_server_name
117       hidden: false
118       immutable: false
119       type: string
120       description: pcrf_psm_server_name
121     pcm_flavor_name:
122       label: pcm_flavor_name
123       hidden: false
124       immutable: false
125       type: string
126       description: pcm_flavor_name
127     pcrf_cps_net_ip:
128       hidden: false
129       immutable: false
130       type: string
131       description: prop
132     fsb2-Internal1-mac:
133       label: FSB1_internal_mac
134       hidden: false
135       immutable: false
136       type: string
137       description: FSB1_internal_mac
138     pcrf_cps_net_name:
139       label: pcrf_cps_net_name
140       hidden: false
141       immutable: false
142       type: string
143       description: pcrf_cps_net_name
144     pcm_vol:
145       hidden: false
146       immutable: false
147       type: string
148       description: prop
149     Internal1_external:
150       label: Internal1_external
151       hidden: false
152       immutable: false
153       type: string
154       description: Internal1_external
155     Internal1_shared:
156       label: Internal1_shared
157       hidden: false
158       immutable: false
159       type: string
160       description: Internal1_shared
161     fsb1-name:
162       label: FSB1_name
163       hidden: false
164       immutable: false
165       type: string
166       description: FSB1_name
167     pcm_image_name:
168       label: pcm_image_name
169       hidden: false
170       immutable: false
171       type: string
172       description: pcm_image_name
173     pcrf_psm_flavor_name:
174       label: pcrf_psm_flavor_name
175       hidden: false
176       immutable: false
177       type: string
178       description: pcrf_psm_flavor_name
179     pcrf_psm_image_name:
180       label: pcrf_psm_image_name
181       hidden: false
182       immutable: false
183       type: string
184       description: pcrf_psm_image_name
185     snapshot01:
186       hidden: false
187       immutable: false
188       type: string
189       description: prop
190     volume_size:
191       label: volume size
192       hidden: false
193       immutable: false
194       type: float
195       description: my volume size 320GB
196     snapshot02:
197       hidden: false
198       immutable: false
199       type: string
200       description: prop
201     Internal2_shared:
202       label: Internal2_shared
203       hidden: false
204       immutable: false
205       type: string
206       description: Internal2_shared
207     cps_net_mask:
208       hidden: false
209       immutable: false
210       type: string
211       description: prop
212     Internal1_net_name:
213       label: Internal1_net_name
214       hidden: false
215       immutable: false
216       type: string
217       description: Internal1_net_name
218     fsb1-flavor:
219       label: FSB1_flavor
220       hidden: false
221       immutable: false
222       type: string
223       description: FSB1_flavor
224     pcm_vol_01:
225       hidden: false
226       immutable: false
227       type: string
228       description: prop
229     volume_type:
230       label: volume type
231       hidden: false
232       immutable: false
233       type: string
234       description: volume type Gold
235     fsb1-zone:
236       label: FSB1_zone
237       hidden: false
238       immutable: false
239       type: string
240       description: FSB1_zone
241     security_group_name:
242       hidden: false
243       immutable: false
244       type: list
245       description: CMAUI1, CMAUI2 server names
246       entry_schema:
247         type: string
248     jsa_net_name:
249       label: jsa_net_name
250       hidden: false
251       immutable: false
252       type: string
253       description: jsa_net_name
254     port_name:
255       hidden: false
256       immutable: false
257       type: string
258       description: prop
259     oam_net_id:
260       label: oam_net_id
261       hidden: false
262       immutable: false
263       type: string
264       description: oam_net_id
265     Internal1_forwarding_mode:
266       label: Internal1_forwarding_mode
267       hidden: false
268       immutable: false
269       type: string
270       description: Internal1_forwarding_mode
271     cps_net_name:
272       label: cps_net_name
273       hidden: false
274       immutable: false
275       type: string
276       description: cps_net_name
277     oam_net_ip:
278       hidden: false
279       immutable: false
280       type: string
281       description: prop
282     oam_net_mask:
283       hidden: false
284       immutable: false
285       type: string
286       description: prop
287     fsb1-oam-ip:
288       hidden: false
289       immutable: false
290       type: string
291       description: prop
292     pcrf_security_group_name:
293       hidden: false
294       immutable: false
295       type: list
296       description: CMAUI1, CMAUI2 server names
297       entry_schema:
298         type: string
299   node_templates:
300     VMI1:
301       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
302       properties:
303         name:
304           str_replace:
305             template: VM_NAME_PORT_3
306             params:
307               VM_NAME:
308                 get_input: vipr_atm_name_0
309         virtual_network_refs:
310         - get_input: network_name
311         virtual_machine_interface_properties:
312           service_interface_type: left
313         port_tuple_refs:
314         - get_input: port_name
315     FSB2:
316       type: org.openecomp.resource.vfc.nodes.heat.FSB2
317       properties:
318         flavor:
319           get_input: fsb1-flavor
320         availability_zone:
321           get_input: fsb_zone
322         name:
323           get_attribute:
324           - VMI1
325           - virtual_machine_interface_allowed_address_pairs
326           - allowed_address_pair
327           - ip
328           - ip_prefix
329     FSB1:
330       type: org.openecomp.resource.vfc.nodes.heat.FSB1
331       properties:
332         flavor:
333           get_input: fsb1-flavor
334         availability_zone:
335           get_input: fsb_zone
336         name:
337           get_attribute:
338           - VMI1
339           - name
340   groups:
341     ep-jsa_net_group:
342       type: org.openecomp.groups.heat.HeatStack
343       properties:
344         heat_file: ../Artifacts/ep-jsa_net.yaml
345         description: |
346           Version 2.0 02-09-2016 (Authors: Paul Phillips, pp2854 PROD)
347       members:
348       - VMI1
349       - FSB2
350       - FSB1