push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / contrailv2VMinterface / listNet / expectedoutputfiles / MainServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: Main
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   NeutronPortGlobalTypes:
16     file: NeutronPortGlobalTypesServiceTemplate.yaml
17   NeutronNetGlobalTypes:
18     file: NeutronNetGlobalTypesServiceTemplate.yaml
19   CommonGlobalTypes:
20     file: CommonGlobalTypesServiceTemplate.yaml
21   ContrailAbstractSubstituteGlobalTypes:
22     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
23   ContrailNetworkRuleGlobalType:
24     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
25   NeutronSecurityRulesGlobalTypes:
26     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
27   NovaServerGlobalTypes:
28     file: NovaServerGlobalTypesServiceTemplate.yaml
29   ContrailV2VirtualMachineInterfaceGlobalType:
30     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
31 topology_template:
32   inputs:
33     template_PortTuple_LB1:
34       hidden: false
35       immutable: false
36       type: string
37       description: dummy
38     lb_st_interface_type_oam:
39       hidden: false
40       immutable: false
41       type: string
42       description: dummy
43     oam_sec_group_name:
44       hidden: false
45       immutable: false
46       type: string
47       description: dummy
48     nems_traffic_name:
49       hidden: false
50       immutable: false
51       type: string
52       description: dummy
53     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
54       hidden: false
55       immutable: false
56       type: string
57       description: dummy
58     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
59       hidden: false
60       immutable: false
61       type: string
62       description: dummy
63     jsa_net_name:
64       hidden: false
65       immutable: false
66       type: string
67       description: dummy
68     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
69       hidden: false
70       immutable: false
71       type: string
72       description: dummy
73   node_templates:
74     jsa_net3:
75       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
76       properties:
77         network_ipam_refs_data:
78         - network_ipam_refs_data_ipam_subnets:
79           - network_ipam_refs_data_ipam_subnets_subnet:
80               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
81                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
82               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
83                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
84             network_ipam_refs_data_ipam_subnets_addr_from_start:
85               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
86         network_name: aaa
87     template_VMInt_OAM_lb_5:
88       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
89       properties:
90         security_group_refs:
91         - get_input: oam_sec_group_name
92         virtual_network_refs: [
93           ]
94         virtual_machine_interface_properties:
95           virtual_machine_interface_properties_service_interface_type:
96             get_input: lb_st_interface_type_oam
97         port_tuple_refs:
98         - get_input: template_PortTuple_LB1
99     jsa_net2:
100       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
101       properties:
102         network_ipam_refs_data:
103         - network_ipam_refs_data_ipam_subnets:
104           - network_ipam_refs_data_ipam_subnets_subnet:
105               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
106                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
107               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
108                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
109             network_ipam_refs_data_ipam_subnets_addr_from_start:
110               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
111         network_name: aaa
112     template_VMInt_OAM_lb_6:
113       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
114       properties:
115         security_group_refs:
116         - get_input: oam_sec_group_name
117         virtual_network_refs:
118           get_attribute:
119           - jsa_net3
120           - fq_name
121         virtual_machine_interface_properties:
122           virtual_machine_interface_properties_service_interface_type:
123             get_input: lb_st_interface_type_oam
124         port_tuple_refs:
125         - get_input: template_PortTuple_LB1
126     template_VMInt_OAM_lb_7:
127       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
128       properties:
129         security_group_refs:
130         - get_input: oam_sec_group_name
131         virtual_machine_interface_properties:
132           virtual_machine_interface_properties_service_interface_type:
133             get_input: lb_st_interface_type_oam
134         port_tuple_refs:
135         - get_input: template_PortTuple_LB1
136     jsa_net5:
137       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
138       properties:
139         network_ipam_refs_data:
140         - network_ipam_refs_data_ipam_subnets:
141           - network_ipam_refs_data_ipam_subnets_subnet:
142               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
143                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
144               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
145                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
146             network_ipam_refs_data_ipam_subnets_addr_from_start:
147               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
148         network_name: aaa
149     jsa_net4:
150       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
151       properties:
152         network_name:
153           get_input: nems_traffic_name
154     template_VMInt_OAM_lb_1:
155       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
156       properties:
157         security_group_refs:
158         - get_input: oam_sec_group_name
159         virtual_network_refs:
160         - jsa_net1
161         - jsa_net5
162         virtual_machine_interface_properties:
163           virtual_machine_interface_properties_service_interface_type:
164             get_input: lb_st_interface_type_oam
165         port_tuple_refs:
166         - get_input: template_PortTuple_LB1
167       requirements:
168       - link:
169           capability: tosca.capabilities.network.Linkable
170           node: jsa_net1
171           relationship: tosca.relationships.network.LinksTo
172     template_VMInt_OAM_lb_2:
173       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
174       properties:
175         security_group_refs:
176         - get_input: oam_sec_group_name
177         virtual_network_refs:
178         - list_join:
179           - ':'
180           - get_attribute:
181             - jsa_net2
182             - fq_name
183         - list_join:
184           - ':'
185           - get_attribute:
186             - jsa_net5
187             - fq_name
188         virtual_machine_interface_properties:
189           virtual_machine_interface_properties_service_interface_type:
190             get_input: lb_st_interface_type_oam
191         port_tuple_refs:
192         - get_input: template_PortTuple_LB1
193       requirements:
194       - link:
195           capability: tosca.capabilities.network.Linkable
196           node: jsa_net2
197           relationship: tosca.relationships.network.LinksTo
198     jsa_net1:
199       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
200       properties:
201         network_ipam_refs_data:
202         - network_ipam_refs_data_ipam_subnets:
203           - network_ipam_refs_data_ipam_subnets_subnet:
204               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
205                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
206               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
207                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
208             network_ipam_refs_data_ipam_subnets_addr_from_start:
209               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
210         network_name: aaa
211     template_VMInt_OAM_lb_3:
212       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
213       properties:
214         security_group_refs:
215         - get_input: oam_sec_group_name
216         virtual_network_refs:
217         - get_attribute:
218           - jsa_net3
219           - fq_name
220         - get_attribute:
221           - jsa_net5
222           - fq_name
223         virtual_machine_interface_properties:
224           virtual_machine_interface_properties_service_interface_type:
225             get_input: lb_st_interface_type_oam
226         port_tuple_refs:
227         - get_input: template_PortTuple_LB1
228       requirements:
229       - link:
230           capability: tosca.capabilities.network.Linkable
231           node: jsa_net3
232           relationship: tosca.relationships.network.LinksTo
233     template_VMInt_OAM_lb_4:
234       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
235       properties:
236         security_group_refs:
237         - get_input: oam_sec_group_name
238         virtual_network_refs:
239         - get_attribute:
240           - jsa_net4
241           - fq_name
242         virtual_machine_interface_properties:
243           virtual_machine_interface_properties_service_interface_type:
244             get_input: lb_st_interface_type_oam
245         port_tuple_refs:
246         - get_input: template_PortTuple_LB1
247   groups:
248     hot_template:
249       type: org.openecomp.groups.heat.HeatStack
250       properties:
251         heat_file: ../Artifacts/hot_template.yml
252         description: cmaui server template for vMMSC
253       members:
254       - jsa_net3
255       - template_VMInt_OAM_lb_5
256       - jsa_net2
257       - template_VMInt_OAM_lb_6
258       - template_VMInt_OAM_lb_7
259       - jsa_net5
260       - jsa_net4
261       - template_VMInt_OAM_lb_1
262       - template_VMInt_OAM_lb_2
263       - jsa_net1
264       - template_VMInt_OAM_lb_3
265       - template_VMInt_OAM_lb_4