84f83498f078c04e4dba3a9e0052862bf1a75a68
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updNodesGetAttrIn / noConsolidation / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.FSB1:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     fsb1-name:
13       label: FSB1_name
14       hidden: false
15       immutable: false
16       type: string
17       description: FSB1_name
18     fsb1-Internal1-mac:
19       label: FSB1_internal_mac
20       hidden: false
21       immutable: false
22       type: string
23       description: FSB1_internal_mac
24     cps_net_mask:
25       hidden: false
26       immutable: false
27       type: string
28       description: prop
29     fsb1-flavor:
30       label: FSB1_flavor
31       hidden: false
32       immutable: false
33       type: string
34       description: FSB1_flavor
35     fsb1-Internal2-mac:
36       label: FSB1_internal_mac
37       hidden: false
38       immutable: false
39       type: string
40       description: FSB1_internal_mac
41     volume_type:
42       label: volume type
43       hidden: false
44       immutable: false
45       type: string
46       description: volume type Gold
47     fsb_zone:
48       label: FSB1_zone
49       hidden: false
50       immutable: false
51       type: string
52       description: FSB1_zone
53     oam_net_gw:
54       hidden: false
55       immutable: false
56       type: string
57       description: prop
58     network_name:
59       hidden: false
60       immutable: false
61       type: string
62       description: prop
63     cps_net_ip:
64       hidden: false
65       immutable: false
66       type: string
67       description: prop
68     jsa_net_name:
69       label: jsa_net_name
70       hidden: false
71       immutable: false
72       type: string
73       description: jsa_net_name
74       default: jsa_log_net_0
75     pcrf_psm_server_name:
76       label: pcrf_psm_server_name
77       hidden: false
78       immutable: false
79       type: string
80       description: pcrf_psm_server_name
81     pcm_flavor_name:
82       label: pcm_flavor_name
83       hidden: false
84       immutable: false
85       type: string
86       description: pcm_flavor_name
87     oam_net_id:
88       label: oam_net_id
89       hidden: false
90       immutable: false
91       type: string
92       description: oam_net_id
93     oam_net_ip:
94       hidden: false
95       immutable: false
96       type: string
97       description: prop
98     oam_net_mask:
99       hidden: false
100       immutable: false
101       type: string
102       description: prop
103     fsb1-oam-ip:
104       hidden: false
105       immutable: false
106       type: string
107       description: prop
108   node_templates:
109     FSB2_Internal2:
110       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
111       properties:
112         mac_address:
113           get_input: fsb1-Internal2-mac
114         network: Internal2-net
115       requirements:
116       - binding:
117           capability: tosca.capabilities.network.Bindable
118           node: FSB1_template
119           relationship: tosca.relationships.network.BindsTo
120     FSB1_Internal1:
121       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
122       properties:
123         mac_address:
124           get_attribute:
125           - FSB1_template
126           - mac
127         network: Internal1-net
128       requirements:
129       - binding:
130           capability: tosca.capabilities.network.Bindable
131           node: FSB1_template
132           relationship: tosca.relationships.network.BindsTo
133       - link:
134           capability: tosca.capabilities.network.Linkable
135           node: jsa_net1
136           relationship: tosca.relationships.network.LinksTo
137     FSB1_OAM:
138       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
139       properties:
140         fixed_ips:
141         - ip_address:
142             get_input: fsb1-oam-ip
143         network: jsa_net1
144       requirements:
145       - binding:
146           capability: tosca.capabilities.network.Bindable
147           node: FSB1_template
148           relationship: tosca.relationships.network.BindsTo
149       - link:
150           capability: tosca.capabilities.network.Linkable
151           node: jsa_net1
152           relationship: tosca.relationships.network.LinksTo
153     jsa_net1:
154       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
155       properties:
156         shared: true
157         network_name:
158           get_attribute:
159           - FSB1
160           - FSB1_FSB1_Internal_network_id
161         dhcp_agent_ids:
162           get_attribute:
163           - FSB1
164           - FSB1_addresses
165         tenant_id:
166           get_attribute:
167           - FSB1
168           - FSB1_FSB2_Internal_network_id
169         qos_policy:
170           get_attribute:
171           - FSB1
172           - FSB1_FSB2_Internal_network_id
173     FSB1_template:
174       type: org.openecomp.resource.vfc.nodes.heat.FSB1
175       properties:
176         flavor:
177           get_input: fsb1-flavor
178         availability_zone:
179           get_attribute:
180           - FSB1_Internal1
181           - myAttr
182           - get_attribute:
183             - FSB1_Internal1
184             - index
185         metadata:
186           get_attribute:
187           - FSB1_Internal1
188           - myAttr
189           - get_input: index
190         name:
191           get_attribute:
192           - FSB1_Internal1
193           - myAttr
194           - get_attribute:
195             - jsa_net1
196             - index
197       requirements:
198       - local_storage:
199           capability: tosca.capabilities.Attachment
200           node: cmaui_volume1
201           relationship: cmaui_volume_attachment
202       - local_storage:
203           capability: tosca.capabilities.Attachment
204           node: cmaui_volume2
205           relationship: cmaui_volume_attachment
206       artifacts:
207         nimbus-ethernet-gw:
208           type: tosca.artifacts.Deployment
209           file: ../Artifacts/nimbus-ethernet-gw
210         nimbus-ethernet:
211           type: tosca.artifacts.Deployment
212           file: ../Artifacts/nimbus-ethernet
213     cmaui_volume1:
214       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
215       properties:
216         volume_type:
217           get_attribute:
218           - FSB1
219           - FSB1_addresses
220           - get_attribute:
221             - FSB1
222             - FSB1_FSB2_Internal_index
223         size:
224           get_attribute:
225           - FSB1
226           - FSB1_FSB1_Internal_addresses
227           - get_input:
228             - CMAUI_volume_type
229             - get_attribute:
230               - FSB1
231               - FSB1_FSB_OAM_oam_index
232           - 0
233           - OS-EXT-IPS-MAC:mac_addr
234     cmaui_volume2:
235       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
236       properties:
237         volume_type:
238           get_input: CMAUI_volume_type
239         size:
240           get_input:
241           - a
242           - addresses
243           - get_input:
244             - CMAUI_volume_type
245             - get_attribute:
246               - FSB1
247               - FSB1_accessIPv6
248           - 0
249           - OS-EXT-IPS-MAC:mac_addr
250   groups:
251     ep-jsa_net_group:
252       type: org.openecomp.groups.heat.HeatStack
253       properties:
254         heat_file: ../Artifacts/ep-jsa_net.yaml
255         description: |
256           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
257       members:
258       - FSB2_Internal2
259       - FSB1_Internal1
260       - FSB1_OAM
261       - FSB1_template