8e411bde02e2a53b44c979c7dee82753e7fcdabe
[sdc.git] /
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_Internal_2:
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         subinterface_indicator: true
83       requirements:
84       - binding:
85           capability: tosca.capabilities.network.Bindable
86           node: FSB1_template
87           relationship: tosca.relationships.network.BindsTo
88     FSB1_Internal_1:
89       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
90       properties:
91         mac_address:
92           get_input: fsb1-Internal1-mac
93         network: Internal1-net
94         subinterface_indicator: true
95       requirements:
96       - binding:
97           capability: tosca.capabilities.network.Bindable
98           node: FSB1_template
99           relationship: tosca.relationships.network.BindsTo
100       - link:
101           capability: tosca.capabilities.network.Linkable
102           node: jsa_net1
103           relationship: tosca.relationships.network.LinksTo
104     FSB1_OAM:
105       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
106       properties:
107         fixed_ips:
108         - ip_address:
109             get_input: fsb1-oam-ip
110         network: jsa_net1
111         subinterface_indicator: true
112       requirements:
113       - binding:
114           capability: tosca.capabilities.network.Bindable
115           node: FSB1_template
116           relationship: tosca.relationships.network.BindsTo
117       - link:
118           capability: tosca.capabilities.network.Linkable
119           node: jsa_net1
120           relationship: tosca.relationships.network.LinksTo
121     jsa_net1:
122       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
123       properties:
124         shared: true
125         network_name:
126           get_attribute:
127           - abstract_FSB
128           - FSB_FSB1_Internal_network_id
129         dhcp_agent_ids:
130           get_attribute:
131           - abstract_FSB
132           - FSB_addresses
133         tenant_id:
134           get_attribute:
135           - abstract_FSB
136           - FSB_FSB2_Internal_network_id
137         qos_policy:
138           get_attribute:
139           - abstract_FSB
140           - FSB_FSB2_Internal_network_id
141     FSB1_template:
142       type: org.openecomp.resource.vfc.nodes.heat.FSB
143       properties:
144         flavor:
145           get_input: fsb-flavor
146         image:
147           get_input: fsb-image
148         admin_pass: STATIC-DATA-FSB1
149         availability_zone:
150           get_input: fsb1_zone
151         metadata:
152           write_files:
153           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
154           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
155         name:
156           get_input: fsb1-name
157       requirements:
158       - dependency:
159           capability: tosca.capabilities.Node
160           node: packet_mirror_network
161           relationship: tosca.relationships.DependsOn
162       - local_storage:
163           capability: tosca.capabilities.Attachment
164           node: cmaui_volume1
165           relationship: cmaui_volume_attachment
166       - local_storage:
167           capability: tosca.capabilities.Attachment
168           node: cmaui_volume2
169           relationship: cmaui_volume_attachment
170       artifacts:
171         nimbus-ethernet-gw:
172           type: tosca.artifacts.Deployment
173           file: ../Artifacts/nimbus-ethernet-gw
174         nimbus-ethernet:
175           type: tosca.artifacts.Deployment
176           file: ../Artifacts/nimbus-ethernet
177     cmaui_volume1:
178       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
179       properties:
180         volume_type:
181           get_input: CMAUI_volume_type
182         size: '(get_input : cmaui_cinder_volume_size) * 1024'
183     cmaui_volume2:
184       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
185       properties:
186         volume_type:
187           get_input: CMAUI_volume_type
188         size: '(get_input : cmaui_cinder_volume_size) * 1024'
189     packet_mirror_network:
190       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
191       properties:
192         network_name:
193           get_input: packet_mirror_network_name
194     abstract_FSB:
195       type: org.openecomp.resource.abstract.nodes.FSB
196       directives:
197       - substitutable
198       properties:
199         port_FSB1_Internal_mac_address:
200           get_input: fsb1-Internal1-mac
201         port_FSB1_OAM_subinterface_indicator:
202         - true
203         vm_flavor_name:
204           get_input: fsb-flavor
205         vm_image_name:
206           get_input: fsb-image
207         compute_FSB_admin_pass:
208         - STATIC-DATA-FSB1
209         port_FSB1_Internal_subinterface_indicator:
210         - true
211         port_FSB1_Internal_network:
212         - Internal1-net
213         port_FSB2_Internal_mac_address:
214           get_input: fsb1-Internal2-mac
215         port_FSB1_OAM_network:
216         - jsa_net1
217         port_FSB2_Internal_network:
218         - Internal2-net
219         compute_FSB_metadata:
220         - write_files:
221           - path: /path1/etc/sysconfig/network-scripts/ifcfg-eth0
222           - path: /path2/etc/sysconfig/network-scripts/ifcfg-eth1
223         port_FSB2_Internal_subinterface_indicator:
224         - true
225         compute_FSB_availability_zone:
226         - get_input: fsb1_zone
227         port_FSB1_OAM_fixed_ips:
228         - ip_address:
229             get_input: fsb1-oam-ip
230         compute_FSB_name:
231         - get_input: fsb1-name
232         service_template_filter:
233           substitute_service_template: Nested_FSBServiceTemplate.yaml
234           count: 1
235         index_value:
236           get_property:
237           - SELF
238           - service_template_filter
239           - index_value
240       requirements:
241       - dependency_FSB:
242           capability: tosca.capabilities.Node
243           node: packet_mirror_network
244           relationship: tosca.relationships.DependsOn
245       - link_FSB_FSB1_Internal:
246           capability: tosca.capabilities.network.Linkable
247           node: jsa_net1
248           relationship: tosca.relationships.network.LinksTo
249       - link_FSB_FSB1_OAM:
250           capability: tosca.capabilities.network.Linkable
251           node: jsa_net1
252           relationship: tosca.relationships.network.LinksTo
253       - local_storage_FSB:
254           capability: tosca.capabilities.Attachment
255           node: cmaui_volume1
256           relationship: cmaui_volume_attachment
257       - local_storage_FSB:
258           capability: tosca.capabilities.Attachment
259           node: cmaui_volume2
260           relationship: cmaui_volume_attachment
261   groups:
262     ep-jsa_net_group:
263       type: org.openecomp.groups.heat.HeatStack
264       properties:
265         heat_file: ../Artifacts/ep-jsa_net.yaml
266         description: |
267           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
268       members:
269       - FSB2_Internal_2
270       - FSB1_Internal_1
271       - FSB1_OAM
272       - FSB1_template
273       - packet_mirror_network_name