push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / contrailv2VMinterface / oneNet / 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     jsa_net2:
88       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
89       properties:
90         network_ipam_refs_data:
91         - network_ipam_refs_data_ipam_subnets:
92           - network_ipam_refs_data_ipam_subnets_subnet:
93               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
94                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
95               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
96                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
97             network_ipam_refs_data_ipam_subnets_addr_from_start:
98               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
99         network_name: aaa
100     jsa_net4:
101       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
102       properties:
103         network_name:
104           get_input: nems_traffic_name
105     template_VMInt_OAM_lb_1:
106       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
107       properties:
108         security_group_refs:
109         - get_input: oam_sec_group_name
110         virtual_network_refs:
111         - jsa_net1
112         virtual_machine_interface_properties:
113           virtual_machine_interface_properties_service_interface_type:
114             get_input: lb_st_interface_type_oam
115         port_tuple_refs:
116         - get_input: template_PortTuple_LB1
117       requirements:
118       - link:
119           capability: tosca.capabilities.network.Linkable
120           node: jsa_net1
121           relationship: tosca.relationships.network.LinksTo
122     template_VMInt_OAM_lb_2:
123       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
124       properties:
125         security_group_refs:
126         - get_input: oam_sec_group_name
127         virtual_network_refs:
128         - list_join:
129           - ':'
130           - get_attribute:
131             - jsa_net2
132             - fq_name
133         virtual_machine_interface_properties:
134           virtual_machine_interface_properties_service_interface_type:
135             get_input: lb_st_interface_type_oam
136         port_tuple_refs:
137         - get_input: template_PortTuple_LB1
138       requirements:
139       - link:
140           capability: tosca.capabilities.network.Linkable
141           node: jsa_net2
142           relationship: tosca.relationships.network.LinksTo
143     jsa_net1:
144       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
145       properties:
146         network_ipam_refs_data:
147         - network_ipam_refs_data_ipam_subnets:
148           - network_ipam_refs_data_ipam_subnets_subnet:
149               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
150                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
151               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
152                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
153             network_ipam_refs_data_ipam_subnets_addr_from_start:
154               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
155         network_name: aaa
156     template_VMInt_OAM_lb_3:
157       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
158       properties:
159         security_group_refs:
160         - get_input: oam_sec_group_name
161         virtual_network_refs:
162         - get_attribute:
163           - jsa_net3
164           - fq_name
165         virtual_machine_interface_properties:
166           virtual_machine_interface_properties_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_net3
174           relationship: tosca.relationships.network.LinksTo
175     template_VMInt_OAM_lb_4:
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         - get_attribute:
182           - jsa_net4
183           - fq_name
184         virtual_machine_interface_properties:
185           virtual_machine_interface_properties_service_interface_type:
186             get_input: lb_st_interface_type_oam
187         port_tuple_refs:
188         - get_input: template_PortTuple_LB1
189   groups:
190     hot_template:
191       type: org.openecomp.groups.heat.HeatStack
192       properties:
193         heat_file: ../Artifacts/hot_template.yml
194         description: cmaui server template for vMMSC
195       members:
196       - jsa_net3
197       - jsa_net2
198       - jsa_net4
199       - template_VMInt_OAM_lb_1
200       - template_VMInt_OAM_lb_2
201       - jsa_net1
202       - template_VMInt_OAM_lb_3
203       - template_VMInt_OAM_lb_4