[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 / updNodesConnectedIn / consolidation / 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     fsb2-name:
21       label: FSB2_name
22       hidden: false
23       immutable: false
24       type: string
25       description: FSB2_name
26     cmaui_cinder_volume_size:
27       label: volume size
28       hidden: false
29       immutable: false
30       type: float
31       description: my volume size 320GB
32     fsb-flavor:
33       label: FSB1_flavor
34       hidden: false
35       immutable: false
36       type: string
37       description: FSB1_flavor
38     fsb-image:
39       label: FSB1_image
40       hidden: false
41       immutable: false
42       type: string
43       description: FSB1_image
44     fsb1-Internal1-mac:
45       label: FSB1_internal_mac
46       hidden: false
47       immutable: false
48       type: string
49       description: FSB1_internal_mac
50     fsb1-Internal2-mac:
51       label: FSB1_internal_mac
52       hidden: false
53       immutable: false
54       type: string
55       description: FSB1_internal_mac
56     fsb1-zone:
57       label: FSB1_zone
58       hidden: false
59       immutable: false
60       type: string
61       description: FSB1_zone
62     fsb2_zone:
63       label: FSB2_zone
64       hidden: false
65       immutable: false
66       type: string
67       description: FSB2_zone
68     network_name:
69       hidden: false
70       immutable: false
71       type: string
72       description: prop
73     fsb2-Internal1-mac:
74       label: FSB1_internal_mac
75       hidden: false
76       immutable: false
77       type: string
78       description: FSB1_internal_mac
79     fsb2-Internal2-mac:
80       label: FSB1_internal_mac
81       hidden: false
82       immutable: false
83       type: string
84       description: FSB1_internal_mac
85     fsb1-oam-ip:
86       hidden: false
87       immutable: false
88       type: string
89       description: prop
90     jsa_net_name:
91       hidden: false
92       immutable: false
93       type: string
94       description: prop
95     packet_mirror_network_name:
96       hidden: false
97       immutable: false
98       type: string
99       description: prop
100   node_templates:
101     FSB2_Internal2:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         mac_address:
105           get_input: fsb2-Internal2-mac
106         network: Internal2-net-fsb2-Internal2
107       requirements:
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: FSB2_template
111           relationship: tosca.relationships.network.BindsTo
112       - link:
113           capability: tosca.capabilities.network.Linkable
114           node: jsa_net
115           relationship: tosca.relationships.network.LinksTo
116     FSB2_Internal1:
117       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
118       properties:
119         mac_address:
120           get_input: fsb2-Internal1-mac
121         network: Internal2-net-fsb2-Internal1
122       requirements:
123       - binding:
124           capability: tosca.capabilities.network.Bindable
125           node: FSB1_template
126           relationship: tosca.relationships.network.BindsTo
127       - link:
128           capability: tosca.capabilities.network.Linkable
129           node: jsa_net
130           relationship: tosca.relationships.network.LinksTo
131     FSB1_Internal2:
132       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
133       properties:
134         mac_address:
135           get_input: fsb1-Internal2-mac
136         network: Internal1-net-fsb1-Internal2
137       requirements:
138       - binding:
139           capability: tosca.capabilities.network.Bindable
140           node: FSB2_template
141           relationship: tosca.relationships.network.BindsTo
142       - link:
143           capability: tosca.capabilities.network.Linkable
144           node: jsa_net1
145           relationship: tosca.relationships.network.LinksTo
146     FSB1_Internal1:
147       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
148       properties:
149         mac_address:
150           get_input: fsb1-Internal1-mac
151         network: Internal1-net-fsb1-Internal1
152       requirements:
153       - binding:
154           capability: tosca.capabilities.network.Bindable
155           node: FSB1_template
156           relationship: tosca.relationships.network.BindsTo
157       - link:
158           capability: tosca.capabilities.network.Linkable
159           node: jsa_net1
160           relationship: tosca.relationships.network.LinksTo
161     jsa_net:
162       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
163       properties:
164         shared: true
165         network_name:
166           get_input: jsa_net_name
167     jsa_net1:
168       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
169       properties:
170         shared: true
171         network_name:
172           get_attribute:
173           - abstract_FSB
174           - FSB_FSB1_Internal_network_id
175         dhcp_agent_ids:
176           get_attribute:
177           - abstract_FSB
178           - FSB_addresses
179         tenant_id:
180           get_attribute:
181           - abstract_FSB
182           - FSB_FSB2_Internal_network_id
183         qos_policy:
184           get_attribute:
185           - abstract_FSB
186           - FSB_FSB2_Internal_network_id
187     FSB1_template:
188       type: org.openecomp.resource.vfc.nodes.heat.FSB
189       properties:
190         flavor:
191           get_input: fsb-flavor
192         image:
193           get_input: fsb-image
194         admin_pass: STATIC-DATA-FSB1
195         user_data: OPTIONAL-DATA-FSB1
196         availability_zone:
197           get_input: fsb1_zone
198         metadata:
199           write_files:
200           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
201           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
202         name:
203           get_input: fsb1-name
204     FSB2_template:
205       type: org.openecomp.resource.vfc.nodes.heat.FSB
206       properties:
207         flavor:
208           get_input: fsb-flavor
209         image:
210           get_input: fsb-image
211         admin_pass: STATIC-DATA-FSB2
212         availability_zone:
213           get_input: fsb2_zone
214         metadata:
215           write_files:
216           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
217           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
218         name:
219           get_input: fsb2-name
220     packet_mirror_network:
221       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
222       properties:
223         network_name:
224           get_input: packet_mirror_network_name
225       requirements:
226       - dependency:
227           capability: tosca.capabilities.Node
228           node: QRouter
229           relationship: tosca.relationships.DependsOn
230     jsa_security_group:
231       type: org.openecomp.resource.vfc.rules.nodes.heat.network.neutron.SecurityRules
232       properties:
233         name:
234           get_input: security_group_name
235         description: ems security group
236         rules:
237         - protocol: tcp
238           ethertype: IPv4
239           port_range_max: 65535
240           remote_ip_prefix: 0.0.0.0/0
241           direction: egress
242           port_range_min: 1
243       requirements:
244       - port:
245           capability: attachment_FSB_FSB1_Internal
246           node: abstract_FSB
247           relationship: org.openecomp.relationships.AttachesTo
248     abstract_FSB:
249       type: org.openecomp.resource.abstract.nodes.FSB
250       directives:
251       - substitutable
252       properties:
253         port_FSB1_Internal_mac_address:
254         - get_input: fsb1-Internal1-mac
255         - get_input: fsb1-Internal2-mac
256         vm_image_name:
257           get_input: fsb-image
258         compute_FSB_admin_pass:
259         - STATIC-DATA-FSB1
260         - STATIC-DATA-FSB2
261         port_FSB1_Internal_network:
262         - Internal1-net-fsb1-Internal1
263         - Internal1-net-fsb1-Internal2
264         port_FSB2_Internal_network:
265         - Internal2-net-fsb2-Internal1
266         - Internal2-net-fsb2-Internal2
267         compute_FSB_metadata:
268         - write_files:
269           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
270           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
271         - write_files:
272           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
273           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
274         compute_FSB_user_data:
275         - OPTIONAL-DATA-FSB1
276         - null
277         compute_FSB_availability_zone:
278         - get_input: fsb1_zone
279         - get_input: fsb2_zone
280         vm_flavor_name:
281           get_input: fsb-flavor
282         port_FSB2_Internal_mac_address:
283         - get_input: fsb2-Internal1-mac
284         - get_input: fsb2-Internal2-mac
285         compute_FSB_name:
286         - get_input: fsb1-name
287         - get_input: fsb2-name
288         service_template_filter:
289           substitute_service_template: Nested_FSBServiceTemplate.yaml
290           count: 2
291         index_value:
292           get_property:
293           - SELF
294           - service_template_filter
295           - index_value
296       requirements:
297       - link_FSB_FSB1_Internal:
298           capability: tosca.capabilities.network.Linkable
299           node: jsa_net1
300           relationship: tosca.relationships.network.LinksTo
301       - link_FSB_FSB2_Internal:
302           capability: tosca.capabilities.network.Linkable
303           node: jsa_net
304           relationship: tosca.relationships.network.LinksTo
305   groups:
306     ep-jsa_net_group:
307       type: org.openecomp.groups.heat.HeatStack
308       properties:
309         heat_file: ../Artifacts/ep-jsa_net.yaml
310         description: |
311           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
312       members:
313       - FSB1_Internal1
314       - FSB1_Internal2
315       - FSB2_Internal1
316       - FSB2_Internal2
317       - FSB1_template
318       - FSB2_template
319       - jsa_net
320       - jsa_net1
321       - packet_mirror_network
322       - jsa_security_group