87cb0f77994845392bc2f6e1d7cf875599cbad93
[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     cmaui_image:
22       hidden: false
23       immutable: false
24       type: string
25       description: Image for CMAUI server
26     template_PortTuple_LB1:
27       hidden: false
28       immutable: false
29       type: string
30     cmaui_flavor:
31       hidden: false
32       immutable: false
33       type: string
34       description: Flavor for CMAUI server
35     oam_sec_group_name:
36       hidden: false
37       immutable: false
38       type: string
39     lb_st_interface_type_oam:
40       hidden: false
41       immutable: false
42       type: string
43     security_group_name:
44       hidden: false
45       immutable: false
46       type: list
47       description: CMAUI1, CMAUI2 server names
48       entry_schema:
49         type: string
50     availability_zone_0:
51       label: availabilityzone name
52       hidden: false
53       immutable: false
54       type: string
55       description: availabilityzone name
56     cmaui_oam_ips:
57       hidden: false
58       immutable: false
59       type: string
60     contrail_net_name:
61       hidden: false
62       immutable: false
63       type: string
64       description: network name of jsa log network
65     jsa_net_name:
66       hidden: false
67       immutable: false
68       type: string
69     jsa_name:
70       hidden: false
71       immutable: false
72       type: string
73       description: network name of jsa log network
74   node_templates:
75     cmaui_port_2:
76       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
77       properties:
78         replacement_policy: AUTO
79         ip_requirements:
80         - ip_version: 4
81           ip_count_required:
82             is_required: true
83           floating_ip_count_required:
84             is_required: false
85         security_groups:
86         - get_input: security_group_name
87         fixed_ips:
88         - ip_address:
89             get_input:
90             - cmaui_oam_ips
91             - 0
92         mac_requirements:
93           mac_count_required:
94             is_required: false
95         network: test_net1
96       requirements:
97       - link:
98           capability: tosca.capabilities.network.Linkable
99           node: test_net1
100           relationship: tosca.relationships.network.LinksTo
101       - binding:
102           capability: tosca.capabilities.network.Bindable
103           node: server_cmaui_nova
104           relationship: tosca.relationships.network.BindsTo
105     test_nested1Level:
106       type: org.openecomp.resource.abstract.nodes.heat.nested1
107       directives:
108       - substitutable
109       properties:
110         service_template_filter:
111           substitute_service_template: nested1ServiceTemplate.yaml
112         net2:
113           get_attribute:
114           - test_contrailV2_net2
115           - fq_name
116         net1: test_net1
117         port1: template_VMInt_OAM_lb_1
118         port2: cmaui_port_2
119       requirements:
120       - link_template_Vlan_2:
121           capability: tosca.capabilities.network.Linkable
122           node: test_contrailV2_net2
123           relationship: tosca.relationships.network.LinksTo
124       - link_template_Vlan_1:
125           capability: tosca.capabilities.network.Linkable
126           node: test_net1
127           relationship: tosca.relationships.network.LinksTo
128       - link_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:
129           capability: tosca.capabilities.network.Linkable
130           node: test_net1
131           relationship: tosca.relationships.network.LinksTo
132       - link_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:
133           capability: tosca.capabilities.network.Linkable
134           node: test_net1
135           relationship: tosca.relationships.network.LinksTo
136       - link_template_Vlan_6_test_nested3Level_test_nested2Level:
137           capability: tosca.capabilities.network.Linkable
138           node: test_net1
139           relationship: tosca.relationships.network.LinksTo
140       - link_template_Vlan_5_test_nested3Level_test_nested2Level:
141           capability: tosca.capabilities.network.Linkable
142           node: test_net1
143           relationship: tosca.relationships.network.LinksTo
144       - link_template_Vlan_4_test_nested2Level:
145           capability: tosca.capabilities.network.Linkable
146           node: test_contrailV2_net2
147           relationship: tosca.relationships.network.LinksTo
148       - link_template_Vlan_3_test_nested2Level:
149           capability: tosca.capabilities.network.Linkable
150           node: test_contrailV2_net2
151           relationship: tosca.relationships.network.LinksTo
152       - binding_template_Vlan_2:
153           capability: tosca.capabilities.network.Bindable
154           node: cmaui_port_2
155           relationship: tosca.relationships.network.BindsTo
156       - binding_template_Vlan_1:
157           capability: tosca.capabilities.network.Bindable
158           node: template_VMInt_OAM_lb_1
159           relationship: tosca.relationships.network.BindsTo
160       - binding_template_Vlan_8_test_nested4Level_test_nested3Level_test_nested2Level:
161           capability: tosca.capabilities.network.Bindable
162           node: template_VMInt_OAM_lb_1
163           relationship: tosca.relationships.network.BindsTo
164       - binding_template_Vlan_7_test_nested4Level_test_nested3Level_test_nested2Level:
165           capability: tosca.capabilities.network.Bindable
166           node: template_VMInt_OAM_lb_1
167           relationship: tosca.relationships.network.BindsTo
168       - binding_template_Vlan_6_test_nested3Level_test_nested2Level:
169           capability: tosca.capabilities.network.Bindable
170           node: template_VMInt_OAM_lb_1
171           relationship: tosca.relationships.network.BindsTo
172       - binding_template_Vlan_5_test_nested3Level_test_nested2Level:
173           capability: tosca.capabilities.network.Bindable
174           node: template_VMInt_OAM_lb_1
175           relationship: tosca.relationships.network.BindsTo
176       - binding_template_Vlan_4_test_nested2Level:
177           capability: tosca.capabilities.network.Bindable
178           node: template_VMInt_OAM_lb_1
179           relationship: tosca.relationships.network.BindsTo
180       - binding_template_Vlan_3_test_nested2Level:
181           capability: tosca.capabilities.network.Bindable
182           node: template_VMInt_OAM_lb_1
183           relationship: tosca.relationships.network.BindsTo
184     test_contrailV2_net2:
185       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
186       properties:
187         network_name:
188           get_input: contrail_net_name
189     template_VMInt_OAM_lb_1:
190       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
191       properties:
192         security_group_refs:
193         - get_input: oam_sec_group_name
194         virtual_network_refs:
195         - test_net1
196         virtual_machine_interface_properties:
197           service_interface_type:
198             get_input: lb_st_interface_type_oam
199         port_tuple_refs:
200         - get_input: template_PortTuple_LB1
201       requirements:
202       - link:
203           capability: tosca.capabilities.network.Linkable
204           node: test_net1
205           relationship: tosca.relationships.network.LinksTo
206       - binding:
207           capability: tosca.capabilities.network.Bindable
208           node: server_cmaui_nova
209           relationship: tosca.relationships.network.BindsTo
210     test_resourceGroup:
211       type: org.openecomp.resource.abstract.nodes.heat.nested3
212       directives:
213       - substitutable
214       properties:
215         service_template_filter:
216           substitute_service_template: nested3ServiceTemplate.yaml
217           count: 9
218           mandatory: true
219         net1:
220           list_join:
221           - ':'
222           - get_attribute:
223             - test_contrailV2_net2
224             - fq_name
225         indx:
226           get_property:
227           - SELF
228           - service_template_filter
229           - index_value
230         port1: cmaui_port_2
231       requirements:
232       - link_template_Vlan_7_test_nested4Level:
233           capability: tosca.capabilities.network.Linkable
234           node: test_contrailV2_net2
235           relationship: tosca.relationships.network.LinksTo
236       - link_template_Vlan_6:
237           capability: tosca.capabilities.network.Linkable
238           node: test_contrailV2_net2
239           relationship: tosca.relationships.network.LinksTo
240       - binding_template_Vlan_7_test_nested4Level:
241           capability: tosca.capabilities.network.Bindable
242           node: cmaui_port_2
243           relationship: tosca.relationships.network.BindsTo
244       - binding_template_Vlan_6:
245           capability: tosca.capabilities.network.Bindable
246           node: cmaui_port_2
247           relationship: tosca.relationships.network.BindsTo
248     test_net1:
249       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
250       properties:
251         shared: true
252         network_name:
253           get_input: jsa_net_name
254     test_nestedInvalidConnection:
255       type: org.openecomp.resource.abstract.nodes.heat.nested1
256       directives:
257       - substitutable
258       properties:
259         service_template_filter:
260           substitute_service_template: nested1ServiceTemplate.yaml
261         net1: server_cmaui_nova
262         port1: server_cmaui_nova
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   groups:
278     main_group:
279       type: org.openecomp.groups.heat.HeatStack
280       properties:
281         heat_file: ../Artifacts/main.yml
282         description: |
283           Version 2.0 02-09-2016 (Authors: Paul Phillips, pnet2854 PROD)
284       members:
285       - cmaui_port_2
286       - test_nested1Level
287       - test_contrailV2_net2
288       - template_VMInt_OAM_lb_1
289       - test_resourceGroup
290       - test_net1
291       - test_nestedInvalidConnection
292       - server_cmaui_nova