[sdc] - latest code changes
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updVolumes / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 node_types:
10   org.openecomp.resource.vfc.nodes.heat.FSB:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     fsb1-name:
15       label: FSB1_name
16       hidden: false
17       immutable: false
18       type: string
19       description: FSB1_name
20     fsb1-Internal1-mac:
21       label: FSB1_internal_mac
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB1_internal_mac
26     fsb-flavor:
27       label: FSB1_flavor
28       hidden: false
29       immutable: false
30       type: string
31       description: FSB1_flavor
32     fsb-image:
33       label: FSB1_image
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_image
38     fsb1-Internal2-mac:
39       label: FSB1_internal_mac
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_internal_mac
44     fsb1_zone:
45       label: FSB1_zone
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_zone
50     network_name:
51       hidden: false
52       immutable: false
53       type: string
54       description: prop
55     fsb1-oam-ip:
56       hidden: false
57       immutable: false
58       type: string
59       description: prop
60     CMAUI_volume_type:
61       hidden: false
62       immutable: false
63       type: string
64       description: prop
65     cmaui_cinder_volume_size:
66       hidden: false
67       immutable: false
68       type: string
69       description: prop
70     packet_mirror_network_name:
71       hidden: false
72       immutable: false
73       type: string
74       description: prop
75   node_templates:
76     FSB2_Internal2:
77       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
78       properties:
79         mac_address:
80           get_input: fsb1-Internal2-mac
81         network: Internal2-net
82       requirements:
83       - binding:
84           capability: tosca.capabilities.network.Bindable
85           node: FSB1_template
86           relationship: tosca.relationships.network.BindsTo
87     FSB1_Internal1:
88       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
89       properties:
90         mac_address:
91           get_input: fsb1-Internal1-mac
92         network: Internal1-net
93       requirements:
94       - binding:
95           capability: tosca.capabilities.network.Bindable
96           node: FSB1_template
97           relationship: tosca.relationships.network.BindsTo
98       - link:
99           capability: tosca.capabilities.network.Linkable
100           node: jsa_net1
101           relationship: tosca.relationships.network.LinksTo
102     FSB1_OAM:
103       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
104       properties:
105         fixed_ips:
106         - ip_address:
107             get_input: fsb1-oam-ip
108         network: jsa_net1
109       requirements:
110       - binding:
111           capability: tosca.capabilities.network.Bindable
112           node: FSB1_template
113           relationship: tosca.relationships.network.BindsTo
114       - link:
115           capability: tosca.capabilities.network.Linkable
116           node: jsa_net1
117           relationship: tosca.relationships.network.LinksTo
118     jsa_net1:
119       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
120       properties:
121         shared: true
122         network_name:
123           get_attribute:
124           - abstract_FSB
125           - FSB_FSB1_Internal_network_id
126         dhcp_agent_ids:
127           get_attribute:
128           - abstract_FSB
129           - FSB_addresses
130         tenant_id:
131           get_attribute:
132           - abstract_FSB
133           - FSB_FSB2_Internal_network_id
134         qos_policy:
135           get_attribute:
136           - abstract_FSB
137           - FSB_FSB2_Internal_network_id
138     FSB1_template:
139       type: org.openecomp.resource.vfc.nodes.heat.FSB
140       properties:
141         flavor:
142           get_input: fsb-flavor
143         image:
144           get_input: fsb-image
145         admin_pass: STATIC-DATA-FSB1
146         availability_zone:
147           get_input: fsb1_zone
148         metadata:
149           write_files:
150           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
151           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
152         name:
153           get_input: fsb1-name
154       requirements:
155       - dependency:
156           capability: tosca.capabilities.Node
157           node: packet_mirror_network
158           relationship: tosca.relationships.DependsOn
159       - local_storage:
160           capability: tosca.capabilities.Attachment
161           node: cmaui_volume1
162           relationship: cmaui_volume_attachment
163       - local_storage:
164           capability: tosca.capabilities.Attachment
165           node: cmaui_volume2
166           relationship: cmaui_volume_attachment
167       artifacts:
168         nimbus-ethernet-gw:
169           type: tosca.artifacts.Deployment
170           file: ../Artifacts/nimbus-ethernet-gw
171         nimbus-ethernet:
172           type: tosca.artifacts.Deployment
173           file: ../Artifacts/nimbus-ethernet
174     cmaui_volume1:
175       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
176       properties:
177         volume_type:
178           get_input: CMAUI_volume_type
179         size: '(get_input : cmaui_cinder_volume_size) * 1024'
180     cmaui_volume2:
181       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
182       properties:
183         volume_type:
184           get_input: CMAUI_volume_type
185         size: '(get_input : cmaui_cinder_volume_size) * 1024'
186     packet_mirror_network:
187       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
188       properties:
189         network_name:
190           get_input: packet_mirror_network_name
191     abstract_FSB:
192       type: org.openecomp.resource.abstract.nodes.FSB
193       directives:
194       - substitutable
195       properties:
196         port_FSB1_Internal_mac_address:
197           get_input: fsb1-Internal1-mac
198         vm_flavor_name:
199           get_input: fsb-flavor
200         vm_image_name:
201           get_input: fsb-image
202         compute_FSB_admin_pass:
203         - STATIC-DATA-FSB1
204         port_FSB_OAM_network:
205         - jsa_net1
206         port_FSB1_Internal_network:
207         - Internal1-net
208         port_FSB2_Internal_mac_address:
209           get_input: fsb1-Internal2-mac
210         port_FSB_OAM_fixed_ips:
211         - ip_address:
212             get_input: fsb1-oam-ip
213         port_FSB2_Internal_network:
214         - Internal2-net
215         compute_FSB_metadata:
216         - write_files:
217           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
218           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
219         compute_FSB_availability_zone:
220         - get_input: fsb1_zone
221         compute_FSB_name:
222         - get_input: fsb1-name
223         service_template_filter:
224           substitute_service_template: Nested_FSBServiceTemplate.yaml
225           count: 1
226         index_value:
227           get_property:
228           - SELF
229           - service_template_filter
230           - index_value
231       requirements:
232       - dependency_FSB:
233           capability: tosca.capabilities.Node
234           node: packet_mirror_network
235           relationship: tosca.relationships.DependsOn
236       - link_FSB_FSB1_Internal:
237           capability: tosca.capabilities.network.Linkable
238           node: jsa_net1
239           relationship: tosca.relationships.network.LinksTo
240       - link_FSB_FSB_OAM:
241           capability: tosca.capabilities.network.Linkable
242           node: jsa_net1
243           relationship: tosca.relationships.network.LinksTo
244       - local_storage_FSB:
245           capability: tosca.capabilities.Attachment
246           node: cmaui_volume1
247           relationship: cmaui_volume_attachment
248       - local_storage_FSB:
249           capability: tosca.capabilities.Attachment
250           node: cmaui_volume2
251           relationship: cmaui_volume_attachment
252   groups:
253     ep-jsa_net_group:
254       type: org.openecomp.groups.heat.HeatStack
255       properties:
256         heat_file: ../Artifacts/ep-jsa_net.yaml
257         description: |
258           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
259       members:
260       - FSB2_Internal2
261       - FSB1_Internal1
262       - FSB1_OAM
263       - FSB1_template
264       - packet_mirror_network_name