push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / multi / 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 node_types:
32   org.openecomp.resource.vfc.nodes.heat.cmaui:
33     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
34 topology_template:
35   inputs:
36     cmaui_names:
37       hidden: false
38       immutable: false
39       type: list
40       description: CMAUI1, CMAUI2 server names
41       entry_schema:
42         type: string
43     p1:
44       hidden: false
45       immutable: false
46       type: string
47       description: UID of OAM network
48     template_PortTuple_LB1:
49       hidden: false
50       immutable: false
51       type: string
52     oam_sec_group_name:
53       hidden: false
54       immutable: false
55       type: string
56     lb_st_interface_type_oam:
57       hidden: false
58       immutable: false
59       type: string
60     security_group_name:
61       hidden: false
62       immutable: false
63       type: list
64       description: CMAUI1, CMAUI2 server names
65       entry_schema:
66         type: string
67     shared_network_id:
68       hidden: false
69       immutable: false
70       type: string
71       description: Flavor for CMAUI server
72     jsa_net_name:
73       hidden: false
74       immutable: false
75       type: string
76       description: network name of jsa log network
77     shared_network_id1:
78       hidden: false
79       immutable: false
80       type: string
81       description: Flavor for CMAUI server
82     cmaui_image:
83       hidden: false
84       immutable: false
85       type: string
86       description: Image for CMAUI server
87     cmaui_flavor:
88       hidden: false
89       immutable: false
90       type: string
91       description: Flavor for CMAUI server
92     availability_zone_0:
93       label: availabilityzone name
94       hidden: false
95       immutable: false
96       type: string
97       description: availabilityzone name
98     cmaui_oam_ips:
99       hidden: false
100       immutable: false
101       type: string
102   node_templates:
103     template_VMInt_OAM_lb_1:
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         - get_input: shared_network_id
110         virtual_machine_interface_properties:
111           virtual_machine_interface_properties_service_interface_type:
112             get_input: lb_st_interface_type_oam
113         port_tuple_refs:
114         - get_input: template_PortTuple_LB1
115       requirements:
116       - link:
117           capability: tosca.capabilities.network.Linkable
118           node: test_net
119           relationship: tosca.relationships.network.LinksTo
120       - binding:
121           capability: tosca.capabilities.network.Bindable
122           node: server_cmaui
123           relationship: tosca.relationships.network.BindsTo
124     template_VMInt_OAM_lb_2:
125       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
126       properties:
127         security_group_refs:
128         - get_input: oam_sec_group_name
129         virtual_network_refs:
130         - get_input: shared_network_id
131         - get_input: shared_network_id1
132         virtual_machine_interface_properties:
133           virtual_machine_interface_properties_service_interface_type:
134             get_input: lb_st_interface_type_oam
135         port_tuple_refs:
136         - get_input: template_PortTuple_LB1
137       requirements:
138       - link:
139           capability: tosca.capabilities.network.Linkable
140           node: test_net
141           relationship: tosca.relationships.network.LinksTo
142       - binding:
143           capability: tosca.capabilities.network.Bindable
144           node: server_cmaui
145           relationship: tosca.relationships.network.BindsTo
146     test_net1:
147       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
148       properties:
149         shared: true
150         network_name:
151           get_input: jsa_net_name
152     server_cmaui:
153       type: org.openecomp.resource.vfc.nodes.heat.cmaui
154       properties:
155         flavor:
156           get_input: cmaui_flavor
157         availability_zone:
158           get_input: availability_zone_0
159         image:
160           get_input: cmaui_image
161         contrail_service_instance_ind: true
162         name:
163           get_input:
164           - cmaui_names
165           - 0
166     test_net:
167       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
168       properties:
169         shared: true
170         network_name:
171           get_input: jsa_net_name
172   groups:
173     addOn:
174       type: org.openecomp.groups.heat.HeatStack
175       properties:
176         heat_file: ../Artifacts/addOn.yml
177         description: cmaui server template for vMMSC
178       members:
179       - template_VMInt_OAM_lb_1
180       - template_VMInt_OAM_lb_2
181       - server_cmaui
182     main:
183       type: org.openecomp.groups.heat.HeatStack
184       properties:
185         heat_file: ../Artifacts/main.yml
186         description: |
187           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
188       members:
189       - test_net1
190       - test_net