[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / reusenestedfrommultibase / 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     oam_net_ips:
12       label: OAM network ips
13       hidden: false
14       immutable: false
15       type: list
16       description: OAM network ips
17       entry_schema:
18         type: string
19     availabilityzone_name:
20       label: availabilityzone name
21       hidden: false
22       immutable: false
23       type: string
24       description: availabilityzone name
25     oam_net_gw:
26       label: CPS network gateway
27       hidden: false
28       immutable: false
29       type: string
30       description: CPS network gateway
31     pcm_server_names:
32       label: PCRF CM server names
33       hidden: false
34       immutable: false
35       type: list
36       description: name of the PCRF CM instance
37       entry_schema:
38         type: string
39     pcm_image_name:
40       label: PCRF CM image name
41       hidden: false
42       immutable: false
43       type: string
44       description: PCRF CM image name
45     cps_net_ips:
46       label: CPS network ips
47       hidden: false
48       immutable: false
49       type: list
50       description: CPS network ips
51       entry_schema:
52         type: string
53     security_group_name:
54       label: security group name
55       hidden: false
56       immutable: false
57       type: string
58       description: the name of security group
59     pcm_volumes:
60       label: CPS Cluman Cinder Volume
61       hidden: false
62       immutable: false
63       type: list
64       description: CPS Cluman Cinder Volume
65       entry_schema:
66         type: string
67     pcm_flavor_name:
68       label: PCRF CM flavor name
69       hidden: false
70       immutable: false
71       type: string
72       description: flavor name of PCRF CM instance
73     cps_net_name:
74       label: CPS network name
75       hidden: false
76       immutable: false
77       type: string
78       description: CPS network name
79     cps_net_mask:
80       label: CPS network mask
81       hidden: false
82       immutable: false
83       type: string
84       description: CPS network mask
85     oam_net_mask:
86       label: CPS network mask
87       hidden: false
88       immutable: false
89       type: string
90       description: CPS network mask
91     oam_net_name:
92       label: OAM network name
93       hidden: false
94       immutable: false
95       type: string
96       description: OAM network name
97   node_templates:
98     server_pcm_002:
99       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
100       directives:
101       - substitutable
102       properties:
103         pcm_flavor_name:
104           get_input: pcm_flavor_name
105         service_template_filter:
106           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
107         metadata:
108           get_attribute:
109           - server_pcm_001
110           - server_pcm_id
111         availabilityzone_name:
112           get_input: availabilityzone_name
113         pcm_image_name:
114           get_input: pcm_image_name
115         pcm_vol:
116           get_input:
117           - pcm_volumes
118           - 0
119         security_group_name:
120           get_input: security_group_name
121         pcm_server_name:
122           get_input:
123           - pcm_server_names
124           - 0
125     server_pcm_001:
126       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
127       directives:
128       - substitutable
129       properties:
130         service_template_filter:
131           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
132         availabilityzone_name:
133           get_input: availabilityzone_name
134         oam_net_gw:
135           get_input: oam_net_gw
136         user_data_format:
137           get_attribute:
138           - server_pcm_002
139           - pcm_vol
140         pcm_vol:
141           get_input:
142           - pcm_volumes
143           - 0
144         security_group_name:
145           get_input: security_group_name
146         cps_net_ip:
147           get_input:
148           - cps_net_ips
149           - 0
150         cps_net_name:
151           get_input: cps_net_name
152         cps_net_mask:
153           get_input: cps_net_mask
154         oam_net_ip:
155           get_input:
156           - oam_net_ips
157           - 0
158         oam_net_mask:
159           get_input: oam_net_mask
160         oam_net_name:
161           get_input: oam_net_name
162     packet_mirror_network:
163       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
164       properties:
165         network_name:
166           get_input: cps_net_name
167       requirements:
168       - dependency:
169           capability: tosca.capabilities.Node
170           node: server_pcm_001
171           relationship: tosca.relationships.DependsOn
172     server_pcm_003:
173       type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
174       directives:
175       - substitutable
176       properties:
177         service_template_filter:
178           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
179         availabilityzone_name:
180           get_input: availabilityzone_name
181         pcm_vol:
182           get_input:
183           - pcm_volumes
184           - 0
185         security_group_name:
186           get_input: security_group_name
187         cps_net_ip:
188           get_input:
189           - cps_net_ips
190           - 0
191         cps_net_name:
192           get_input: cps_net_name
193         cps_net_mask:
194           get_input: cps_net_mask
195   groups:
196     hot-nimbus-pcm_v0.4_group:
197       type: org.openecomp.groups.heat.HeatStack
198       properties:
199         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
200         description: heat template that creates PCRF Cluman stack
201       members:
202       - server_pcm_002
203       - server_pcm_001
204       - packet_mirror_network
205     hot-nimbus-pcm_v0.4_2_group:
206       type: org.openecomp.groups.heat.HeatStack
207       properties:
208         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4_2.yaml
209         description: heat template that creates PCRF Cluman stack
210       members:
211       - server_pcm_003
212   outputs:
213     output_attr_1:
214       value:
215         get_attribute:
216         - server_pcm_001
217         - pcm_vol
218     output_attr_2:
219       value:
220         get_attribute:
221         - server_pcm_002
222         - oam_net_ip