[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 / heatPseudoParameters / usedFromMainHeat / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     vf_module_id:
12       hidden: false
13       immutable: false
14       type: string
15       description: VF Module ID
16       default: '888800008888'
17     cpm_mgt_gw_ip:
18       hidden: false
19       immutable: false
20       type: string
21       description: Default Gateway for the Management Interface, set during boot time
22       default: 192.168.254.1
23     mgt_net_id:
24       hidden: false
25       immutable: false
26       type: string
27       description: Network used by the Management interface
28       default: 1024b82c-0049-4503-8b0b-eb5ff952e101
29     ctrl_fabric_cidr:
30       hidden: false
31       immutable: false
32       type: string
33       description: CIDR of Control Fabric Network
34     data3_subnet_id:
35       hidden: false
36       immutable: false
37       type: string
38       description: Subnet used by the fourth Data interface
39       default: 90ad7ea9-596f-45f4-8869-226fc876b106
40     ctrl_fabric_net_id:
41       hidden: false
42       immutable: false
43       type: string
44       description: Network used by the control fabric interface
45       default: 1024b82c-0049-4503-8b0b-eb5ff952e102
46     data0_subnet_id:
47       hidden: false
48       immutable: false
49       type: string
50       description: Subnet used by the Data interface
51       default: 90ad7ea9-596f-45f4-8869-226fc876b103
52     cpmaSlot:
53       hidden: false
54       immutable: false
55       type: string
56       description: The slot value assigned to CPMA
57       default: A
58     OS::stack_id:
59       type: string
60       required: false
61     vnf_id:
62       hidden: false
63       immutable: false
64       type: string
65       description: VNF ID
66       default: '111100001111'
67     cpm_mgt_ip_1:
68       hidden: false
69       immutable: false
70       type: string
71       description: Fixed IP that will be used by the Management Interface on CPMB
72       default: 192.168.254.12
73     cpm_smbios:
74       hidden: false
75       immutable: false
76       type: string
77       description: Parameters to be passed to the CPM at boot up as key-value pairs
78       default: 'TiMOS: slot=$slt chassis=VSR card=cpm-v license-file=license.txt address=$adrp/24@active
79         address=$adrs/24@standby static-route=192.168.0.0/16@$oamGw persist=on features=795'
80     cpm_mgt_ip_0:
81       hidden: false
82       immutable: false
83       type: string
84       description: Fixed IP that will be used by the Management Interface on CPMA
85       default: 192.168.254.11
86     availability_zone_0:
87       hidden: false
88       immutable: false
89       type: string
90       description: Availability zone where this component should be instantiated
91       default: nova
92     cpm_name_1:
93       hidden: false
94       immutable: false
95       type: string
96       description: VM name for CPM B
97       default: vbng1-cpmb
98     OS::stack_name:
99       type: string
100       required: false
101     cpm_flavor_name:
102       hidden: false
103       immutable: false
104       type: string
105       description: Flavor of the CPM VNF to be used
106       default: m1.medium
107     data2_subnet_id:
108       hidden: false
109       immutable: false
110       type: string
111       description: Subnet used by the third Data interface
112       default: 90ad7ea9-596f-45f4-8869-226fc876b105
113     cpm_mtu:
114       hidden: false
115       immutable: false
116       type: string
117       description: MTU size in bytes
118       default: '9000'
119     cpm_name_0:
120       hidden: false
121       immutable: false
122       type: string
123       description: VM name for CPM A
124       default: vbng1-cpma
125     iom_image_name:
126       hidden: false
127       immutable: false
128       type: string
129       description: Image to be used for the IOM instance
130       default: VSR-14.0R4
131     iom1Slot:
132       hidden: false
133       immutable: false
134       type: string
135       description: The slot value assigned to IOM1
136       default: '1'
137     iom_flavor_name:
138       hidden: false
139       immutable: false
140       type: string
141       description: Flavor of the IOM VNF to be used
142       default: m1.medium
143     iom_name_0:
144       hidden: false
145       immutable: false
146       type: string
147       description: VM name for IOM 1
148       default: vbng1-iom1
149     data1_net_id:
150       hidden: false
151       immutable: false
152       type: string
153       description: Network used by the second Data interface
154       default: 1024b82c-0049-4503-8b0b-eb5ff952e104
155     cpm_mgt_cidr:
156       hidden: false
157       immutable: false
158       type: string
159       description: Management network to be used by CPM
160       default: 192.168.254.0/24
161     mgt_subnet_id:
162       hidden: false
163       immutable: false
164       type: string
165       description: Subnet used by the Management interface
166       default: 90ad7ea9-596f-45f4-8869-226fc876b101
167     ctrl_fabric_subnet_id:
168       hidden: false
169       immutable: false
170       type: string
171       description: Subnet used by the control fabric interface
172       default: 90ad7ea9-596f-45f4-8869-226fc876b102
173     data0_net_id:
174       hidden: false
175       immutable: false
176       type: string
177       description: Network used by the Data interface
178       default: 1024b82c-0049-4503-8b0b-eb5ff952e103
179     data2_net_id:
180       hidden: false
181       immutable: false
182       type: string
183       description: Network used by the third Data interface
184       default: 1024b82c-0049-4503-8b0b-eb5ff952e105
185     iom_mtu:
186       hidden: false
187       immutable: false
188       type: string
189       description: MTU size in bytes
190       default: '9000'
191     OS::project_id:
192       type: string
193       required: false
194     cpm_image_name:
195       hidden: false
196       immutable: false
197       type: string
198       description: Image to be used for the CPM instance
199       default: VSR-14.0R4
200     cpmbSlot:
201       hidden: false
202       immutable: false
203       type: string
204       description: The slot value assigned to CPMB
205       default: B
206     iom_smbios:
207       hidden: false
208       immutable: false
209       type: string
210       description: Parameters to be passed to the IOM at boot up as key-value pairs
211       default: 'TiMOS: slot=$slt chassis=VSR card=iom-v mda/1=m20-v features=795'
212     data3_net_id:
213       hidden: false
214       immutable: false
215       type: string
216       description: Network used by the fourth Data interface
217       default: 1024b82c-0049-4503-8b0b-eb5ff952e106
218     data1_subnet_id:
219       hidden: false
220       immutable: false
221       type: string
222       description: Subnet used by the second Data interface
223       default: 90ad7ea9-596f-45f4-8869-226fc876b104
224     stack_name:
225       hidden: false
226       immutable: false
227       type: string
228       description: Name of the HEAT stack
229       default:
230         type: string
231   node_templates:
232     IOM1:
233       type: org.openecomp.resource.abstract.nodes.heat.VSR_IOM_template_nested
234       directives:
235       - substitutable
236       properties:
237         vf_module_id:
238           get_input: vf_module_id
239         iom_image_name:
240           get_input: iom_image_name
241         mgt_net_id:
242           get_input: mgt_net_id
243         data3_subnet_id:
244           get_input: data3_subnet_id
245         ctrl_fabric_net_id:
246           get_input: ctrl_fabric_net_id
247         iom_flavor_name:
248           get_input: iom_flavor_name
249         security_group: sec_group
250         iom_slot:
251           get_input: iom1Slot
252         data0_subnet_id:
253           get_input: data0_subnet_id
254         data1_net_id:
255           get_input: data1_net_id
256         mgt_subnet_id:
257           get_input: mgt_subnet_id
258         service_template_filter:
259           substitute_service_template: VSR_IOM_template_nestedServiceTemplate.yaml
260         ctrl_fabric_subnet_id:
261           get_input: ctrl_fabric_subnet_id
262         data0_net_id:
263           get_input: data0_net_id
264         data2_net_id:
265           get_input: data2_net_id
266         iom_mtu:
267           get_input: iom_mtu
268         vnf_id:
269           get_input: vnf_id
270         availability_zone_0:
271           get_input: availability_zone_0
272         iom_smbios:
273           str_replace:
274             template:
275               get_input: iom_smbios
276             params:
277               $slt:
278                 get_input: iom1Slot
279         data2_subnet_id:
280           get_input: data2_subnet_id
281         data3_net_id:
282           get_input: data3_net_id
283         data1_subnet_id:
284           get_input: data1_subnet_id
285         stack_name:
286           get_input: OS::stack_name
287         vm_name:
288           get_input: iom_name_0
289     sec_group:
290       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
291       properties:
292         name: vsr_security_group
293         description: Security group for vSR
294         rules:
295         - protocol: tcp
296           remote_ip_prefix: 0.0.0.0/0
297           port_range_max: 22
298           port_range_min: 22
299         - protocol: icmp
300           remote_ip_prefix: 0.0.0.0/0
301           direction: ingress
302       requirements:
303       - port:
304           capability: attachment_cpm_mgt_0_port
305           node: CPMA
306           relationship: org.openecomp.relationships.AttachesTo
307       - port:
308           capability: attachment_cpm_ctrl_fabric_0_port
309           node: CPMA
310           relationship: org.openecomp.relationships.AttachesTo
311       - port:
312           capability: attachment_cpm_mgt_0_port
313           node: CPMB
314           relationship: org.openecomp.relationships.AttachesTo
315       - port:
316           capability: attachment_cpm_ctrl_fabric_0_port
317           node: CPMB
318           relationship: org.openecomp.relationships.AttachesTo
319       - port:
320           capability: attachment_iom_data_3_port
321           node: IOM1
322           relationship: org.openecomp.relationships.AttachesTo
323       - port:
324           capability: attachment_iom_data_2_port
325           node: IOM1
326           relationship: org.openecomp.relationships.AttachesTo
327       - port:
328           capability: attachment_iom_mgt_0_port
329           node: IOM1
330           relationship: org.openecomp.relationships.AttachesTo
331       - port:
332           capability: attachment_iom_ctrl_fabric_0_port
333           node: IOM1
334           relationship: org.openecomp.relationships.AttachesTo
335       - port:
336           capability: attachment_iom_data_0_port
337           node: IOM1
338           relationship: org.openecomp.relationships.AttachesTo
339       - port:
340           capability: attachment_iom_data_1_port
341           node: IOM1
342           relationship: org.openecomp.relationships.AttachesTo
343     CPMB:
344       type: org.openecomp.resource.abstract.nodes.heat.VSR_CPM_base_template_nested
345       directives:
346       - substitutable
347       properties:
348         vf_module_id:
349           get_input: vf_module_id
350         mgt_net_id:
351           get_input: mgt_net_id
352         cpm_mgt_ip:
353           get_input: cpm_mgt_ip_1
354         cpm_slot:
355           get_input: cpmbSlot
356         ctrl_fabric_net_id:
357           get_input: ctrl_fabric_net_id
358         security_group: sec_group
359         cpm_mgt_cidr:
360           get_input: cpm_mgt_cidr
361         mgt_subnet_id:
362           get_input: mgt_subnet_id
363         service_template_filter:
364           substitute_service_template: VSR_CPM_base_template_nestedServiceTemplate.yaml
365         ctrl_fabric_subnet_id:
366           get_input: ctrl_fabric_subnet_id
367         vnf_id:
368           get_input: vnf_id
369         cpm_smbios:
370           str_replace:
371             template:
372               get_input: cpm_smbios
373             params:
374               $adrs:
375                 get_input: cpm_mgt_ip_1
376               $slt:
377                 get_input: cpmbSlot
378               $adrp:
379                 get_input: cpm_mgt_ip_0
380               $oamGw:
381                 get_input: cpm_mgt_gw_ip
382         cpm_image_name:
383           get_input: cpm_image_name
384         availability_zone_0:
385           get_input: availability_zone_0
386         cpm_flavor_name:
387           get_input: cpm_flavor_name
388         cpm_mtu:
389           get_input: cpm_mtu
390         stack_name:
391           get_input: OS::stack_name
392         vm_name:
393           get_input: cpm_name_1
394     CPMA:
395       type: org.openecomp.resource.abstract.nodes.heat.VSR_CPM_base_template_nested
396       directives:
397       - substitutable
398       properties:
399         vf_module_id:
400           get_input: vf_module_id
401         mgt_net_id:
402           get_input: mgt_net_id
403         cpm_mgt_ip:
404           get_input: cpm_mgt_ip_0
405         cpm_slot:
406           get_input: cpmaSlot
407         ctrl_fabric_net_id:
408           get_input: ctrl_fabric_net_id
409         security_group: sec_group
410         cpm_mgt_cidr:
411           get_input: cpm_mgt_cidr
412         mgt_subnet_id:
413           get_input: mgt_subnet_id
414         service_template_filter:
415           substitute_service_template: VSR_CPM_base_template_nestedServiceTemplate.yaml
416         ctrl_fabric_subnet_id:
417           get_input: ctrl_fabric_subnet_id
418         vnf_id:
419           get_input: vnf_id
420         cpm_smbios:
421           str_replace:
422             template:
423               get_input: cpm_smbios
424             params:
425               $adrs:
426                 get_input: cpm_mgt_ip_1
427               $slt:
428                 get_input: cpmaSlot
429               $adrp:
430                 get_input: cpm_mgt_ip_0
431               $oamGw:
432                 get_input: cpm_mgt_gw_ip
433         stack_id:
434           get_input: OS::stack_id
435         cpm_image_name:
436           get_input: cpm_image_name
437         availability_zone_0:
438           get_input: availability_zone_0
439         cpm_flavor_name:
440           get_input: cpm_flavor_name
441         cpm_mtu:
442           get_input: cpm_mtu
443         stack_name:
444           get_input: OS::stack_name
445         vm_name:
446           get_input: cpm_name_0
447   groups:
448     VSR_base_hot_group:
449       type: org.openecomp.groups.heat.HeatStack
450       properties:
451         heat_file: ../Artifacts/VSR_base_hot.yaml
452       members:
453       - IOM1
454       - sec_group
455       - CPMB
456       - CPMA
457   outputs:
458     out1:
459       value:
460         get_input: OS::project_id