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