e4ea791be931a793edbaade9f6c8e547157dd9b7
[sdc.git] /
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       annotations:
16         source:
17           type: org.openecomp.annotations.Source
18           properties:
19             vf_module_label:
20             - addOn
21             source_type: HEAT
22             param_name: cmaui_names
23       type: list
24       description: CMAUI1, CMAUI2 server names
25       entry_schema:
26         type: string
27     p1:
28       hidden: false
29       immutable: false
30       annotations:
31         source:
32           type: org.openecomp.annotations.Source
33           properties:
34             vf_module_label:
35             - addOn
36             source_type: HEAT
37             param_name: p1
38       type: string
39       description: UID of OAM network
40     cmaui_image:
41       hidden: false
42       immutable: false
43       annotations:
44         source:
45           type: org.openecomp.annotations.Source
46           properties:
47             vf_module_label:
48             - addOn
49             source_type: HEAT
50             param_name: cmaui_image
51       type: string
52       description: Image for CMAUI server
53     cmaui_flavor:
54       hidden: false
55       immutable: false
56       annotations:
57         source:
58           type: org.openecomp.annotations.Source
59           properties:
60             vf_module_label:
61             - addOn
62             source_type: HEAT
63             param_name: cmaui_flavor
64       type: string
65       description: Flavor for CMAUI server
66     security_group_name:
67       hidden: false
68       immutable: false
69       annotations:
70         source:
71           type: org.openecomp.annotations.Source
72           properties:
73             vf_module_label:
74             - addOn
75             source_type: HEAT
76             param_name: security_group_name
77       type: list
78       description: CMAUI1, CMAUI2 server names
79       entry_schema:
80         type: string
81     availability_zone_0:
82       label: availabilityzone name
83       hidden: false
84       immutable: false
85       annotations:
86         source:
87           type: org.openecomp.annotations.Source
88           properties:
89             vf_module_label:
90             - addOn
91             source_type: HEAT
92             param_name: availability_zone_0
93       type: string
94       description: availabilityzone name
95     cmaui_oam_ips:
96       hidden: false
97       immutable: false
98       annotations:
99         source:
100           type: org.openecomp.annotations.Source
101           properties:
102             vf_module_label:
103             - addOn
104             source_type: HEAT
105             param_name: cmaui_oam_ips
106       type: string
107     shared_network_id:
108       hidden: false
109       immutable: false
110       annotations:
111         source:
112           type: org.openecomp.annotations.Source
113           properties:
114             vf_module_label:
115             - addOn
116             source_type: HEAT
117             param_name: shared_network_id
118       type: string
119       description: Flavor for CMAUI server
120     jsa_net_name:
121       hidden: false
122       immutable: false
123       annotations:
124         source:
125           type: org.openecomp.annotations.Source
126           properties:
127             vf_module_label:
128             - main
129             source_type: HEAT
130             param_name: jsa_net_name
131       type: string
132       description: network name of jsa log network
133   node_templates:
134     server_cmaui:
135       type: org.openecomp.resource.vfc.nodes.heat.cmaui
136       properties:
137         flavor:
138           get_input: cmaui_flavor
139         availability_zone:
140           get_input: availability_zone_0
141         image:
142           get_input: cmaui_image
143         name:
144           get_input:
145           - cmaui_names
146           - 0
147     test_net:
148       type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
149       properties:
150         shared: true
151         network_name:
152           get_input: jsa_net_name
153     cmaui_port_0:
154       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
155       properties:
156         replacement_policy: AUTO
157         ip_requirements:
158         - ip_version: 4
159           ip_count_required:
160             is_required: true
161           floating_ip_count_required:
162             is_required: false
163         - ip_version: 6
164           ip_count_required:
165             is_required: false
166           floating_ip_count_required:
167             is_required: false
168         security_groups:
169         - get_input: security_group_name
170         fixed_ips:
171         - ip_address:
172             get_input:
173             - cmaui_oam_ips
174             - 0
175         mac_requirements:
176           mac_count_required:
177             is_required: false
178         network:
179           get_input: shared_network_id
180       requirements:
181       - link:
182           capability: tosca.capabilities.network.Linkable
183           node: test_net
184           relationship: tosca.relationships.network.LinksTo
185       - binding:
186           capability: tosca.capabilities.network.Bindable
187           node: server_cmaui
188           relationship: tosca.relationships.network.BindsTo
189   groups:
190     main_group:
191       type: org.openecomp.groups.heat.HeatStack
192       properties:
193         heat_file: ../Artifacts/main.yml
194         description: |
195           Version 2.0 02-09-2016 (Authors: John Doe, user PROD)
196       members:
197       - test_net
198     addOn_group:
199       type: org.openecomp.groups.heat.HeatStack
200       properties:
201         heat_file: ../Artifacts/addOn.yml
202         description: cmaui server template for vMMSC
203       members:
204       - server_cmaui
205       - cmaui_port_0