[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 / createAbstractSubstitute / twoComputesMultiplePorts / 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   node_templates:
90     FSB2_Internal2:
91       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
92       properties:
93         mac_address:
94           get_input: fsb2-Internal2-mac
95         network: Internal2-net-fsb2-Internal2
96       requirements:
97       - binding:
98           capability: tosca.capabilities.network.Bindable
99           node: FSB2_template
100           relationship: tosca.relationships.network.BindsTo
101     FSB2_Internal1:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         mac_address:
105           get_input: fsb2-Internal1-mac
106         network: Internal2-net-fsb2-Internal1
107       requirements:
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: FSB1_template
111           relationship: tosca.relationships.network.BindsTo
112     FSB1_Internal2:
113       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
114       properties:
115         mac_address:
116           get_input: fsb1-Internal2-mac
117         network: Internal1-net-fsb1-Internal2
118       requirements:
119       - binding:
120           capability: tosca.capabilities.network.Bindable
121           node: FSB2_template
122           relationship: tosca.relationships.network.BindsTo
123       - link:
124           capability: tosca.capabilities.network.Linkable
125           node: jsa_net1
126           relationship: tosca.relationships.network.LinksTo
127     FSB1_Internal1:
128       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
129       properties:
130         mac_address:
131           get_input: fsb1-Internal1-mac
132         network: Internal1-net-fsb1-Internal1
133       requirements:
134       - binding:
135           capability: tosca.capabilities.network.Bindable
136           node: FSB1_template
137           relationship: tosca.relationships.network.BindsTo
138       - link:
139           capability: tosca.capabilities.network.Linkable
140           node: jsa_net1
141           relationship: tosca.relationships.network.LinksTo
142     jsa_net1:
143       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
144       properties:
145         shared: true
146         network_name:
147          get_attribute:
148           - FSB1_Internal1
149           - network_id
150         dhcp_agent_ids:
151          get_attribute:
152           - FSB1_template
153           - addresses
154         tenant_id:
155          get_attribute:
156           - FSB2_Internal2
157           - network_id
158         qos_policy:
159          get_attribute:
160           - FSB2_Internal2
161           - network_id
162     FSB1_template:
163       type: org.openecomp.resource.vfc.nodes.heat.FSB
164       properties:
165         flavor:
166           get_input: fsb-flavor
167         image:
168           get_input: fsb-image
169         admin_pass: STATIC-DATA-FSB1
170         user_data: OPTIONAL-DATA-FSB1
171         availability_zone:
172           get_input: fsb1_zone
173         metadata:
174           write_files:
175           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
176           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
177         name:
178           get_input: fsb1-name
179       requirements:
180       - local_storage:
181           capability: tosca.capabilities.Attachment
182           node: cmaui_volume1
183           relationship: cmaui_volume_attachment
184       - local_storage:
185           capability: tosca.capabilities.Attachment
186           node: cmaui_volume2
187           relationship: cmaui_volume_attachment
188     FSB2_template:
189       type: org.openecomp.resource.vfc.nodes.heat.FSB
190       properties:
191         flavor:
192           get_input: fsb-flavor
193         image:
194           get_input: fsb-image
195         admin_pass: STATIC-DATA-FSB2
196         availability_zone:
197           get_input: fsb2_zone
198         metadata:
199           write_files:
200           - path: /path3/etc/sysconfig/network-scripts/ifcfg-eth0
201           - path: /path4/etc/sysconfig/network-scripts/ifcfg-eth1
202         name:
203           get_input: fsb2-name
204       requirements:
205       - local_storage:
206           capability: tosca.capabilities.Attachment
207           node: cmaui_volume3
208           relationship: cmaui_volume_attachment
209       - local_storage:
210           capability: tosca.capabilities.Attachment
211           node: cmaui_volume4
212           relationship: cmaui_volume_attachment
213     cmaui_volume1:
214       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
215       properties:
216         volume_type:
217           get_input: CMAUI_volume_type
218         size: '(get_input : cmaui_cinder_volume_size) * 1024'
219     cmaui_volume2:
220       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
221       properties:
222         volume_type:
223           get_input: CMAUI_volume_type
224         size: '(get_input : cmaui_cinder_volume_size) * 1024'
225     cmaui_volume3:
226       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
227       properties:
228         volume_type:
229           get_input: CMAUI_volume_type
230         size: '(get_input : cmaui_cinder_volume_size) * 1024'
231     cmaui_volume4:
232       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
233       properties:
234         volume_type:
235           get_input: CMAUI_volume_type
236         size: '(get_input : cmaui_cinder_volume_size) * 1024'
237   groups:
238     ep-jsa_net_group:
239       type: org.openecomp.groups.heat.HeatStack
240       properties:
241         heat_file: ../Artifacts/ep-jsa_net.yaml
242         description: |
243           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
244       members:
245       - FSB1_Internal1
246       - FSB1_Internal2
247       - FSB2_Internal1
248       - FSB2_Internal2
249       - FSB1_template
250       - FSB2_template