[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 / unifiedComposition / pattern4 / twoNestedWithOneCompute / out / nested-oam_v0.1ServiceTemplate.yaml
1 tosca_definitions_version: tosca_simple_yaml_1_0_0
2 metadata:
3   template_name: nested-oam_v0.1
4 imports:
5 - CommonGlobalTypes:
6     file: CommonGlobalTypesServiceTemplate.yaml
7 - NovaServerGlobalTypes:
8     file: NovaServerGlobalTypesServiceTemplate.yaml
9 - NeutronPortGlobalTypes:
10     file: NeutronPortGlobalTypesServiceTemplate.yaml
11 - NeutronSecurityRulesGlobalTypes:
12     file: NeutronSecurityRulesGlobalTypesServiceTemplate.yaml
13 - NeutronNetGlobalTypes:
14     file: NeutronNetGlobalTypesServiceTemplate.yaml
15 - CinderVolumeGlobalTypes:
16     file: CinderVolumeGlobalTypesServiceTemplate.yaml
17 - ContrailVirtualNetworkGlobalType:
18     file: ContrailVirtualNetworkGlobalTypeServiceTemplate.yaml
19 - ContrailNetworkRuleGlobalType:
20     file: ContrailNetworkRuleGlobalTypeServiceTemplate.yaml
21 - AbstractSubstituteGlobalTypes:
22     file: AbstractSubstituteGlobalTypesServiceTemplate.yaml
23 - ContrailV2VirtualMachineInterfaceGlobalType:
24     file: ContrailV2VirtualMachineInterfaceGlobalTypeServiceTemplate.yaml
25 - ContrailComputeGlobalTypes:
26     file: ContrailComputeGlobalTypesServiceTemplate.yaml
27 - ContrailPortGlobalTypes:
28     file: ContrailPortGlobalTypesServiceTemplate.yaml
29 - ContrailAbstractSubstituteGlobalTypes:
30     file: ContrailAbstractSubstituteGlobalTypesServiceTemplate.yaml
31 - ContrailV2VirtualNetworkGlobalType:
32     file: ContrailV2VirtualNetworkGlobalTypeServiceTemplate.yaml
33 - ContrailV2NetworkRuleGlobalType:
34     file: ContrailV2NetworkRuleGlobalTypeServiceTemplate.yaml
35 - ContrailV2VLANSubInterfaceGlobalType:
36     file: ContrailV2VLANSubInterfaceGlobalTypeServiceTemplate.yaml
37 - GlobalSubstitutionTypes:
38     file: GlobalSubstitutionTypesServiceTemplate.yaml
39 node_types:
40   org.openecomp.resource.vfc.nodes.heat.oam_server:
41     derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
42 topology_template:
43   inputs:
44     availabilityzone_name:
45       label: availabilityzone name
46       hidden: false
47       immutable: false
48       type: string
49       description: availabilityzone name
50     oam_net_gw:
51       label: CPS network gateway
52       hidden: false
53       immutable: false
54       type: string
55       description: CPS network gateway
56     oam_flavor_name:
57       label: PCRF CM flavor name
58       hidden: false
59       immutable: false
60       type: string
61       description: flavor name of PCRF CM instance
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     oam_server_name:
75       label: oam server name
76       hidden: false
77       immutable: false
78       type: string
79       description: oam server name
80     pcm_vol:
81       label: CPS Cluman Cinder Volume
82       hidden: false
83       immutable: false
84       type: string
85       description: CPS Cluman Cinder Volume
86     oam_image_name:
87       label: image name
88       hidden: false
89       immutable: false
90       type: string
91       description: oam image name
92     cps_net_name:
93       label: CPS network name
94       hidden: false
95       immutable: false
96       type: string
97       description: CPS network name
98     cps_net_mask:
99       label: CPS network mask
100       hidden: false
101       immutable: false
102       type: string
103       description: CPS network mask
104     oam_net_ip:
105       label: OAM network ip
106       hidden: false
107       immutable: false
108       type: string
109       description: OAM network ip
110     oam_net_mask:
111       label: CPS network mask
112       hidden: false
113       immutable: false
114       type: string
115       description: CPS network mask
116     oam_net_name:
117       label: OAM network name
118       hidden: false
119       immutable: false
120       type: string
121       description: OAM network name
122   node_templates:
123     server_oam:
124       type: org.openecomp.resource.vfc.nodes.heat.oam_server
125       properties:
126         flavor:
127           get_input: oam_flavor_name
128         availability_zone:
129           get_input: availabilityzone_name
130         image:
131           get_input: oam_image_name
132         config_drive: true
133         name:
134           get_input: oam_server_name
135     pcm_port_1:
136       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
137       properties:
138         security_groups:
139         - get_input: security_group_name
140         fixed_ips:
141         - ip_address:
142             get_input: oam_net_ip
143         network:
144           get_input: oam_net_name
145       requirements:
146       - binding:
147           capability: tosca.capabilities.network.Bindable
148           node: server_oam
149           relationship: tosca.relationships.network.BindsTo
150     pcm_port_0:
151       type: org.openecomp.resource.cp.nodes.heat.network.neutron.Port
152       properties:
153         security_groups:
154         - get_input: security_group_name
155         fixed_ips:
156         - ip_address:
157             get_input: cps_net_ip
158         network:
159           get_input: cps_net_name
160       requirements:
161       - binding:
162           capability: tosca.capabilities.network.Bindable
163           node: server_oam
164           relationship: tosca.relationships.network.BindsTo
165   groups:
166     nested-oam_v0.1_group:
167       type: org.openecomp.groups.heat.HeatStack
168       properties:
169         heat_file: ../Artifacts/nested-oam_v0.1.yaml
170         description: heat template that creates PCRF Cluman stack
171       members:
172       - server_oam
173       - pcm_port_1
174       - pcm_port_0
175   outputs:
176     server_oam_id:
177       description: the oam nova service id
178       value: server_oam
179   substitution_mappings:
180     node_type: org.openecomp.resource.abstract.nodes.heat.oam_server
181     capabilities:
182       host_server_oam:
183       - server_oam
184       - host
185       endpoint_server_oam:
186       - server_oam
187       - endpoint
188       os_server_oam:
189       - server_oam
190       - os
191       feature_server_oam:
192       - server_oam
193       - feature
194       feature_pcm_port_1:
195       - pcm_port_1
196       - feature
197       scalable_server_oam:
198       - server_oam
199       - scalable
200       feature_pcm_port_0:
201       - pcm_port_0
202       - feature
203       binding_server_oam:
204       - server_oam
205       - binding
206       attachment_pcm_port_0:
207       - pcm_port_0
208       - attachment
209       attachment_pcm_port_1:
210       - pcm_port_1
211       - attachment
212       binding_pcm_port_0:
213       - pcm_port_0
214       - binding
215       binding_pcm_port_1:
216       - pcm_port_1
217       - binding
218     requirements:
219       link_pcm_port_0:
220       - pcm_port_0
221       - link
222       link_pcm_port_1:
223       - pcm_port_1
224       - link
225       local_storage_server_oam:
226       - server_oam
227       - local_storage