[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 / nestednotconnected / 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     cmaui_oam_ips:
56       hidden: false
57       immutable: false
58       type: string
59     CMAUI_volume_type:
60       label: CMAUI vm volume type
61       hidden: false
62       immutable: false
63       type: string
64       description: the name of the target volume backend
65   node_templates:
66     server_cmaui1:
67       type: org.openecomp.resource.vfc.nodes.heat.cmaui
68       properties:
69         flavor:
70           get_input: cmaui_flavor
71         availability_zone:
72           get_input: availability_zone_0
73         image:
74           get_input: cmaui_image
75         name:
76           get_input:
77           - cmaui_names
78           - 0
79     test_vol:
80       type: org.openecomp.resource.vfc.nodes.heat.cinder.Volume
81       properties:
82         volume_type:
83           get_input: CMAUI_volume_type
84         size: '(get_input : cmaui_cinder_volume_size) * 1024'
85     cmaui_port_1:
86       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
87       properties:
88         replacement_policy: AUTO
89         ip_requirements:
90         - ip_version: 4
91           ip_count_required:
92             is_required: true
93           floating_ip_count_required:
94             is_required: false
95         security_groups:
96         - get_input: security_group_name
97         fixed_ips:
98         - ip_address:
99             get_input:
100             - cmaui_oam_ips
101             - 0
102         mac_requirements:
103           mac_count_required:
104             is_required: false
105         network:
106           get_input: p1
107       requirements:
108       - binding:
109           capability: tosca.capabilities.network.Bindable
110           node: server_cmaui1
111           relationship: tosca.relationships.network.BindsTo
112     test_nested:
113       type: org.openecomp.resource.abstract.nodes.heat.nested
114       directives:
115       - substitutable
116       properties:
117         service_template_filter:
118           substitute_service_template: nestedServiceTemplate.yaml
119         cmaui_volume_param: server_cmaui1
120   groups:
121     main_group:
122       type: org.openecomp.groups.heat.HeatStack
123       properties:
124         heat_file: ../Artifacts/main.yml
125         description: |
126           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
127       members:
128       - server_cmaui1
129       - test_vol
130       - cmaui_port_1
131       - test_nested