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