push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / multi / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 topology_template:
34   inputs:
35     oam_net_ips:
36       label: OAM network ips
37       hidden: false
38       immutable: false
39       type: list
40       description: OAM network ips
41       entry_schema:
42         type: string
43     availabilityzone_name:
44       label: availabilityzone name
45       hidden: false
46       immutable: false
47       type: string
48       description: availabilityzone name
49     oam_net_gw:
50       label: CPS network gateway
51       hidden: false
52       immutable: false
53       type: string
54       description: CPS network gateway
55     pcm_server_names:
56       label: PCRF CM server names
57       hidden: false
58       immutable: false
59       type: list
60       description: name of the PCRF CM instance
61       entry_schema:
62         type: string
63     pcm_image_name:
64       label: PCRF CM image name
65       hidden: false
66       immutable: false
67       type: string
68       description: PCRF CM image name
69     cps_net_ips:
70       label: CPS network ips
71       hidden: false
72       immutable: false
73       type: list
74       description: CPS network ips
75       entry_schema:
76         type: string
77     security_group_name:
78       label: security group name
79       hidden: false
80       immutable: false
81       type: string
82       description: the name of security group
83     pcm_volumes:
84       label: CPS Cluman Cinder Volume
85       hidden: false
86       immutable: false
87       type: list
88       description: CPS Cluman Cinder Volume
89       entry_schema:
90         type: string
91     pcm_flavor_name:
92       label: PCRF CM flavor name
93       hidden: false
94       immutable: false
95       type: string
96       description: flavor name of PCRF CM instance
97     cps_net_name:
98       label: CPS network name
99       hidden: false
100       immutable: false
101       type: string
102       description: CPS network name
103     cps_net_mask:
104       label: CPS network mask
105       hidden: false
106       immutable: false
107       type: string
108       description: CPS network mask
109     oam_net_mask:
110       label: CPS network mask
111       hidden: false
112       immutable: false
113       type: string
114       description: CPS network mask
115     oam_net_name:
116       label: OAM network name
117       hidden: false
118       immutable: false
119       type: string
120       description: OAM network name
121   node_templates:
122     server_pcm_002:
123       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
124       directives:
125       - substitutable
126       properties:
127         pcm_flavor_name:
128           get_input: pcm_flavor_name
129         service_template_filter:
130           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
131         availabilityzone_name:
132           get_input: availabilityzone_name
133         pcm_image_name:
134           get_input: pcm_image_name
135         pcm_vol:
136           get_input:
137           - pcm_volumes
138           - 0
139         security_group_name:
140           get_input: security_group_name
141         pcm_server_name:
142           get_input:
143           - pcm_server_names
144           - 0
145     server_pcm_001:
146       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
147       directives:
148       - substitutable
149       properties:
150         service_template_filter:
151           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
152         availabilityzone_name:
153           get_input: availabilityzone_name
154         oam_net_gw:
155           get_input: oam_net_gw
156         pcm_vol:
157           get_input:
158           - pcm_volumes
159           - 0
160         security_group_name:
161           get_input: security_group_name
162         cps_net_ip:
163           get_input:
164           - cps_net_ips
165           - 0
166         cps_net_name:
167           get_input: cps_net_name
168         cps_net_mask:
169           get_input: cps_net_mask
170         oam_net_ip:
171           get_input:
172           - oam_net_ips
173           - 0
174         oam_net_mask:
175           get_input: oam_net_mask
176         oam_net_name:
177           get_input: oam_net_name
178     server_pcm_004:
179       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1_2
180       directives:
181       - substitutable
182       properties:
183         service_template_filter:
184           substitute_service_template: nested-pcm_v0.1_2ServiceTemplate.yaml
185         availabilityzone_name:
186           get_input: availabilityzone_name
187         pcm_vol:
188           get_input:
189           - pcm_volumes
190           - 0
191         security_group_name:
192           get_input: security_group_name
193         cps_net_ip:
194           get_input:
195           - cps_net_ips
196           - 0
197         cps_net_name:
198           get_input: cps_net_name
199         cps_net_mask:
200           get_input: cps_net_mask
201     server_pcm_003:
202       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
203       directives:
204       - substitutable
205       properties:
206         service_template_filter:
207           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
208         availabilityzone_name:
209           get_input: availabilityzone_name
210         pcm_vol:
211           get_input:
212           - pcm_volumes
213           - 0
214         security_group_name:
215           get_input: security_group_name
216         cps_net_ip:
217           get_input:
218           - cps_net_ips
219           - 0
220         cps_net_name:
221           get_input: cps_net_name
222         cps_net_mask:
223           get_input: cps_net_mask
224   groups:
225     hot-nimbus-pcm_v0.4_2:
226       type: org.openecomp.groups.heat.HeatStack
227       properties:
228         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4_2.yaml
229         description: heat template that creates PCRF Cluman stack
230       members:
231       - server_pcm_004
232       - server_pcm_003
233     hot-nimbus-pcm_v0.4:
234       type: org.openecomp.groups.heat.HeatStack
235       properties:
236         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
237         description: heat template that creates PCRF Cluman stack
238       members:
239       - server_pcm_002
240       - server_pcm_001