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