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