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