push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / porttonetconnection / 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     p3:
55       hidden: false
56       immutable: false
57       type: string
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     security_group_name:
69       hidden: false
70       immutable: false
71       type: list
72       description: CMAUI1, CMAUI2 server names
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     cmaui_port_2:
87       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
88       properties:
89         replacement_policy: AUTO
90         security_groups:
91         - get_input: security_group_name
92         fixed_ips:
93         - ip_address:
94             get_input:
95             - cmaui_oam_ips
96             - 0
97         network:
98           get_input: p3
99       requirements:
100       - binding:
101           capability: tosca.capabilities.network.Bindable
102           node: server_cmaui
103           relationship: tosca.relationships.network.BindsTo
104     server_cmaui:
105       type: org.openecomp.resource.vfc.nodes.heat.cmaui
106       properties:
107         flavor:
108           get_input: cmaui_flavor
109         availability_zone:
110           get_input: availability_zone_0
111         image:
112           get_input: cmaui_image
113         name:
114           get_input:
115           - cmaui_names
116           - 0
117     cmaui_port_1:
118       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
119       properties:
120         replacement_policy: AUTO
121         security_groups:
122         - get_input: security_group_name
123         fixed_ips:
124         - ip_address:
125             get_input:
126             - cmaui_oam_ips
127             - 0
128         network:
129           get_input: p2
130       requirements:
131       - binding:
132           capability: tosca.capabilities.network.Bindable
133           node: server_cmaui
134           relationship: tosca.relationships.network.BindsTo
135     cmaui_port_0:
136       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
137       properties:
138         replacement_policy: AUTO
139         security_groups:
140         - get_input: security_group_name
141         fixed_ips:
142         - ip_address:
143             get_input:
144             - cmaui_oam_ips
145             - 0
146         network:
147           get_input: p1
148       requirements:
149       - binding:
150           capability: tosca.capabilities.network.Bindable
151           node: server_cmaui
152           relationship: tosca.relationships.network.BindsTo
153   groups:
154     nested:
155       type: org.openecomp.groups.heat.HeatStack
156       properties:
157         heat_file: ../Artifacts/nested.yml
158         description: cmaui server template for vMMSC
159       members:
160       - cmaui_port_2
161       - server_cmaui
162       - cmaui_port_1
163       - cmaui_port_0
164   substitution_mappings:
165     node_type: org.openecomp.resource.abstract.nodes.heat.nested
166     capabilities:
167       host_server_cmaui:
168       - server_cmaui
169       - host
170       os_server_cmaui:
171       - server_cmaui
172       - os
173       endpoint_server_cmaui:
174       - server_cmaui
175       - endpoint
176       binding_server_cmaui:
177       - server_cmaui
178       - binding
179       attachment_cmaui_port_2:
180       - cmaui_port_2
181       - attachment
182       scalable_server_cmaui:
183       - server_cmaui
184       - scalable
185       attachment_cmaui_port_0:
186       - cmaui_port_0
187       - attachment
188       attachment_cmaui_port_1:
189       - cmaui_port_1
190       - attachment
191     requirements:
192       local_storage_server_cmaui:
193       - server_cmaui
194       - local_storage
195       link_cmaui_port_0:
196       - cmaui_port_0
197       - link
198       link_cmaui_port_2:
199       - cmaui_port_2
200       - link
201       link_cmaui_port_1:
202       - cmaui_port_1
203       - link