[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 / sharednestednotconnected / 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 node_types:
10   org.openecomp.resource.vfc.nodes.heat.cmaui:
11     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
12 topology_template:
13   inputs:
14     cmaui_names:
15       hidden: false
16       immutable: false
17       type: list
18       description: CMAUI1, CMAUI2 server names
19       entry_schema:
20         type: string
21     p1:
22       hidden: false
23       immutable: false
24       type: string
25       description: UID of OAM network
26     cmaui_image:
27       hidden: false
28       immutable: false
29       type: string
30       description: Image for CMAUI server
31     cmaui_flavor:
32       hidden: false
33       immutable: false
34       type: string
35       description: Flavor for CMAUI server
36     cmaui_cinder_volume_size:
37       label: CMAUI Cinder volume size
38       hidden: false
39       immutable: false
40       type: float
41       description: the size of the CMAUI Cinder volume
42     security_group_name:
43       hidden: false
44       immutable: false
45       type: list
46       description: CMAUI1, CMAUI2 server names
47       entry_schema:
48         type: string
49     availability_zone_0:
50       label: availabilityzone name
51       hidden: false
52       immutable: false
53       type: string
54       description: availabilityzone name
55     shared_vol1:
56       hidden: false
57       immutable: false
58       type: string
59       description: volume name
60     cmaui_oam_ips:
61       hidden: false
62       immutable: false
63       type: string
64     shared_vol2:
65       hidden: false
66       immutable: false
67       type: string
68       description: volume name
69     CMAUI_volume_type:
70       label: CMAUI vm volume type
71       hidden: false
72       immutable: false
73       type: string
74       description: the name of the target volume backend
75   node_templates:
76     test_vol1:
77       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
78       properties:
79         volume_type:
80           get_input: CMAUI_volume_type
81         size: '(get_input : cmaui_cinder_volume_size) * 1024'
82     test_vol2:
83       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
84       properties:
85         volume_type:
86           get_input: CMAUI_volume_type
87         size: '(get_input : cmaui_cinder_volume_size) * 1024'
88     server_cmaui:
89       type: org.openecomp.resource.vfc.nodes.heat.cmaui
90       properties:
91         flavor:
92           get_input: cmaui_flavor
93         availability_zone:
94           get_input: availability_zone_0
95         image:
96           get_input: cmaui_image
97         name:
98           get_input:
99           - cmaui_names
100           - 0
101     cmaui_port_0:
102       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
103       properties:
104         replacement_policy: AUTO
105         ip_requirements:
106         - ip_version: 4
107           ip_count_required:
108             is_required: true
109           floating_ip_count_required:
110             is_required: false
111         security_groups:
112         - get_input: security_group_name
113         fixed_ips:
114         - ip_address:
115             get_input:
116             - cmaui_oam_ips
117             - 0
118         mac_requirements:
119           mac_count_required:
120             is_required: false
121         network:
122           get_input: p1
123       requirements:
124       - binding:
125           capability: tosca.capabilities.network.Bindable
126           node: server_cmaui
127           relationship: tosca.relationships.network.BindsTo
128     test_nested:
129       type: org.openecomp.resource.abstract.nodes.heat.nested
130       directives:
131       - substitutable
132       properties:
133         service_template_filter:
134           substitute_service_template: nestedServiceTemplate.yaml
135         cmaui_volume_param2:
136           get_input: shared_vol2
137         shared_vol1:
138           get_input: shared_vol1
139       requirements:
140       - local_storage_server_cmaui1:
141           capability: tosca.capabilities.Attachment
142           node: test_vol2
143           relationship: tosca.relationships.AttachesTo
144   groups:
145     main_group:
146       type: org.openecomp.groups.heat.HeatStack
147       properties:
148         heat_file: ../Artifacts/main.yml
149         description: |
150           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
151       members:
152       - test_vol1
153       - test_vol2
154       - server_cmaui
155       - cmaui_port_0
156     addOn_group:
157       type: org.openecomp.groups.heat.HeatStack
158       properties:
159         heat_file: ../Artifacts/addOn.yml
160         description: |
161           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
162       members:
163       - test_nested
164   outputs:
165     out1_not_shared:
166       value: test_nested