[SDC-29] Amdocs OnBoard 1707 initial commit.
[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 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 topology_template:
8   inputs:
9     interface_param:
10       hidden: false
11       immutable: false
12       type: string
13       description: dummy
14     template_PortTuple_LB1:
15       hidden: false
16       immutable: false
17       type: string
18       description: dummy
19     lb_st_interface_type_oam:
20       hidden: false
21       immutable: false
22       type: string
23       description: dummy
24     oam_sec_group_name:
25       hidden: false
26       immutable: false
27       type: string
28       description: dummy
29     nems_traffic_name:
30       hidden: false
31       immutable: false
32       type: string
33       description: dummy
34     network_ipam_refs_data_ipam_subnets_addr_from_start_true:
35       hidden: false
36       immutable: false
37       type: string
38       description: dummy
39     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2:
40       hidden: false
41       immutable: false
42       type: string
43       description: dummy
44     jsa_net_name:
45       hidden: false
46       immutable: false
47       type: string
48       description: dummy
49     network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2:
50       hidden: false
51       immutable: false
52       type: string
53       description: dummy
54   node_templates:
55     jsa_net3:
56       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
57       properties:
58         network_ipam_refs_data:
59         - network_ipam_refs_data_ipam_subnets:
60           - network_ipam_refs_data_ipam_subnets_subnet:
61               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
62                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
63               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
64                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
65             network_ipam_refs_data_ipam_subnets_addr_from_start:
66               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
67         network_name: aaa
68     jsa_net2:
69       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
70       properties:
71         network_ipam_refs_data:
72         - network_ipam_refs_data_ipam_subnets:
73           - network_ipam_refs_data_ipam_subnets_subnet:
74               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
75                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
76               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
77                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
78             network_ipam_refs_data_ipam_subnets_addr_from_start:
79               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
80         network_name: aaa
81     jsa_net4:
82       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
83       properties:
84         network_name:
85           get_input: nems_traffic_name
86     template_VMInt_OAM_lb_1:
87       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
88       properties:
89         security_group_refs:
90         - get_input: oam_sec_group_name
91         virtual_network_refs:
92         - jsa_net1
93         virtual_machine_interface_properties:
94           service_interface_type:
95             get_input: lb_st_interface_type_oam
96         port_tuple_refs:
97         - get_input: template_PortTuple_LB1
98       requirements:
99       - link:
100           capability: tosca.capabilities.network.Linkable
101           node: jsa_net1
102           relationship: tosca.relationships.network.LinksTo
103     template_VMInt_OAM_lb_2:
104       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
105       properties:
106         security_group_refs:
107         - get_input: oam_sec_group_name
108         virtual_network_refs:
109         - list_join:
110           - ':'
111           - get_attribute:
112             - jsa_net2
113             - fq_name
114         virtual_machine_interface_properties:
115           service_interface_type:
116             get_input: lb_st_interface_type_oam
117         port_tuple_refs:
118         - get_input: template_PortTuple_LB1
119       requirements:
120       - link:
121           capability: tosca.capabilities.network.Linkable
122           node: jsa_net2
123           relationship: tosca.relationships.network.LinksTo
124     jsa_net1:
125       type: org.openecomp.resource.vl.nodes.heat.network.contrailV2.VirtualNetwork
126       properties:
127         network_ipam_refs_data:
128         - network_ipam_refs_data_ipam_subnets:
129           - network_ipam_refs_data_ipam_subnets_subnet:
130               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len:
131                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_len_2
132               network_ipam_refs_data_ipam_subnets_subnet_ip_prefix:
133                 get_input: network_ipam_refs_data_ipam_subnets_subnet_ip_prefix_2
134             network_ipam_refs_data_ipam_subnets_addr_from_start:
135               get_input: network_ipam_refs_data_ipam_subnets_addr_from_start_true
136         network_name: aaa
137     template_VMInt_OAM_lb_3:
138       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
139       properties:
140         security_group_refs:
141         - get_input: oam_sec_group_name
142         virtual_network_refs:
143         - get_attribute:
144           - jsa_net3
145           - fq_name
146         virtual_machine_interface_properties:
147           service_interface_type:
148             get_input: lb_st_interface_type_oam
149         port_tuple_refs:
150         - get_input: template_PortTuple_LB1
151       requirements:
152       - link:
153           capability: tosca.capabilities.network.Linkable
154           node: jsa_net3
155           relationship: tosca.relationships.network.LinksTo
156     template_VMInt_OAM_lb_4:
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_net4
164           - fq_name
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   groups:
171     hot_template_group:
172       type: org.openecomp.groups.heat.HeatStack
173       properties:
174         heat_file: ../Artifacts/hot_template.yml
175         description: cmaui server template for vMMSC
176       members:
177       - jsa_net3
178       - jsa_net2
179       - jsa_net4
180       - template_VMInt_OAM_lb_1
181       - template_VMInt_OAM_lb_2
182       - jsa_net1
183       - template_VMInt_OAM_lb_3
184       - template_VMInt_OAM_lb_4