557224978d9bb6fafccfabca72419175786eabb1
[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 topology_template:
8   inputs:
9     interface_param:
10       hidden: false
11       immutable: false
12       annotations:
13         source:
14           type: org.openecomp.annotations.Source
15           properties:
16             vf_module_label:
17             - hot_template
18             source_type: HEAT
19             param_name: interface_param
20       type: string
21       description: dummy
22     template_PortTuple_LB1:
23       hidden: false
24       immutable: false
25       annotations:
26         source:
27           type: org.openecomp.annotations.Source
28           properties:
29             vf_module_label:
30             - hot_template
31             source_type: HEAT
32             param_name: template_PortTuple_LB1
33       type: string
34       description: dummy
35     lb_st_interface_type_oam:
36       hidden: false
37       immutable: false
38       annotations:
39         source:
40           type: org.openecomp.annotations.Source
41           properties:
42             vf_module_label:
43             - hot_template
44             source_type: HEAT
45             param_name: lb_st_interface_type_oam
46       type: string
47       description: dummy
48     oam_sec_group_name:
49       hidden: false
50       immutable: false
51       annotations:
52         source:
53           type: org.openecomp.annotations.Source
54           properties:
55             vf_module_label:
56             - hot_template
57             source_type: HEAT
58             param_name: oam_sec_group_name
59       type: string
60       description: dummy
61     nems_traffic_name:
62       hidden: false
63       immutable: false
64       annotations:
65         source:
66           type: org.openecomp.annotations.Source
67           properties:
68             vf_module_label:
69             - hot_template
70             source_type: HEAT
71             param_name: nems_traffic_name
72       type: string
73       description: dummy
74     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
75       hidden: false
76       immutable: false
77       annotations:
78         source:
79           type: org.openecomp.annotations.Source
80           properties:
81             vf_module_label:
82             - hot_template
83             source_type: HEAT
84             param_name: network_ipam_refs_data_ipam_subnets_addr_from_start_true
85       type: string
86       description: dummy
87     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
88       hidden: false
89       immutable: false
90       annotations:
91         source:
92           type: org.openecomp.annotations.Source
93           properties:
94             vf_module_label:
95             - hot_template
96             source_type: HEAT
97             param_name: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
98       type: string
99       description: dummy
100     jsa_net_name:
101       hidden: false
102       immutable: false
103       annotations:
104         source:
105           type: org.openecomp.annotations.Source
106           properties:
107             vf_module_label:
108             - hot_template
109             source_type: HEAT
110             param_name: jsa_net_name
111       type: string
112       description: dummy
113     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
114       hidden: false
115       immutable: false
116       annotations:
117         source:
118           type: org.openecomp.annotations.Source
119           properties:
120             vf_module_label:
121             - hot_template
122             source_type: HEAT
123             param_name: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
124       type: string
125       description: dummy
126   node_templates:
127     jsa_net3:
128       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
129       properties:
130         network_ipam_refs_data:
131         - network_ipam_refs_data_ipam_subnets:
132           - network_ipam_refs_data_ipam_subnets_subnet:
133               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
134                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
135               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
136                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
137             network_ipam_refs_data_ipam_subnets_addr_from_start:
138               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
139         network_name: aaa
140     jsa_net2:
141       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
142       properties:
143         network_ipam_refs_data:
144         - network_ipam_refs_data_ipam_subnets:
145           - network_ipam_refs_data_ipam_subnets_subnet:
146               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
147                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
148               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
149                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
150             network_ipam_refs_data_ipam_subnets_addr_from_start:
151               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
152         network_name: aaa
153     jsa_net4:
154       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
155       properties:
156         network_name:
157           get_input: nems_traffic_name
158     template_VMInt_OAM_lb_1:
159       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
160       properties:
161         security_group_refs:
162         - get_input: oam_sec_group_name
163         virtual_network_refs:
164         - jsa_net1
165         virtual_machine_interface_properties:
166           service_interface_type:
167             get_input: lb_st_interface_type_oam
168         port_tuple_refs:
169         - get_input: template_PortTuple_LB1
170       requirements:
171       - link:
172           capability: tosca.capabilities.network.Linkable
173           node: jsa_net1
174           relationship: tosca.relationships.network.LinksTo
175     template_VMInt_OAM_lb_2:
176       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
177       properties:
178         security_group_refs:
179         - get_input: oam_sec_group_name
180         virtual_network_refs:
181         - list_join:
182           - ':'
183           - get_attribute:
184             - jsa_net2
185             - fq_name
186         virtual_machine_interface_properties:
187           service_interface_type:
188             get_input: lb_st_interface_type_oam
189         port_tuple_refs:
190         - get_input: template_PortTuple_LB1
191       requirements:
192       - link:
193           capability: tosca.capabilities.network.Linkable
194           node: jsa_net2
195           relationship: tosca.relationships.network.LinksTo
196     jsa_net1:
197       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
198       properties:
199         network_ipam_refs_data:
200         - network_ipam_refs_data_ipam_subnets:
201           - network_ipam_refs_data_ipam_subnets_subnet:
202               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
203                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
204               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
205                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
206             network_ipam_refs_data_ipam_subnets_addr_from_start:
207               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
208         network_name: aaa
209     template_VMInt_OAM_lb_3:
210       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
211       properties:
212         security_group_refs:
213         - get_input: oam_sec_group_name
214         virtual_network_refs:
215         - get_attribute:
216           - jsa_net3
217           - fq_name
218         virtual_machine_interface_properties:
219           service_interface_type:
220             get_input: lb_st_interface_type_oam
221         port_tuple_refs:
222         - get_input: template_PortTuple_LB1
223       requirements:
224       - link:
225           capability: tosca.capabilities.network.Linkable
226           node: jsa_net3
227           relationship: tosca.relationships.network.LinksTo
228     template_VMInt_OAM_lb_4:
229       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
230       properties:
231         security_group_refs:
232         - get_input: oam_sec_group_name
233         virtual_network_refs:
234         - get_attribute:
235           - jsa_net4
236           - fq_name
237         virtual_machine_interface_properties:
238           service_interface_type:
239             get_input: lb_st_interface_type_oam
240         port_tuple_refs:
241         - get_input: template_PortTuple_LB1
242   groups:
243     hot_template_group:
244       type: org.openecomp.groups.heat.HeatStack
245       properties:
246         heat_file: ../Artifacts/hot_template.yml
247         description: cmaui server template for vMMSC
248       members:
249       - jsa_net3
250       - jsa_net2
251       - jsa_net4
252       - template_VMInt_OAM_lb_1
253       - template_VMInt_OAM_lb_2
254       - jsa_net1
255       - template_VMInt_OAM_lb_3
256       - template_VMInt_OAM_lb_4