[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_parallel_to_main_file / 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     cmaui_volume:
38       label: CMAUI vm volume type
39       hidden: false
40       immutable: false
41       type: string
42       description: the name of the target volume backend
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     cmaui_volume:
127       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
128       properties:
129         volume_type:
130           get_input: CMAUI_volume_type
131         size: '(get_input : cmaui_cinder_volume_size) * 1024'
132     cmaui_port_0:
133       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
134       properties:
135         replacement_policy: AUTO
136         ip_requirements:
137         - ip_version: 4
138           ip_count_required:
139             is_required: true
140           floating_ip_count_required:
141             is_required: false
142         security_groups:
143         - get_input: security_group_name
144         fixed_ips:
145         - ip_address:
146             get_input:
147             - cmaui_oam_ips
148             - 0
149         mac_requirements:
150           mac_count_required:
151             is_required: false
152         network_role_tag: oam
153         network:
154           get_input: oam_net_name
155       requirements:
156       - binding:
157           capability: tosca.capabilities.network.Bindable
158           node: server_cmaui
159           relationship: tosca.relationships.network.BindsTo
160   groups:
161     a_vol_group:
162       type: org.openecomp.groups.heat.HeatStack
163       properties:
164         heat_file: ../Artifacts/a_vol.yml
165         description: volume
166       members:
167       - cmaui_volume
168     hot_template_group:
169       type: org.openecomp.groups.heat.HeatStack
170       properties:
171         heat_file: ../Artifacts/hot_template.yml
172         description: cmaui server template for vMMSC
173       members:
174       - server_cmaui
175       - cmaui_port_0