push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / single / expectedoutputfiles / nested-pcm_v0.1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-pcm_v0.1
4 imports:
5   ContrailComputeGlobalTypes:
6     file: ContrailComputeGlobalTypesServiceTemplate.yaml
7   CinderVolumeGlobalTypes:
8     file: CinderVolumeGlobalTypesServiceTemplate.yaml
9   ContrailVirtualNetworkGlobalType:
10     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
11   AbstractSubstituteGlobalTypes:
12     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
13   ContrailPortGlobalTypes:
14     file: ContrailPortGlobalTypesServiceTemplate.yaml
15   GlobalSubstitutionTypes:
16     file: GlobalSubstitutionTypesServiceTemplate.yaml
17   NeutronPortGlobalTypes:
18     file: NeutronPortGlobalTypesServiceTemplate.yaml
19   NeutronNetGlobalTypes:
20     file: NeutronNetGlobalTypesServiceTemplate.yaml
21   CommonGlobalTypes:
22     file: CommonGlobalTypesServiceTemplate.yaml
23   ContrailAbstractSubstituteGlobalTypes:
24     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
25   ContrailNetworkRuleGlobalType:
26     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
27   NeutronSecurityRulesGlobalTypes:
28     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
29   NovaServerGlobalTypes:
30     file: NovaServerGlobalTypesServiceTemplate.yaml
31   ContrailV2VirtualMachineInterfaceGlobalType:
32     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
33 node_types:
34   org.openecomp.resource.vfc.nodes.heat.pcm_server:
35     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
36 topology_template:
37   inputs:
38     availabilityzone_name:
39       label: availabilityzone name
40       hidden: false
41       immutable: false
42       type: string
43       description: availabilityzone name
44     oam_net_gw:
45       label: CPS network gateway
46       hidden: false
47       immutable: false
48       type: string
49       description: CPS network gateway
50     pcm_image_name:
51       label: image name
52       hidden: false
53       immutable: false
54       type: string
55       description: PCRF CM image name
56     security_group_name:
57       label: security group name
58       hidden: false
59       immutable: false
60       type: string
61       description: the name of security group
62     cps_net_ip:
63       label: CPS network ip
64       hidden: false
65       immutable: false
66       type: string
67       description: CPS network ip
68     pcm_flavor_name:
69       label: PCRF CM flavor name
70       hidden: false
71       immutable: false
72       type: string
73       description: flavor name of PCRF CM instance
74     pcm_vol:
75       label: CPS Cluman Cinder Volume
76       hidden: false
77       immutable: false
78       type: string
79       description: CPS Cluman Cinder Volume
80     pcm_server_name:
81       label: PCRF CM server name
82       hidden: false
83       immutable: false
84       type: string
85       description: PCRF CM server name
86     cps_net_name:
87       label: CPS network name
88       hidden: false
89       immutable: false
90       type: string
91       description: CPS network name
92     cps_net_mask:
93       label: CPS network mask
94       hidden: false
95       immutable: false
96       type: string
97       description: CPS network mask
98     oam_net_ip:
99       label: OAM network ip
100       hidden: false
101       immutable: false
102       type: string
103       description: OAM network ip
104     oam_net_mask:
105       label: CPS network mask
106       hidden: false
107       immutable: false
108       type: string
109       description: CPS network mask
110     oam_net_name:
111       label: OAM network name
112       hidden: false
113       immutable: false
114       type: string
115       description: OAM network name
116   node_templates:
117     pcm_port_1:
118       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
119       properties:
120         security_groups:
121         - get_input: security_group_name
122         fixed_ips:
123         - ip_address:
124             get_input: oam_net_ip
125         network:
126           get_input: oam_net_name
127       requirements:
128       - binding:
129           capability: tosca.capabilities.network.Bindable
130           node: server_pcm
131           relationship: tosca.relationships.network.BindsTo
132     server_pcm:
133       type: org.openecomp.resource.vfc.nodes.heat.pcm_server
134       properties:
135         flavor:
136           get_input: pcm_flavor_name
137         availability_zone:
138           get_input: availabilityzone_name
139         image:
140           get_input: pcm_image_name
141         config_drive: 'True'
142         user_data_format: RAW
143         name:
144           get_input: pcm_server_name
145     pcm_port_0:
146       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
147       properties:
148         security_groups:
149         - get_input: security_group_name
150         fixed_ips:
151         - ip_address:
152             get_input: cps_net_ip
153         network:
154           get_input: cps_net_name
155       requirements:
156       - binding:
157           capability: tosca.capabilities.network.Bindable
158           node: server_pcm
159           relationship: tosca.relationships.network.BindsTo
160   groups:
161     nested-pcm_v0.1:
162       type: org.openecomp.groups.heat.HeatStack
163       properties:
164         heat_file: ../Artifacts/nested-pcm_v0.1.yaml
165         description: heat template that creates PCRF Cluman stack
166       members:
167       - pcm_port_1
168       - server_pcm
169       - pcm_port_0
170   outputs:
171     server_pcm_id:
172       description: the pcm nova service id
173       value: server_pcm
174   substitution_mappings:
175     node_type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1
176     capabilities:
177       endpoint_server_pcm:
178       - server_pcm
179       - endpoint
180       os_server_pcm:
181       - server_pcm
182       - os
183       host_server_pcm:
184       - server_pcm
185       - host
186       scalable_server_pcm:
187       - server_pcm
188       - scalable
189       binding_server_pcm:
190       - server_pcm
191       - binding
192       attachment_pcm_port_0:
193       - pcm_port_0
194       - attachment
195       attachment_pcm_port_1:
196       - pcm_port_1
197       - attachment
198     requirements:
199       link_pcm_port_0:
200       - pcm_port_0
201       - link
202       link_pcm_port_1:
203       - pcm_port_1
204       - link
205       local_storage_server_pcm:
206       - server_pcm
207       - local_storage