d7dcdca111a02a22d073ea90accdec61e5fb7172
[sdc.git] /
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested
4 imports:
5 - NeutronPortGlobalTypes:
6     file: NeutronPortGlobalTypesServiceTemplate.yaml
7 - NeutronNetGlobalTypes:
8     file: NeutronNetGlobalTypesServiceTemplate.yaml
9 - CommonGlobalTypes:
10     file: CommonGlobalTypesServiceTemplate.yaml
11 - CinderVolumeGlobalTypes:
12     file: CinderVolumeGlobalTypesServiceTemplate.yaml
13 - ContrailNetworkRuleGlobalType:
14     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
15 - NeutronSecurityRulesGlobalTypes:
16     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
17 - NovaServerGlobalTypes:
18     file: NovaServerGlobalTypesServiceTemplate.yaml
19 - ContrailVirtualNetworkGlobalType:
20     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - nested:
24     file: GlobalSubstitutionTypesServiceTemplate.yaml
25 node_types:
26   org.openecomp.resource.vfc.nodes.heat.cmaui_image:
27     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
28     properties:
29       admin_pass:
30         description: The administrator password for the server
31         type: string
32         status: SUPPORTED
33         default: overridden default value
34         required: false
35       new_property:
36         description: new property
37         type: string
38         status: SUPPORTED
39         required: false
40 data_types:
41   org.openecomp.datatypes.heat.network.MyString:
42     derived_from: string
43     constraints:
44       - max_length: 50
45   org.openecomp.datatypes.heat.network.MyNewString:
46     derived_from: org.openecomp.datatypes.heat.network.MyString
47     description: My new MAC/IP address pairs
48     constraints:
49       - valid_values:
50           - A
51           - B
52 topology_template:
53   inputs:
54     cmaui_names:
55       hidden: false
56       immutable: false
57       type: list
58       description: CMAUI1, CMAUI2 server names
59       entry_schema:
60         type: String
61     p1:
62       hidden: false
63       immutable: false
64       type: string
65       description: UID of OAM network
66     cmaui_image:
67       hidden: false
68       immutable: false
69       type: string
70       description: Image for CMAUI server
71     cmaui_flavor:
72       hidden: false
73       immutable: false
74       type: string
75       description: Flavor for CMAUI server
76     security_group_name:
77       hidden: false
78       immutable: false
79       description: not impotrtant
80     availability_zone_0:
81       label: availabilityzone name
82       hidden: false
83       immutable: false
84       type: string
85       description: availabilityzone name
86   node_templates:
87     server_cmaui:
88       type: org.openecomp.resource.vfc.nodes.heat.cmaui_image
89       properties:
90         flavor:
91           get_input: cmaui_flavor
92         availability_zone:
93           get_input: availability_zone_0
94         image:
95           get_input: cmaui_image
96         name:
97           get_input:
98           - cmaui_names
99           - 0
100     cmaui_port_0:
101       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
102       properties:
103         replacement_policy: AUTO
104         security_groups:
105         - get_input: security_group_name
106         fixed_ips:
107         - ip_address:
108             get_input:
109             - cmaui_oam_ips
110             - 0
111         network:
112           get_input: p1
113       requirements:
114       - binding:
115           capability: tosca.capabilities.network.Bindable
116           node: server_cmaui
117           relationship: tosca.relationships.network.BindsTo
118     cmaui1_port_1:
119           type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
120           properties:
121             replacement_policy: AUTO
122             security_groups:
123             - get_input: security_group_name
124             fixed_ips:
125             - subnet: subnetNameVal
126               ip_address:
127                 get_input:
128                 - cmaui_oam_ips
129                 - 1
130             - subnet: subnetNameVal2
131               ip_address:
132                 get_input:
133                 - cmaui_oam_ips
134                 - 1
135             network: jsa_net
136           requirements:
137           - link:
138               capability: tosca.capabilities.network.Linkable
139               node: jsa_net1
140               relationship: tosca.relationships.network.LinksTo
141           - link:
142               capability: tosca.capabilities.network.Linkable
143               node: jsa_net2
144               relationship: tosca.relationships.network.LinksTo
145           - binding:
146               capability: tosca.capabilities.network.Bindable
147               node: server_cmaui
148               relationship: tosca.relationships.network.BindsTo
149     jsa_net1:
150           type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
151           properties:
152             shared: true
153             network_name:
154               get_input: jsa_net_name
155     jsa_net2:
156               type: org.openecomp.resource.vl.nodes.heat.network.neutron.Net
157               properties:
158                 shared: true
159                 network_name:
160                   get_input: jsa_net_name
161   groups:
162     nested:
163       type: org.openecomp.groups.heat.HeatStack
164       properties:
165         heat_file: ../Artifacts/nested.yml
166         description: cmaui server template for vMMSC
167       members:
168       - server_cmaui
169       - cmaui_port_0
170   substitution_mappings:
171     node_type: org.openecomp.resource.abstract.nodes.heat.nested
172     capabilities:
173       host_server_cmaui:
174       - server_cmaui
175       - host
176       os_server_cmaui:
177       - server_cmaui
178       - os
179       endpoint_server_cmaui:
180       - server_cmaui
181       - endpoint
182       binding_server_cmaui:
183       - server_cmaui
184       - binding
185       scalable_server_cmaui:
186       - server_cmaui
187       - scalable
188       attachment_cmaui_port_0:
189       - cmaui_port_0
190       - attachment
191     requirements:
192       local_storage_server_cmaui:
193       - server_cmaui
194       - local_storage
195       link_cmaui_port_0:
196       - cmaui_port_0
197       - link
198       link_cmaui_port_invalid:
199       - cmaui_port_9
200       - link