push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / VMInterfaceToNettworkConnection / nested / expectedoutputfiles / nestedServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
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   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.cmaui:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     cmaui_names:
39       hidden: false
40       immutable: false
41       type: list
42       description: CMAUI1, CMAUI2 server names
43       entry_schema:
44         type: string
45     p1:
46       hidden: false
47       immutable: false
48       type: string
49       description: UID of OAM network
50     p2:
51       hidden: false
52       immutable: false
53       type: string
54       description: UID of OAM network
55     cmaui_image:
56       hidden: false
57       immutable: false
58       type: string
59       description: Image for CMAUI server
60     template_PortTuple_LB1:
61       hidden: false
62       immutable: false
63       type: string
64     cmaui_flavor:
65       hidden: false
66       immutable: false
67       type: string
68       description: Flavor for CMAUI server
69     oam_sec_group_name:
70       hidden: false
71       immutable: false
72       type: string
73     lb_st_interface_type_oam:
74       hidden: false
75       immutable: false
76       type: string
77     security_group_name:
78       hidden: false
79       immutable: false
80       type: list
81       description: CMAUI1, CMAUI2 server names
82       entry_schema:
83         type: string
84     availability_zone_0:
85       label: availabilityzone name
86       hidden: false
87       immutable: false
88       type: string
89       description: availabilityzone name
90     cmaui_oam_ips:
91       hidden: false
92       immutable: false
93       type: string
94   node_templates:
95     template_VMInt_OAM_lb_1:
96       type: org.openecomp.resource.cp.nodes.heat.contrailV2.VirtualMachineInterface
97       properties:
98         security_group_refs:
99         - get_input: oam_sec_group_name
100         virtual_network_refs:
101         - get_input: p1
102         virtual_machine_interface_properties:
103           virtual_machine_interface_properties_service_interface_type:
104             get_input: lb_st_interface_type_oam
105         port_tuple_refs:
106         - get_input: template_PortTuple_LB1
107       requirements:
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: server_cmaui
111           relationship: tosca.relationships.network.BindsTo
112     template_VMInt_OAM_lb_2:
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_input: p1
119         - get_input: p2
120         virtual_machine_interface_properties:
121           virtual_machine_interface_properties_service_interface_type:
122             get_input: lb_st_interface_type_oam
123         port_tuple_refs:
124         - get_input: template_PortTuple_LB1
125       requirements:
126       - binding:
127           capability: tosca.capabilities.network.Bindable
128           node: server_cmaui
129           relationship: tosca.relationships.network.BindsTo
130     server_cmaui:
131       type: org.openecomp.resource.vfc.nodes.heat.cmaui
132       properties:
133         flavor:
134           get_input: cmaui_flavor
135         availability_zone:
136           get_input: availability_zone_0
137         image:
138           get_input: cmaui_image
139         contrail_service_instance_ind: true
140         name:
141           get_input:
142           - cmaui_names
143           - 0
144   groups:
145     nested:
146       type: org.openecomp.groups.heat.HeatStack
147       properties:
148         heat_file: ../Artifacts/nested.yml
149         description: cmaui server template for vMMSC
150       members:
151       - template_VMInt_OAM_lb_1
152       - template_VMInt_OAM_lb_2
153       - server_cmaui
154   substitution_mappings:
155     node_type: org.openecomp.resource.abstract.nodes.heat.nested
156     capabilities:
157       host_server_cmaui:
158       - server_cmaui
159       - host
160       os_server_cmaui:
161       - server_cmaui
162       - os
163       endpoint_server_cmaui:
164       - server_cmaui
165       - endpoint
166       binding_server_cmaui:
167       - server_cmaui
168       - binding
169       scalable_server_cmaui:
170       - server_cmaui
171       - scalable
172     requirements:
173       link_template_VMInt_OAM_lb_1:
174       - template_VMInt_OAM_lb_1
175       - link
176       local_storage_server_cmaui:
177       - server_cmaui
178       - local_storage
179       link_template_VMInt_OAM_lb_2:
180       - template_VMInt_OAM_lb_2
181       - link