[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 / pattern4 / twoNestedWithOneCompute / out / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 node_types:
40   org.openecomp.resource.vfc.nodes.heat.compute:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     oam_net_ips:
45       label: OAM network ips
46       hidden: false
47       immutable: false
48       type: list
49       description: OAM network ips
50       default:
51       - 107.239.64.121
52       entry_schema:
53         type: string
54     availabilityzone_name:
55       label: availabilityzone name
56       hidden: false
57       immutable: false
58       type: string
59       description: availabilityzone name
60       default: nova
61     oam_net_gw:
62       label: CPS network gateway
63       hidden: false
64       immutable: false
65       type: string
66       description: CPS network gateway
67       default: 107.239.64.1
68     pcm_server_names:
69       label: PCRF CM server names
70       hidden: false
71       immutable: false
72       type: list
73       description: name of the PCRF CM instance
74       default:
75       - ZRDM1PCRF01PCM001
76       entry_schema:
77         type: string
78     pcm_image_name:
79       label: PCRF CM image name
80       hidden: false
81       immutable: false
82       type: string
83       description: PCRF CM image name
84       default: rhel2
85     cps_net_ips:
86       label: CPS network ips
87       hidden: false
88       immutable: false
89       type: list
90       description: CPS network ips
91       default:
92       - 172.26.16.113
93       entry_schema:
94         type: string
95     oam_flavor_name:
96       label: PCRF CM flavor name
97       hidden: false
98       immutable: false
99       type: string
100       description: flavor name of PCRF CM instance
101       default: cps
102     security_group_name:
103       label: security group name
104       hidden: false
105       immutable: false
106       type: string
107       description: the name of security group
108       default: nimbus_security_group
109     pcm_volumes:
110       label: CPS Cluman Cinder Volume
111       hidden: false
112       immutable: false
113       type: list
114       description: CPS Cluman Cinder Volume
115       default:
116       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
117       entry_schema:
118         type: string
119     compute_image_name:
120       hidden: false
121       immutable: false
122       type: string
123     pcm_flavor_name:
124       label: PCRF CM flavor name
125       hidden: false
126       immutable: false
127       type: string
128       description: flavor name of PCRF CM instance
129       default: cps
130     net_name:
131       hidden: false
132       immutable: false
133       type: string
134     oam_image_name:
135       label: PCRF CM image name
136       hidden: false
137       immutable: false
138       type: string
139       description: PCRF CM image name
140       default: rhel2
141     oam_server_names:
142       label: PCRF CM server names
143       hidden: false
144       immutable: false
145       type: list
146       description: name of the PCRF CM instance
147       default:
148       - ZRDM1PCRF01PCM001
149       entry_schema:
150         type: string
151     cps_net_name:
152       label: CPS network name
153       hidden: false
154       immutable: false
155       type: string
156       description: CPS network name
157       default: int_pcrf_net_0
158     cps_net_mask:
159       label: CPS network mask
160       hidden: false
161       immutable: false
162       type: string
163       description: CPS network mask
164       default: 255.255.255.0
165     oam_net_mask:
166       label: CPS network mask
167       hidden: false
168       immutable: false
169       type: string
170       description: CPS network mask
171       default: 255.255.255.0
172     oam_net_name:
173       label: OAM network name
174       hidden: false
175       immutable: false
176       type: string
177       description: OAM network name
178       default: oam_protected_net_0
179   node_templates:
180     pcm_server:
181       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
182       directives:
183       - substitutable
184       properties:
185         availabilityzone_name:
186           get_input: availabilityzone_name
187         oam_net_gw:
188           get_input: oam_net_gw
189         pcm_image_name:
190           get_input: pcm_image_name
191         security_group_name:
192           get_input: security_group_name
193         cps_net_ip:
194           get_input:
195           - cps_net_ips
196           - 0
197         pcm_flavor_name:
198           get_input: pcm_flavor_name
199         service_template_filter:
200           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
201         pcm_vol:
202           get_input:
203           - pcm_volumes
204           - 0
205         pcm_server_name:
206           get_input:
207           - pcm_server_names
208           - 0
209         cps_net_name:
210           get_input: cps_net_name
211         cps_net_mask:
212           get_input: cps_net_mask
213         oam_net_ip:
214           get_input:
215           - oam_net_ips
216           - 0
217         oam_net_mask:
218           get_input: oam_net_mask
219         oam_net_name:
220           get_input: oam_net_name
221     compute_port_0:
222       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
223       properties:
224         network:
225           get_input: net_name
226     abstract_compute:
227       type: org.openecomp.resource.abstract.nodes.compute
228       directives:
229       - substitutable
230       properties:
231         compute_compute_user_data_format:
232         - get_attribute:
233           - server_pcm_001
234           - oam_net_gw
235         vm_image_name:
236           get_input: compute_image_name
237         compute_compute_name:
238         - compute_name: null
239         vm_flavor_name:
240           compute_flavor_name: null
241         compute_compute_config_drive:
242         - get_attribute:
243           - compute_port_0
244           - tenant_id
245           - port_security_enabled
246           - device_id
247           - qos_policy
248           - allowed_address_pairs
249           - show
250           - device_owner
251           - network
252           - security_groups
253           - fixed_ips
254           - mac_address
255           - admin_state_up
256           - name
257           - subnets
258           - status
259         service_template_filter:
260           substitute_service_template: Nested_computeServiceTemplate.yaml
261           count: 1
262         index_value:
263           get_property:
264           - SELF
265           - service_template_filter
266           - index_value
267     oam_server:
268       type: org.openecomp.resource.abstract.nodes.heat.oam_server
269       directives:
270       - substitutable
271       properties:
272         availabilityzone_name:
273           get_input: availabilityzone_name
274         oam_net_gw:
275           get_input: oam_net_gw
276         oam_flavor_name:
277           get_input: oam_flavor_name
278         security_group_name:
279           get_input: security_group_name
280         cps_net_ip:
281           get_input:
282           - cps_net_ips
283           - 0
284         oam_server_name:
285           get_input:
286           - oam_server_names
287           - 0
288         service_template_filter:
289           substitute_service_template: nested-oam_v0.1ServiceTemplate.yaml
290         pcm_vol:
291           get_input:
292           - pcm_volumes
293           - 0
294         oam_image_name:
295           get_input: oam_image_name
296         cps_net_name:
297           get_input: cps_net_name
298         cps_net_mask:
299           get_input: cps_net_mask
300         oam_net_ip:
301           get_input:
302           - oam_net_ips
303           - 0
304         oam_net_mask:
305           get_input: oam_net_mask
306         oam_net_name:
307           get_input: oam_net_name
308   groups:
309     hot-nimbus-pcm_v0.4_group:
310       type: org.openecomp.groups.heat.HeatStack
311       properties:
312         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
313         description: heat template that creates PCRF Cluman stack
314       members:
315       - server_oam_001
316       - server_pcm_001
317       - compute_port_0
318       - abstract_compute