[SDC-29] Amdocs OnBoard 1707 initial commit.
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / services / heattotosca / vol_attach / 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 - openecomp_heat_index:
6     file: openecomp-heat/_index.yml
7 node_types:
8   org.openecomp.resource.vfc.nodes.heat.cmaui:
9     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
10 topology_template:
11   inputs:
12     cmaui_names:
13       hidden: false
14       immutable: false
15       type: list
16       description: CMAUI1, CMAUI2 server names
17       entry_schema:
18         type: string
19     exposed_cmaui_volume:
20       label: CMAUI volume size
21       hidden: false
22       immutable: false
23       type: float
24       description: the size of the CMAUI volume
25     cmaui_cinder_volume_size:
26       label: CMAUI Cinder volume size
27       hidden: false
28       immutable: false
29       type: float
30       description: the size of the CMAUI Cinder volume
31     timezone:
32       label: timezone
33       hidden: false
34       immutable: false
35       type: string
36       description: timezone
37     security_group_name:
38       label: security group name
39       hidden: false
40       immutable: false
41       type: string
42       description: the name of security group
43     oam_network_netmask:
44       label: oam network netmask
45       hidden: false
46       immutable: false
47       type: string
48       description: oam network gateway
49     cmaui_image:
50       hidden: false
51       immutable: false
52       type: string
53       description: Image for CMAUI server
54     vnf_id:
55       hidden: false
56       immutable: false
57       type: string
58       description: Unique ID for this VNF instance
59       default: This_is_ths_MMSC-CMAUI_id
60     cmaui_flavor:
61       hidden: false
62       immutable: false
63       type: string
64       description: Flavor for CMAUI server
65     oam_network_gateway:
66       label: oam network gateway
67       hidden: false
68       immutable: false
69       type: string
70       description: oam network gateway
71     availability_zone_0:
72       label: availabilityzone name
73       hidden: false
74       immutable: false
75       type: string
76       description: availabilityzone name
77     cmaui_oam_ips:
78       label: CMAUI oam_net IP addresses
79       hidden: false
80       immutable: false
81       type: list
82       description: CMAUI oam_net IP addresses
83       entry_schema:
84         type: string
85     external_dns:
86       label: dns server
87       hidden: false
88       immutable: false
89       type: string
90       description: dns server
91     oam_net_name:
92       hidden: false
93       immutable: false
94       type: string
95       description: UID of OAM network
96     external_ntp:
97       label: ntp server
98       hidden: false
99       immutable: false
100       type: string
101       description: ntp server
102     CMAUI_volume_type:
103       label: CMAUI vm volume type
104       hidden: false
105       immutable: false
106       type: string
107       description: the name of the target volume backend
108   node_templates:
109     server_cmaui:
110       type: org.openecomp.resource.vfc.nodes.heat.cmaui
111       properties:
112         flavor:
113           get_input: cmaui_flavor
114         availability_zone:
115           get_input: availability_zone_0
116         image:
117           get_input: cmaui_image
118         metadata:
119           vnf_id:
120             get_input: vnf_id
121         user_data_format: RAW
122         name:
123           get_input:
124           - cmaui_names
125           - 0
126       requirements:
127       - local_storage:
128           capability: tosca.capabilities.Attachment
129           node: cmaui_volume
130           relationship: cmaui_volume_attachment
131     cmaui_volume:
132       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
133       properties:
134         volume_type:
135           get_input: CMAUI_volume_type
136         size: '(get_input : cmaui_cinder_volume_size) * 1024'
137     cmaui_port_0:
138       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
139       properties:
140         replacement_policy: AUTO
141         ip_requirements:
142         - ip_version: 4
143           ip_count_required:
144             is_required: true
145           floating_ip_count_required:
146             is_required: false
147         security_groups:
148         - get_input: security_group_name
149         fixed_ips:
150         - ip_address:
151             get_input:
152             - cmaui_oam_ips
153             - 0
154         mac_requirements:
155           mac_count_required:
156             is_required: false
157         network_role_tag: oam
158         network:
159           get_input: oam_net_name
160       requirements:
161       - binding:
162           capability: tosca.capabilities.network.Bindable
163           node: server_cmaui
164           relationship: tosca.relationships.network.BindsTo
165   relationship_templates:
166     cmaui_volume_attachment:
167       type: org.openecomp.relationships.VolumeAttachesTo
168       properties:
169         volume_id: cmaui_volume
170         instance_uuid: server_cmaui
171   groups:
172     a_vol_group:
173       type: org.openecomp.groups.heat.HeatStack
174       properties:
175         heat_file: ../Artifacts/a_vol.yml
176         description: volume
177       members:
178       - cmaui_volume
179     hot_template_group:
180       type: org.openecomp.groups.heat.HeatStack
181       properties:
182         heat_file: ../Artifacts/hot_template.yml
183         description: cmaui server template for vMMSC
184       members:
185       - server_cmaui
186       - cmaui_port_0
187   outputs:
188     exposed_cmaui_volume:
189       value: cmaui_volume