[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updVolumes / consolidation / in / 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.FSB:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10
11 topology_template:
12   inputs:
13     fsb1-name:
14       label: FSB1_name
15       hidden: false
16       immutable: false
17       type: string
18       description: FSB1_name
19     fsb2-name:
20       label: FSB2_name
21       hidden: false
22       immutable: false
23       type: string
24       description: FSB2_name
25     cmaui_cinder_volume_size:
26       label: volume size
27       hidden: false
28       immutable: false
29       type: float
30       description: my volume size 320GB
31     fsb-flavor:
32       label: FSB1_flavor
33       hidden: false
34       immutable: false
35       type: string
36       description: FSB1_flavor
37     fsb-image:
38       label: FSB1_image
39       hidden: false
40       immutable: false
41       type: string
42       description: FSB1_image
43     fsb1-Internal1-mac:
44       label: FSB1_internal_mac
45       hidden: false
46       immutable: false
47       type: string
48       description: FSB1_internal_mac
49     fsb1-Internal2-mac:
50       label: FSB1_internal_mac
51       hidden: false
52       immutable: false
53       type: string
54       description: FSB1_internal_mac
55     fsb1-zone:
56       label: FSB1_zone
57       hidden: false
58       immutable: false
59       type: string
60       description: FSB1_zone
61     fsb2_zone:
62       label: FSB2_zone
63       hidden: false
64       immutable: false
65       type: string
66       description: FSB2_zone
67     network_name:
68       hidden: false
69       immutable: false
70       type: string
71       description: prop
72     fsb2-Internal1-mac:
73       label: FSB1_internal_mac
74       hidden: false
75       immutable: false
76       type: string
77       description: FSB1_internal_mac
78     fsb2-Internal2-mac:
79       label: FSB1_internal_mac
80       hidden: false
81       immutable: false
82       type: string
83       description: FSB1_internal_mac
84     fsb1-oam-ip:
85       hidden: false
86       immutable: false
87       type: string
88       description: prop
89     jsa_net_name:
90       hidden: false
91       immutable: false
92       type: string
93       description: prop
94     packet_mirror_network_name:
95       hidden: false
96       immutable: false
97       type: string
98       description: prop
99   node_templates:
100     FSB2_Internal2:
101       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
102       properties:
103         mac_address:
104           get_input: fsb2-Internal2-mac
105         network: Internal2-net-fsb2-Internal2
106       requirements:
107       - binding:
108           capability: tosca.capabilities.network.Bindable
109           node: FSB2_template
110           relationship: tosca.relationships.network.BindsTo
111       - link:
112           capability: tosca.capabilities.network.Linkable
113           node: jsa_net
114           relationship: tosca.relationships.network.LinksTo
115     FSB2_Internal1:
116       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
117       properties:
118         mac_address:
119           get_input: fsb2-Internal1-mac
120         network: Internal2-net-fsb2-Internal1
121       requirements:
122       - binding:
123           capability: tosca.capabilities.network.Bindable
124           node: FSB1_template
125           relationship: tosca.relationships.network.BindsTo
126       - link:
127           capability: tosca.capabilities.network.Linkable
128           node: jsa_net
129           relationship: tosca.relationships.network.LinksTo
130     FSB1_Internal2:
131       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
132       properties:
133         mac_address:
134           get_input: fsb1-Internal2-mac
135         network: Internal1-net-fsb1-Internal2
136       requirements:
137       - binding:
138           capability: tosca.capabilities.network.Bindable
139           node: FSB2_template
140           relationship: tosca.relationships.network.BindsTo
141       - link:
142           capability: tosca.capabilities.network.Linkable
143           node: jsa_net1
144           relationship: tosca.relationships.network.LinksTo
145     FSB1_Internal1:
146       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
147       properties:
148         mac_address:
149           get_input: fsb1-Internal1-mac
150         network: Internal1-net-fsb1-Internal1
151       requirements:
152       - binding:
153           capability: tosca.capabilities.network.Bindable
154           node: FSB1_template
155           relationship: tosca.relationships.network.BindsTo
156       - link:
157           capability: tosca.capabilities.network.Linkable
158           node: jsa_net1
159           relationship: tosca.relationships.network.LinksTo
160     jsa_net:
161       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
162       properties:
163         shared: true
164         network_name:
165           get_input: jsa_net_name
166     jsa_net1:
167       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
168       properties:
169         shared: true
170         network_name:
171          get_attribute:
172           - FSB1_Internal1
173           - network_id
174         dhcp_agent_ids:
175          get_attribute:
176           - FSB1_template
177           - addresses
178         tenant_id:
179          get_attribute:
180           - FSB2_Internal2
181           - network_id
182         qos_policy:
183          get_attribute:
184           - FSB2_Internal2
185           - network_id
186     FSB1_template:
187       type: org.openecomp.resource.vfc.nodes.heat.FSB
188       properties:
189         flavor:
190           get_input: fsb-flavor
191         image:
192           get_input: fsb-image
193         admin_pass: STATIC-DATA-FSB1
194         user_data: OPTIONAL-DATA-FSB1
195         availability_zone:
196           get_input: fsb1_zone
197         metadata:
198           write_files:
199           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
200           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
201         name:
202           get_input: fsb1-name
203       requirements:
204       - dependency:
205           capability: tosca.capabilities.Node
206           node: packet_mirror_network
207           relationship: tosca.relationships.DependsOn
208       - local_storage:
209           capability: tosca.capabilities.Attachment
210           node: cmaui_volume1
211           relationship: cmaui_volume_attachment
212       - local_storage:
213           capability: tosca.capabilities.Attachment
214           node: cmaui_volume2
215           relationship: cmaui_volume_attachment
216     FSB2_template:
217       type: org.openecomp.resource.vfc.nodes.heat.FSB
218       properties:
219         flavor:
220           get_input: fsb-flavor
221         image:
222           get_input: fsb-image
223         admin_pass: STATIC-DATA-FSB2
224         availability_zone:
225           get_input: fsb2_zone
226         metadata:
227           write_files:
228           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
229           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
230         name:
231           get_input: fsb2-name
232       requirements:
233       - dependency:
234           capability: tosca.capabilities.Node
235           node: packet_mirror_network
236           relationship: tosca.relationships.DependsOn
237       - local_storage:
238           capability: tosca.capabilities.Attachment
239           node: cmaui_volume1
240           relationship: cmaui_volume_attachment
241       - local_storage:
242           capability: tosca.capabilities.Attachment
243           node: cmaui_volume2
244           relationship: cmaui_volume_attachment
245     cmaui_volume1:
246       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
247       properties:
248         volume_type:
249           get_input: CMAUI_volume_type
250         size: '(get_input : cmaui_cinder_volume_size) * 1024'
251     cmaui_volume2:
252       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
253       properties:
254         volume_type:
255           get_input: CMAUI_volume_type
256         size: '(get_input : cmaui_cinder_volume_size) * 1024'
257     cmaui_volume3:
258       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
259       properties:
260         volume_type:
261           get_input: CMAUI_volume_type
262         size: '(get_input : cmaui_cinder_volume_size) * 1024'
263     cmaui_volume4:
264       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
265       properties:
266         volume_type:
267           get_input: CMAUI_volume_type
268         size: '(get_input : cmaui_cinder_volume_size) * 1024'
269     packet_mirror_network:
270       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
271       properties:
272         network_name:
273           get_input: packet_mirror_network_name
274   groups:
275     ep-jsa_net_group:
276       type: org.openecomp.groups.heat.HeatStack
277       properties:
278         heat_file: ../Artifacts/ep-jsa_net.yaml
279         description: |
280           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
281       members:
282       - FSB1_Internal1
283       - FSB1_Internal2
284       - FSB2_Internal1
285       - FSB2_Internal2
286       - FSB1_template
287       - FSB2_template
288       - jsa_net
289       - jsa_net1
290       - packet_mirror_network_name