[sdc] - latest code changes
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / unifiedComposition / updNodesConnectedOut / 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       artifacts:
160         nimbus-ethernet-gw:
161           type: tosca.artifacts.Deployment
162           file: ../Artifacts/nimbus-ethernet-gw
163         nimbus-ethernet:
164           type: tosca.artifacts.Deployment
165           file: ../Artifacts/nimbus-ethernet
166     packet_mirror_network:
167       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
168       properties:
169         network_name:
170           get_input: packet_mirror_network_name
171     abstract_FSB:
172       type: org.openecomp.resource.abstract.nodes.FSB
173       directives:
174       - substitutable
175       properties:
176         port_FSB1_Internal_mac_address:
177           get_input: fsb1-Internal1-mac
178         vm_flavor_name:
179           get_input: fsb-flavor
180         vm_image_name:
181           get_input: fsb-image
182         compute_FSB_admin_pass:
183         - STATIC-DATA-FSB1
184         port_FSB_OAM_network:
185         - jsa_net1
186         port_FSB1_Internal_network:
187         - Internal1-net
188         port_FSB2_Internal_mac_address:
189           get_input: fsb1-Internal2-mac
190         port_FSB_OAM_fixed_ips:
191         - ip_address:
192             get_input: fsb1-oam-ip
193         port_FSB2_Internal_network:
194         - Internal2-net
195         compute_FSB_metadata:
196         - write_files:
197           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
198           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
199         compute_FSB_availability_zone:
200         - get_input: fsb1_zone
201         compute_FSB_name:
202         - get_input: fsb1-name
203         service_template_filter:
204           substitute_service_template: Nested_FSBServiceTemplate.yaml
205           count: 1
206         index_value:
207           get_property:
208           - SELF
209           - service_template_filter
210           - index_value
211       requirements:
212       - dependency_FSB:
213           capability: tosca.capabilities.Node
214           node: packet_mirror_network
215           relationship: tosca.relationships.DependsOn
216       - link_FSB_FSB1_Internal:
217           capability: tosca.capabilities.network.Linkable
218           node: jsa_net1
219           relationship: tosca.relationships.network.LinksTo
220       - link_FSB_FSB_OAM:
221           capability: tosca.capabilities.network.Linkable
222           node: jsa_net1
223           relationship: tosca.relationships.network.LinksTo
224   groups:
225     ep-jsa_net_group:
226       type: org.openecomp.groups.heat.HeatStack
227       properties:
228         heat_file: ../Artifacts/ep-jsa_net.yaml
229         description: |
230           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
231       members:
232       - FSB2_Internal2
233       - FSB1_Internal1
234       - FSB1_OAM
235       - FSB1_template
236       - packet_mirror_network_name