[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 / VMInterfaceToNettworkConnection / sharedAddOn / 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 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       type: list
16       description: CMAUI1, CMAUI2 server names
17       entry_schema:
18         type: string
19     p1:
20       hidden: false
21       immutable: false
22       type: string
23       description: UID of OAM network
24     template_PortTuple_LB1:
25       hidden: false
26       immutable: false
27       type: string
28     oam_sec_group_name:
29       hidden: false
30       immutable: false
31       type: string
32     lb_st_interface_type_oam:
33       hidden: false
34       immutable: false
35       type: string
36     security_group_name:
37       hidden: false
38       immutable: false
39       type: list
40       description: CMAUI1, CMAUI2 server names
41       entry_schema:
42         type: string
43     shared_network_id:
44       hidden: false
45       immutable: false
46       type: string
47       description: Flavor for CMAUI server
48     jsa_net_name:
49       hidden: false
50       immutable: false
51       type: string
52       description: network name of jsa log network
53     shared_network_id1:
54       hidden: false
55       immutable: false
56       type: string
57       description: Flavor for CMAUI server
58     cmaui_image:
59       hidden: false
60       immutable: false
61       type: string
62       description: Image for CMAUI server
63     cmaui_flavor:
64       hidden: false
65       immutable: false
66       type: string
67       description: Flavor for CMAUI server
68     shared_network_id2:
69       hidden: false
70       immutable: false
71       type: list
72       description: Flavor for CMAUI server
73       entry_schema:
74         type: string
75     availability_zone_0:
76       label: availabilityzone name
77       hidden: false
78       immutable: false
79       type: string
80       description: availabilityzone name
81     cmaui_oam_ips:
82       hidden: false
83       immutable: false
84       type: string
85   node_templates:
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         - get_input: shared_network_id
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: test_net
102           relationship: tosca.relationships.network.LinksTo
103       - binding:
104           capability: tosca.capabilities.network.Bindable
105           node: server_cmaui
106           relationship: tosca.relationships.network.BindsTo
107     template_VMInt_OAM_lb_2:
108       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
109       properties:
110         security_group_refs:
111         - get_input: oam_sec_group_name
112         virtual_network_refs:
113         - get_input: shared_network_id
114         - get_input: shared_network_id1
115         virtual_machine_interface_properties:
116           service_interface_type:
117             get_input: lb_st_interface_type_oam
118         port_tuple_refs:
119         - get_input: template_PortTuple_LB1
120       requirements:
121       - link:
122           capability: tosca.capabilities.network.Linkable
123           node: test_net
124           relationship: tosca.relationships.network.LinksTo
125       - binding:
126           capability: tosca.capabilities.network.Bindable
127           node: server_cmaui
128           relationship: tosca.relationships.network.BindsTo
129     template_VMInt_OAM_lb_3:
130       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
131       properties:
132         security_group_refs:
133         - get_input: oam_sec_group_name
134         virtual_network_refs:
135         - get_input:
136           - shared_network_id2
137           - 0
138         virtual_machine_interface_properties:
139           service_interface_type:
140             get_input: lb_st_interface_type_oam
141         port_tuple_refs:
142         - get_input: template_PortTuple_LB1
143     test_net1:
144       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
145       properties:
146         shared: true
147         network_name:
148           get_input: jsa_net_name
149     server_cmaui:
150       type: org.openecomp.resource.vfc.nodes.heat.cmaui
151       properties:
152         flavor:
153           get_input: cmaui_flavor
154         availability_zone:
155           get_input: availability_zone_0
156         image:
157           get_input: cmaui_image
158         contrail_service_instance_ind: true
159         name:
160           get_input:
161           - cmaui_names
162           - 0
163     test_net:
164       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
165       properties:
166         shared: true
167         network_name:
168           get_input: jsa_net_name
169   groups:
170     main_group:
171       type: org.openecomp.groups.heat.HeatStack
172       properties:
173         heat_file: ../Artifacts/main.yml
174         description: |
175           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
176       members:
177       - test_net1
178       - test_net
179     addOn_group:
180       type: org.openecomp.groups.heat.HeatStack
181       properties:
182         heat_file: ../Artifacts/addOn.yml
183         description: cmaui server template for vMMSC
184       members:
185       - template_VMInt_OAM_lb_1
186       - template_VMInt_OAM_lb_2
187       - template_VMInt_OAM_lb_3
188       - server_cmaui