[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 / novatovolumeconnection / innernestedconnection / 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 - GlobalSubstitutionTypes:
8     file: GlobalSubstitutionTypesServiceTemplate.yaml
9 topology_template:
10   inputs:
11     cmaui_names:
12       hidden: false
13       immutable: false
14       type: list
15       description: CMAUI1, CMAUI2 server names
16       entry_schema:
17         type: string
18     cmaui_cinder_volume_size:
19       label: CMAUI Cinder volume size
20       hidden: false
21       immutable: false
22       type: float
23       description: the size of the CMAUI Cinder volume
24     timezone:
25       label: timezone
26       hidden: false
27       immutable: false
28       type: string
29       description: timezone
30     security_group_name:
31       label: security group name
32       hidden: false
33       immutable: false
34       type: string
35       description: the name of security group
36     oam_network_netmask:
37       label: oam network netmask
38       hidden: false
39       immutable: false
40       type: string
41       description: oam network gateway
42     cmaui_image:
43       hidden: false
44       immutable: false
45       type: string
46       description: Image for CMAUI server
47     vnf_id:
48       hidden: false
49       immutable: false
50       type: string
51       description: Unique ID for this VNF instance
52       default: This_is_ths_MMSC-CMAUI_id
53     cmaui_flavor:
54       hidden: false
55       immutable: false
56       type: string
57       description: Flavor for CMAUI server
58     oam_network_gateway:
59       label: oam network gateway
60       hidden: false
61       immutable: false
62       type: string
63       description: oam network gateway
64     availability_zone_0:
65       label: availabilityzone name
66       hidden: false
67       immutable: false
68       type: string
69       description: availabilityzone name
70     inner_cmaui_volume_a2:
71       hidden: false
72       immutable: false
73       type: string
74       description: Unique ID for this VNF instance
75       default: This_is_ths_MMSC-CMAUI_id
76     inner_cmaui_volume_b3:
77       hidden: false
78       immutable: false
79       type: list
80       entry_schema:
81         type: string
82     inner_cmaui_volume_a1:
83       hidden: false
84       immutable: false
85       type: string
86       description: Unique ID for this VNF instance
87       default: This_is_ths_MMSC-CMAUI_id
88     cmaui_oam_ips:
89       label: CMAUI oam_net IP addresses
90       hidden: false
91       immutable: false
92       type: list
93       description: CMAUI oam_net IP addresses
94       entry_schema:
95         type: string
96     external_dns:
97       label: dns server
98       hidden: false
99       immutable: false
100       type: string
101       description: dns server
102     oam_net_name:
103       hidden: false
104       immutable: false
105       type: string
106       description: UID of OAM network
107     external_ntp:
108       label: ntp server
109       hidden: false
110       immutable: false
111       type: string
112       description: ntp server
113     CMAUI_volume_type:
114       label: CMAUI vm volume type
115       hidden: false
116       immutable: false
117       type: string
118       description: the name of the target volume backend
119   node_templates:
120     stam_nested:
121       type: org.openecomp.resource.abstract.nodes.heat.nested
122       directives:
123       - substitutable
124       properties:
125         service_template_filter:
126           substitute_service_template: nestedServiceTemplate.yaml
127         inner_cmaui_volume_b3:
128           get_input:
129           - inner_cmaui_volume_b3
130           - 0
131         inner_cmaui_volume_a1:
132           get_input: inner_cmaui_volume_a1
133         inner_cmaui_volume_b2:
134           get_input: inner_cmaui_volume_a2
135       requirements:
136       - local_storage_server_cmaui2:
137           capability: tosca.capabilities.Attachment
138           node: cmaui_volume2
139           relationship: tosca.relationships.AttachesTo
140       - local_storage_server_cmaui1:
141           capability: tosca.capabilities.Attachment
142           node: inner_cmaui_volume_a1
143           relationship: tosca.relationships.AttachesTo
144       - local_storage_server_cmaui1:
145           capability: tosca.capabilities.Attachment
146           node: cmaui_volume2
147           relationship: tosca.relationships.AttachesTo
148     inner_cmaui_volume_a1:
149       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
150       properties:
151         volume_type:
152           get_input: CMAUI_volume_type
153         size: '(get_input : cmaui_cinder_volume_size) * 1024'
154     cmaui_volume2:
155       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
156       properties:
157         volume_type:
158           get_input: CMAUI_volume_type
159         size: '(get_input : cmaui_cinder_volume_size) * 1024'
160   groups:
161     main_group:
162       type: org.openecomp.groups.heat.HeatStack
163       properties:
164         heat_file: ../Artifacts/main.yml
165         description: cmaui server template for vMMSC
166       members:
167       - stam_nested
168     a_vol_group:
169       type: org.openecomp.groups.heat.HeatStack
170       properties:
171         heat_file: ../Artifacts/a_vol.yml
172         description: volume
173       members:
174       - inner_cmaui_volume_a1
175       - cmaui_volume2
176   outputs:
177     inner_cmaui_volume_a2:
178       value: cmaui_volume2
179     inner_cmaui_volume_b3:
180       value: inner_cmaui_volume_a1
181     inner_cmaui_volume_a1:
182       value: inner_cmaui_volume_a1