push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / baseResourceTranslation / 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     cmaui_cinder_volume_size:
44       label: CMAUI Cinder volume size
45       hidden: false
46       immutable: false
47       type: float
48       description: the size of the CMAUI Cinder volume
49     timezone:
50       label: timezone
51       hidden: false
52       immutable: false
53       type: string
54       description: timezone
55     security_group_name:
56       label: security group name
57       hidden: false
58       immutable: false
59       type: string
60       description: the name of security group
61     oam_network_netmask:
62       label: oam network netmask
63       hidden: false
64       immutable: false
65       type: string
66       description: oam network gateway
67     cmaui_image:
68       hidden: false
69       immutable: false
70       type: string
71       description: Image for CMAUI server
72     vnf_id:
73       hidden: false
74       immutable: false
75       type: string
76       description: Unique ID for this VNF instance
77       default: This_is_ths_MMSC-CMAUI_id
78     cmaui_flavor:
79       hidden: false
80       immutable: false
81       type: string
82       description: Flavor for CMAUI server
83     oam_network_gateway:
84       label: oam network gateway
85       hidden: false
86       immutable: false
87       type: string
88       description: oam network gateway
89     availability_zone_0:
90       label: availabilityzone name
91       hidden: false
92       immutable: false
93       type: string
94       description: availabilityzone name
95     cmaui_oam_ips:
96       label: CMAUI oam_net IP addresses
97       hidden: false
98       immutable: false
99       type: list
100       description: CMAUI oam_net IP addresses
101       entry_schema:
102         type: string
103     external_dns:
104       label: dns server
105       hidden: false
106       immutable: false
107       type: string
108       description: dns server
109     oam_net_name:
110       hidden: false
111       immutable: false
112       type: string
113       description: UID of OAM network
114     external_ntp:
115       label: ntp server
116       hidden: false
117       immutable: false
118       type: string
119       description: ntp server
120     CMAUI_volume_type:
121       label: CMAUI vm volume type
122       hidden: false
123       immutable: false
124       type: string
125       description: the name of the target volume backend
126   node_templates:
127     server_dependOnString:
128       type: org.openecomp.resource.vfc.nodes.heat.cmaui
129       properties:
130         flavor:
131           get_input: cmaui_flavor
132         availability_zone:
133           get_input: availability_zone_0
134         image:
135           get_input: cmaui_image
136         name:
137           get_input:
138           - cmaui_names
139           - 0
140       requirements:
141       - dependency:
142           capability: tosca.capabilities.Node
143           node: cmaui_volume
144           relationship: tosca.relationships.DependsOn
145     server_cmaui:
146       type: org.openecomp.resource.vfc.nodes.heat.cmaui
147       properties:
148         flavor:
149           get_input: cmaui_flavor
150         availability_zone:
151           get_input: availability_zone_0
152         image:
153           get_input: cmaui_image
154         metadata:
155           vnf_id:
156             get_input: vnf_id
157         user_data_format: RAW
158         name:
159           get_input:
160           - cmaui_names
161           - 0
162       requirements:
163       - dependency:
164           capability: tosca.capabilities.Node
165           node: cmaui_volume
166           relationship: tosca.relationships.DependsOn
167       - dependency:
168           capability: tosca.capabilities.Node
169           node: cmaui_port_0
170           relationship: tosca.relationships.DependsOn
171       - local_storage:
172           capability: tosca.capabilities.Attachment
173           node: cmaui_volume
174           relationship: cmaui_volume_attachment
175     cmaui_volume:
176       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
177       properties:
178         volume_type:
179           get_input: CMAUI_volume_type
180         size: '(get_input : cmaui_cinder_volume_size) * 1024'
181     cmaui_port_0:
182       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
183       properties:
184         replacement_policy: AUTO
185         security_groups:
186         - get_input: security_group_name
187         fixed_ips:
188         - ip_address:
189             get_input:
190             - cmaui_oam_ips
191             - 0
192         network:
193           get_input: oam_net_name
194       requirements:
195       - binding:
196           capability: tosca.capabilities.network.Bindable
197           node: server_cmaui
198           relationship: tosca.relationships.network.BindsTo
199   relationship_templates:
200     cmaui_volume_attachment:
201       type: org.openecomp.relationships.heat.cinder.VolumeAttachesTo
202       properties:
203         volume_id: cmaui_volume
204         instance_uuid: server_cmaui
205   groups:
206     hot_template:
207       type: org.openecomp.groups.heat.HeatStack
208       properties:
209         heat_file: ../Artifacts/hot_template.yml
210         description: cmaui server template for vMMSC
211       members:
212       - server_dependOnString
213       - server_cmaui
214       - cmaui_volume
215       - cmaui_port_0