[sdc] - latest code changes
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / fulltest / nestedSingleCompute / nestedWithOneComputeDiffPortType / out / 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       default:
18       - 107.239.64.121
19       entry_schema:
20         type: string
21     availabilityzone_name:
22       label: availabilityzone name
23       hidden: false
24       immutable: false
25       type: string
26       description: availabilityzone name
27       default: nova
28     oam_net_gw:
29       label: CPS network gateway
30       hidden: false
31       immutable: false
32       type: string
33       description: CPS network gateway
34       default: 107.239.64.1
35     pcm_server_names:
36       label: PCRF CM server names
37       hidden: false
38       immutable: false
39       type: list
40       description: name of the PCRF CM instance
41       default:
42       - ZRDM1PCRF01PCM001
43       entry_schema:
44         type: string
45     pcm_image_name:
46       label: PCRF CM image name
47       hidden: false
48       immutable: false
49       type: string
50       description: PCRF CM image name
51       default: rhel2
52     cps_net_ips:
53       label: CPS network ips
54       hidden: false
55       immutable: false
56       type: list
57       description: CPS network ips
58       default:
59       - 172.26.16.113
60       entry_schema:
61         type: string
62     security_group_name:
63       label: security group name
64       hidden: false
65       immutable: false
66       type: string
67       description: the name of security group
68       default: nimbus_security_group
69     pcm_volumes:
70       label: CPS Cluman Cinder Volume
71       hidden: false
72       immutable: false
73       type: list
74       description: CPS Cluman Cinder Volume
75       default:
76       - 249cb355-8fdf-4382-9c3c-a2ebe767d45b
77       entry_schema:
78         type: string
79     compute_image_name:
80       hidden: false
81       immutable: false
82       type: string
83     pcm_flavor_name:
84       label: PCRF CM flavor name
85       hidden: false
86       immutable: false
87       type: string
88       description: flavor name of PCRF CM instance
89       default: cps
90     net_name:
91       hidden: false
92       immutable: false
93       type: string
94     cps_net_name:
95       label: CPS network name
96       hidden: false
97       immutable: false
98       type: string
99       description: CPS network name
100       default: int_pcrf_net_0
101     cps_net_mask:
102       label: CPS network mask
103       hidden: false
104       immutable: false
105       type: string
106       description: CPS network mask
107       default: 255.255.255.0
108     oam_net_mask:
109       label: CPS network mask
110       hidden: false
111       immutable: false
112       type: string
113       description: CPS network mask
114       default: 255.255.255.0
115     oam_net_name:
116       label: OAM network name
117       hidden: false
118       immutable: false
119       type: string
120       description: OAM network name
121       default: oam_protected_net_0
122   node_templates:
123     abstract_pcm_server_0:
124       type: org.openecomp.resource.abstract.nodes.heat.pcm_server
125       directives:
126       - substitutable
127       properties:
128         port_pcm_1port_0_mac_requirements:
129           mac_count_required:
130             is_required: false
131         port_pcm_1port_0_ip_requirements:
132         - ip_version: 4
133           ip_count_required:
134             is_required: true
135           floating_ip_count_required:
136             is_required: false
137         availabilityzone_name:
138           get_input: availabilityzone_name
139         port_pcm_1port_0_network_role_tag: cps
140         oam_net_gw:
141           get_input: oam_net_gw
142         pcm_image_name:
143           get_input: pcm_image_name
144         port_pcm_2port_1_network_role_tag: oam
145         security_group_name:
146           get_input: security_group_name
147         cps_net_ip:
148           get_input:
149           - cps_net_ips
150           - 0
151         port_pcm_2port_1_mac_requirements:
152           mac_count_required:
153             is_required: false
154         port_pcm_2port_1_ip_requirements:
155         - ip_version: 4
156           ip_count_required:
157             is_required: true
158           floating_ip_count_required:
159             is_required: false
160         pcm_flavor_name:
161           get_input: pcm_flavor_name
162         service_template_filter:
163           substitute_service_template: nested-pcm_v0.1ServiceTemplate.yaml
164         pcm_vol:
165           get_input:
166           - pcm_volumes
167           - 0
168         pcm_server_name:
169           get_input:
170           - pcm_server_names
171           - 0
172         cps_net_name:
173           get_input: cps_net_name
174         cps_net_mask:
175           get_input: cps_net_mask
176         oam_net_ip:
177           get_input:
178           - oam_net_ips
179           - 0
180         oam_net_mask:
181           get_input: oam_net_mask
182         oam_net_name:
183           get_input: oam_net_name
184     packet_mirror_network:
185       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
186       properties:
187         network_name:
188           get_input: net_name
189       requirements:
190       - dependency:
191           capability: tosca.capabilities.Node
192           node: abstract_pcm_server_0
193           relationship: tosca.relationships.DependsOn
194     compute_port_0:
195       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
196       properties:
197         ip_requirements:
198         - ip_version: 4
199           ip_count_required:
200             is_required: false
201           floating_ip_count_required:
202             is_required: false
203         mac_requirements:
204           mac_count_required:
205             is_required: false
206         network:
207           get_input: net_name
208     abstract_compute:
209       type: org.openecomp.resource.abstract.nodes.compute
210       directives:
211       - substitutable
212       properties:
213         compute_compute_user_data_format:
214         - get_attribute:
215           - abstract_pcm_server_0
216           - oam_net_gw
217         vm_image_name:
218           get_input: compute_image_name
219         compute_compute_metadata:
220         - get_attribute:
221           - abstract_pcm_server_0
222           - server_pcm_id
223         compute_compute_name:
224         - compute_name: null
225         vm_flavor_name:
226           compute_flavor_name: null
227         compute_compute_config_drive:
228         - get_attribute:
229           - compute_port_0
230           - tenant_id
231           - port_security_enabled
232           - device_id
233           - qos_policy
234           - allowed_address_pairs
235           - show
236           - device_owner
237           - network
238           - security_groups
239           - fixed_ips
240           - mac_address
241           - admin_state_up
242           - name
243           - subnets
244           - status
245         service_template_filter:
246           substitute_service_template: Nested_computeServiceTemplate.yaml
247           count: 1
248         index_value:
249           get_property:
250           - SELF
251           - service_template_filter
252           - index_value
253   groups:
254     hot-nimbus-pcm_v0.4_group:
255       type: org.openecomp.groups.heat.HeatStack
256       properties:
257         heat_file: ../Artifacts/hot-nimbus-pcm_v0.4.yaml
258         description: heat template that creates PCRF Cluman stack
259       members:
260       - packet_mirror_network
261       - compute_port_0
262       - abstract_compute
263       - abstract_pcm_server_0