push addional code
[sdc.git] / openecomp-be / lib / openecomp-sdc-translator-lib / openecomp-sdc-translator-core / src / test / resources / mock / heat / nested / recursive / expectedoutputfiles / nested-pcm_v0.1_2ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-pcm_v0.1_2
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     pcm_flavor_name:
39       label: PCRF CM flavor name
40       hidden: false
41       immutable: false
42       type: string
43       description: flavor name of PCRF CM instance
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50     pcm_image_name:
51       label: image name
52       hidden: false
53       immutable: false
54       type: string
55       description: PCRF CM image name
56     pcm_vol:
57       label: CPS Cluman Cinder Volume
58       hidden: false
59       immutable: false
60       type: string
61       description: CPS Cluman Cinder Volume
62     security_group_name:
63       label: security group name
64       hidden: false
65       immutable: false
66       type: string
67       description: the name of security group
68     cps_net_ip:
69       label: CPS network ip
70       hidden: false
71       immutable: false
72       type: string
73       description: CPS network ip
74     pcm_server_name:
75       label: PCRF CM server name
76       hidden: false
77       immutable: false
78       type: string
79       description: PCRF CM server name
80     cps_net_name:
81       label: CPS network name
82       hidden: false
83       immutable: false
84       type: string
85       description: CPS network name
86     cps_net_mask:
87       label: CPS network mask
88       hidden: false
89       immutable: false
90       type: string
91       description: CPS network mask
92     oam_net_ip:
93       hidden: false
94       immutable: false
95       type: string
96     oam_net_name:
97       label: OAM network name
98       hidden: false
99       immutable: false
100       type: string
101       description: OAM network name
102   node_templates:
103     pcm_port_1:
104       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
105       properties:
106         security_groups:
107         - get_input: security_group_name
108         fixed_ips:
109         - ip_address:
110             get_input: oam_net_ip
111         network:
112           get_input: oam_net_name
113       requirements:
114       - binding:
115           capability: tosca.capabilities.network.Bindable
116           node: server_pcm
117           relationship: tosca.relationships.network.BindsTo
118     server_pcm:
119       type: org.openecomp.resource.vfc.nodes.heat.pcm_server
120       properties:
121         flavor:
122           get_input: pcm_flavor_name
123         availability_zone:
124           get_input: availabilityzone_name
125         image:
126           get_input: pcm_image_name
127         config_drive: 'True'
128         user_data_format: RAW
129         name:
130           get_input: pcm_server_name
131     pcm_port_0:
132       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
133       properties:
134         security_groups:
135         - get_input: security_group_name
136         fixed_ips:
137         - ip_address:
138             get_input: cps_net_ip
139         network:
140           get_input: cps_net_name
141       requirements:
142       - binding:
143           capability: tosca.capabilities.network.Bindable
144           node: server_pcm
145           relationship: tosca.relationships.network.BindsTo
146     network:
147       type: org.openecomp.resource.vl.nodes.heat.network.contrail.VirtualNetwork
148       properties:
149         network_name:
150           get_input: cps_net_name
151   groups:
152     nested-pcm_v0.1_2:
153       type: org.openecomp.groups.heat.HeatStack
154       properties:
155         heat_file: ../Artifacts/nested-pcm_v0.1_2.yaml
156         description: heat template that creates PCRF Cluman stack
157       members:
158       - pcm_port_1
159       - server_pcm
160       - pcm_port_0
161       - network
162   outputs:
163     server_pcm_id:
164       description: the pcm nova service id
165       value: server_pcm
166   substitution_mappings:
167     node_type: org.openecomp.resource.abstract.nodes.heat.nested-pcm_v0.1_2
168     capabilities:
169       endpoint_server_pcm:
170       - server_pcm
171       - endpoint
172       link_network:
173       - network
174       - link
175       os_server_pcm:
176       - server_pcm
177       - os
178       host_server_pcm:
179       - server_pcm
180       - host
181       scalable_server_pcm:
182       - server_pcm
183       - scalable
184       attachment_network:
185       - network
186       - attachment
187       binding_server_pcm:
188       - server_pcm
189       - binding
190       attachment_pcm_port_0:
191       - pcm_port_0
192       - attachment
193       attachment_pcm_port_1:
194       - pcm_port_1
195       - attachment
196     requirements:
197       link_pcm_port_0:
198       - pcm_port_0
199       - link
200       link_pcm_port_1:
201       - pcm_port_1
202       - link
203       local_storage_server_pcm:
204       - server_pcm
205       - local_storage