[sdc] update code of sdc
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / createAbstractSubstitute / oneComputeMultiplePortsDiffType / 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   node_templates:
71     FSB2_Internal2:
72       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
73       properties:
74         mac_address:
75           get_input: fsb1-Internal2-mac
76         network: Internal2-net
77       requirements:
78       - binding:
79           capability: tosca.capabilities.network.Bindable
80           node: FSB1_template
81           relationship: tosca.relationships.network.BindsTo
82     FSB1_Internal1:
83       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
84       properties:
85         mac_address:
86           get_input: fsb1-Internal1-mac
87         network: Internal1-net
88       requirements:
89       - binding:
90           capability: tosca.capabilities.network.Bindable
91           node: FSB1_template
92           relationship: tosca.relationships.network.BindsTo
93       - link:
94           capability: tosca.capabilities.network.Linkable
95           node: jsa_net1
96           relationship: tosca.relationships.network.LinksTo
97     FSB1_OAM:
98       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
99       properties:
100         fixed_ips:
101         - ip_address:
102             get_input: fsb1-oam-ip
103         network: jsa_net1
104       requirements:
105       - binding:
106           capability: tosca.capabilities.network.Bindable
107           node: FSB1_template
108           relationship: tosca.relationships.network.BindsTo
109       - link:
110           capability: tosca.capabilities.network.Linkable
111           node: jsa_net1
112           relationship: tosca.relationships.network.LinksTo
113     jsa_net1:
114       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
115       properties:
116         shared: true
117         network_name:
118           get_attribute:
119           - FSB1_Internal1
120           - network_id
121         dhcp_agent_ids:
122           get_attribute:
123           - FSB1_template
124           - addresses
125         tenant_id:
126           get_attribute:
127           - FSB2_Internal2
128           - network_id
129         qos_policy:
130           get_attribute:
131           - FSB2_Internal2
132           - network_id
133     FSB1_template:
134       type: org.openecomp.resource.vfc.nodes.heat.FSB
135       properties:
136         flavor:
137           get_input: fsb-flavor
138         image:
139           get_input: fsb-image
140         admin_pass: STATIC-DATA-FSB1
141         availability_zone:
142           get_input: fsb1_zone
143         metadata:
144           write_files:
145           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
146           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
147         name:
148           get_input: fsb1-name
149       requirements:
150       - local_storage:
151           capability: tosca.capabilities.Attachment
152           node: cmaui_volume1
153           relationship: cmaui_volume_attachment
154       - local_storage:
155           capability: tosca.capabilities.Attachment
156           node: cmaui_volume2
157           relationship: cmaui_volume_attachment
158       artifacts:
159         nimbus-ethernet-gw:
160           type: tosca.artifacts.Deployment
161           file: ../Artifacts/nimbus-ethernet-gw
162         nimbus-ethernet:
163           type: tosca.artifacts.Deployment
164           file: ../Artifacts/nimbus-ethernet
165     cmaui_volume1:
166       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
167       properties:
168         volume_type:
169           get_input: CMAUI_volume_type
170         size: '(get_input : cmaui_cinder_volume_size) * 1024'
171     cmaui_volume2:
172       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
173       properties:
174         volume_type:
175           get_input: CMAUI_volume_type
176         size: '(get_input : cmaui_cinder_volume_size) * 1024'
177     abstract_FSB:
178       type: org.openecomp.resource.abstract.nodes.FSB
179       directives:
180       - substitutable
181       properties:
182         port_FSB1_Internal_mac_address:
183           get_input: fsb1-Internal1-mac
184         vm_flavor_name:
185           get_input: fsb-flavor
186         vm_image_name:
187           get_input: fsb-image
188         compute_FSB_admin_pass:
189         - STATIC-DATA-FSB1
190         port_FSB_OAM_network:
191         - jsa_net1
192         port_FSB1_Internal_network:
193         - Internal1-net
194         port_FSB2_Internal_mac_address:
195           get_input: fsb1-Internal2-mac
196         port_FSB_OAM_fixed_ips:
197         - - ip_address:
198               get_input: fsb1-oam-ip
199         port_FSB2_Internal_network:
200         - Internal2-net
201         compute_FSB_metadata:
202         - write_files:
203           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
204           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
205         compute_FSB_availability_zone:
206         - get_input: fsb1_zone
207         compute_FSB_name:
208         - get_input: fsb1-name
209         service_template_filter:
210           substitute_service_template: Nested_FSBServiceTemplate.yaml
211           count: 1
212         index_value:
213           get_property:
214           - SELF
215           - service_template_filter
216           - index_value
217   groups:
218     ep-jsa_net_group:
219       type: org.openecomp.groups.heat.HeatStack
220       properties:
221         heat_file: ../Artifacts/ep-jsa_net.yaml
222         description: |
223           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
224       members:
225       - FSB2_Internal2
226       - FSB1_Internal1
227       - FSB1_OAM
228       - FSB1_template