f7b927187762298311dec209a2e12b9a94b00552
[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.cmaui:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     cmaui_names:
15       hidden: false
16       immutable: false
17       type: list
18       description: CMAUI1, CMAUI2 server names
19       entry_schema:
20         type: string
21     template_PortTuple_LB1:
22       hidden: false
23       immutable: false
24       type: string
25     oam_sec_group_name:
26       hidden: false
27       immutable: false
28       type: string
29     lb_st_interface_type_oam:
30       hidden: false
31       immutable: false
32       type: string
33     virtual_ip_address:
34       hidden: false
35       immutable: false
36       type: string
37     security_group_name:
38       hidden: false
39       immutable: false
40       type: list
41       description: CMAUI1, CMAUI2 server names
42       entry_schema:
43         type: string
44     jsa_net_name:
45       hidden: false
46       immutable: false
47       type: string
48       description: network name of jsa log network
49     vlan_ids:
50       hidden: false
51       immutable: false
52       type: string
53     cmaui_image:
54       hidden: false
55       immutable: false
56       type: string
57       description: Image for CMAUI server
58     virtual_ipv6_address:
59       hidden: false
60       immutable: false
61       type: string
62     cmaui_flavor:
63       hidden: false
64       immutable: false
65       type: string
66       description: Flavor for CMAUI server
67     lb_st_vlan_type_oam:
68       hidden: false
69       immutable: false
70       type: string
71       description: dummy
72     mac_address:
73       hidden: false
74       immutable: false
75       type: string
76     availability_zone_0:
77       label: availabilityzone name
78       hidden: false
79       immutable: false
80       type: string
81       description: availabilityzone name
82     cmaui_oam_ips:
83       hidden: false
84       immutable: false
85       type: string
86   node_templates:
87     cmaui_port_2:
88       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
89       properties:
90         replacement_policy: AUTO
91         ip_requirements:
92         - ip_version: 4
93           ip_count_required:
94             is_required: true
95           floating_ip_count_required:
96             is_required: false
97         security_groups:
98         - get_input: security_group_name
99         fixed_ips:
100         - ip_address:
101             get_input:
102             - cmaui_oam_ips
103             - 0
104         mac_requirements:
105           mac_count_required:
106             is_required: false
107         network: test_net1
108       requirements:
109       - link:
110           capability: tosca.capabilities.network.Linkable
111           node: test_net1
112           relationship: tosca.relationships.network.LinksTo
113       - binding:
114           capability: tosca.capabilities.network.Bindable
115           node: server_cmaui_nova
116           relationship: tosca.relationships.network.BindsTo
117     test_nested_invalidConnection:
118       type: org.openecomp.resource.abstract.nodes.heat.nested
119       directives:
120       - substitutable
121       properties:
122         p1: test_Vlan1
123         service_template_filter:
124           substitute_service_template: nestedServiceTemplate.yaml
125         p2: server_cmaui_nova
126     test_net2:
127       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
128       properties:
129         shared: true
130         network_name:
131           get_input: jsa_net_name
132     template_VMInt_OAM_lb_1:
133       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
134       properties:
135         security_group_refs:
136         - get_input: oam_sec_group_name
137         virtual_network_refs:
138         - test_net1
139         virtual_machine_interface_properties:
140           service_interface_type:
141             get_input: lb_st_interface_type_oam
142         port_tuple_refs:
143         - get_input: template_PortTuple_LB1
144       requirements:
145       - link:
146           capability: tosca.capabilities.network.Linkable
147           node: test_net1
148           relationship: tosca.relationships.network.LinksTo
149       - binding:
150           capability: tosca.capabilities.network.Bindable
151           node: server_cmaui_nova
152           relationship: tosca.relationships.network.BindsTo
153     test_resourceGroup:
154       type: org.openecomp.resource.abstract.nodes.heat.nested
155       directives:
156       - substitutable
157       properties:
158         p1: template_VMInt_OAM_lb_1
159         service_template_filter:
160           substitute_service_template: nestedServiceTemplate.yaml
161           count: 9
162           mandatory: true
163         p2: cmaui_port_2
164         net2: test_net2
165         net1: test_net1
166       requirements:
167       - link_template_Vlan_2:
168           capability: tosca.capabilities.network.Linkable
169           node: test_net2
170           relationship: tosca.relationships.network.LinksTo
171       - link_template_Vlan_1:
172           capability: tosca.capabilities.network.Linkable
173           node: test_net1
174           relationship: tosca.relationships.network.LinksTo
175       - binding_template_Vlan_2:
176           capability: tosca.capabilities.network.Bindable
177           node: cmaui_port_2
178           relationship: tosca.relationships.network.BindsTo
179       - binding_template_Vlan_1:
180           capability: tosca.capabilities.network.Bindable
181           node: template_VMInt_OAM_lb_1
182           relationship: tosca.relationships.network.BindsTo
183     test_net1:
184       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
185       properties:
186         shared: true
187         network_name:
188           get_input: jsa_net_name
189     test_Vlan2:
190       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
191       properties:
192         virtual_machine_interface_refs:
193         - template_VMInt_OAM_lb_1
194         name: vlan
195         virtual_network_refs:
196         - test_net1
197         virtual_machine_interface_properties:
198           sub_interface_vlan_tag:
199             get_input: lb_st_vlan_type_oam
200         virtual_machine_interface_allowed_address_pairs:
201           allowed_address_pair:
202           - address_mode: active-standby
203             ip:
204               ip_prefix:
205                 get_input: virtual_ip_address
206               ip_prefix_len: 32
207             mac:
208               get_input: mac_address
209           - address_mode: active-standby
210             ip:
211               ip_prefix:
212                 get_input: virtual_ipv6_address
213               ip_prefix_len: 128
214             mac:
215               get_input: mac_address
216         virtual_machine_interface_mac_addresses:
217           mac_address:
218           - get_input: mac_address
219       requirements:
220       - link:
221           capability: tosca.capabilities.network.Linkable
222           node: test_net1
223           relationship: tosca.relationships.network.LinksTo
224       - binding:
225           capability: tosca.capabilities.network.Bindable
226           node: template_VMInt_OAM_lb_1
227           relationship: tosca.relationships.network.BindsTo
228     test_Vlan1:
229       type: org.openecomp.resource.cp.nodes.heat.network.contrailV2.VLANSubInterface
230       properties:
231         virtual_machine_interface_refs:
232         - test_Vlan2
233         name: vlan
234         virtual_network_refs:
235         - test_net1
236         virtual_machine_interface_properties:
237           sub_interface_vlan_tag:
238             get_input: lb_st_vlan_type_oam
239         virtual_machine_interface_allowed_address_pairs:
240           allowed_address_pair:
241           - address_mode: active-standby
242             ip:
243               ip_prefix:
244                 get_input: virtual_ip_address
245               ip_prefix_len: 32
246             mac:
247               get_input: mac_address
248           - address_mode: active-standby
249             ip:
250               ip_prefix:
251                 get_input: virtual_ipv6_address
252               ip_prefix_len: 128
253             mac:
254               get_input: mac_address
255         virtual_machine_interface_mac_addresses:
256           mac_address:
257           - get_input: mac_address
258       requirements:
259       - link:
260           capability: tosca.capabilities.network.Linkable
261           node: test_net1
262           relationship: tosca.relationships.network.LinksTo
263     server_cmaui_nova:
264       type: org.openecomp.resource.vfc.nodes.heat.cmaui
265       properties:
266         flavor:
267           get_input: cmaui_flavor
268         availability_zone:
269           get_input: availability_zone_0
270         image:
271           get_input: cmaui_image
272         contrail_service_instance_ind: true
273         name:
274           get_input:
275           - cmaui_names
276           - 0
277     test_nested:
278       type: org.openecomp.resource.abstract.nodes.heat.nested
279       directives:
280       - substitutable
281       properties:
282         p1: template_VMInt_OAM_lb_1
283         service_template_filter:
284           substitute_service_template: nestedServiceTemplate.yaml
285         p2: cmaui_port_2
286         net2: test_net2
287         net1: test_net1
288       requirements:
289       - link_template_Vlan_2:
290           capability: tosca.capabilities.network.Linkable
291           node: test_net2
292           relationship: tosca.relationships.network.LinksTo
293       - link_template_Vlan_1:
294           capability: tosca.capabilities.network.Linkable
295           node: test_net1
296           relationship: tosca.relationships.network.LinksTo
297       - binding_template_Vlan_2:
298           capability: tosca.capabilities.network.Bindable
299           node: cmaui_port_2
300           relationship: tosca.relationships.network.BindsTo
301       - binding_template_Vlan_1:
302           capability: tosca.capabilities.network.Bindable
303           node: template_VMInt_OAM_lb_1
304           relationship: tosca.relationships.network.BindsTo
305   groups:
306     main_group:
307       type: org.openecomp.groups.heat.HeatStack
308       properties:
309         heat_file: ../Artifacts/main.yml
310         description: |
311           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
312       members:
313       - cmaui_port_2
314       - test_nested_invalidConnection
315       - test_net2
316       - template_VMInt_OAM_lb_1
317       - test_resourceGroup
318       - test_net1
319       - test_Vlan2
320       - test_Vlan1
321       - server_cmaui_nova
322       - test_nested