[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 / fulltest / nestedSingleCompute / nestedOutputParamGetAttrIn / in / hot-nimbus-pcm_v0.4.yaml
1 heat_template_version: 2013-05-23
2
3 description: heat template that creates PCRF Cluman stack
4
5 parameters:
6   pcm_server_names:
7     type: comma_delimited_list
8     label: PCRF CM server names
9     description: name of the PCRF CM instance
10   pcm_image_name:
11     type: string
12     label: PCRF CM image name
13     description: PCRF CM image name
14   pcm_flavor_name:
15     type: string
16     label: PCRF CM flavor name
17     description: flavor name of PCRF CM instance
18   oam_server_names:
19     type: comma_delimited_list
20     label: PCRF CM server names
21     description: name of the PCRF CM instance
22   oam_image_name:
23     type: string
24     label: PCRF CM image name
25     description: PCRF CM image name
26   oam_flavor_name:
27     type: string
28     label: PCRF CM flavor name
29     description: flavor name of PCRF CM instance
30   availabilityzone_name:
31     type: string
32     label: availabilityzone name
33     description: availabilityzone name
34   cps_net_name:
35     type: string
36     label: CPS network name
37     description: CPS network name
38   cps_net_ips:
39     type: comma_delimited_list
40     label: CPS network ips
41     description: CPS network ips
42   cps_net_mask:
43     type: string
44     label: CPS network mask
45     description: CPS network mask
46   oam_net_name:
47     type: string
48     label: OAM network name
49     description: OAM network name
50   oam_net_ips:
51     type: comma_delimited_list
52     label: OAM network ips
53     description: OAM network ips
54   oam_net_gw:
55     type: string
56     label: CPS network gateway
57     description: CPS network gateway
58   oam_net_mask:
59     type: string
60     label: CPS network mask
61     description: CPS network mask
62   pcm_volumes:
63     type: comma_delimited_list
64     label: CPS Cluman Cinder Volume
65     description: CPS Cluman Cinder Volume
66   security_group_name:
67     type: string
68     label: security group name
69     description: the name of security group
70   compute_image_name:
71     type: string
72   net_name:
73     type: string
74
75 resources:
76   server_compute:
77     type: OS::Nova::Server
78     properties:
79       config_drive: {get_attr: [compute_port_0]}
80       name: { compute_name }
81       image: { get_param: compute_image_name }
82       flavor: { compute_flavor_name }
83
84   server_pcm_001:
85     type: nested-pcm_v0.1.yaml
86     properties:
87       pcm_server_name: { get_param: [pcm_server_names, 0] }
88       pcm_image_name: { get_param: pcm_image_name }
89       pcm_flavor_name: { get_param: pcm_flavor_name }
90       availabilityzone_name: { get_param: availabilityzone_name }
91       security_group_name: { get_param: security_group_name }
92       pcm_vol: { get_param: [pcm_volumes, 0] }
93       cps_net_name: { get_param: cps_net_name }
94       cps_net_ip: { get_param: [cps_net_ips, 0] }
95       cps_net_mask: { get_param: cps_net_mask }
96       oam_net_name: { get_param: oam_net_name }
97       oam_net_ip: { get_param: [oam_net_ips, 0] }
98       oam_net_mask: { get_param: oam_net_mask }
99       oam_net_gw: { get_param: oam_net_gw }
100
101   server_pcm_002:
102     type: nested-pcm_v0.1.yaml
103     properties:
104       pcm_server_name: { get_param: [pcm_server_names, 0] }
105       pcm_image_name: { get_param: pcm_image_name }
106       pcm_flavor_name: { get_param: pcm_flavor_name }
107       availabilityzone_name: { get_param: availabilityzone_name }
108
109
110   server_oam_001:
111     type: nested-oam_v0.1.yaml
112     properties:
113       oam_server_name: { get_param: [oam_server_names, 0] }
114       oam_image_name: { get_param: oam_image_name }
115       oam_flavor_name: { get_param: oam_flavor_name }
116       availabilityzone_name: { get_param: availabilityzone_name }
117       security_group_name: { get_param: security_group_name }
118       pcm_vol: { get_param: [pcm_volumes, 0] }
119       cps_net_name: { get_param: cps_net_name }
120       cps_net_ip: { get_param: [cps_net_ips, 0] }
121       cps_net_mask: { get_param: cps_net_mask }
122       oam_net_name: { get_param: oam_net_name }
123       oam_net_ip: { get_param: [oam_net_ips, 0] }
124       oam_net_mask: { get_param: oam_net_mask }
125       oam_net_gw: { get_param: oam_net_gw }
126
127   compute_port_0:
128     type: OS::Neutron::Port
129     properties:
130       network: { get_param: net_name }
131
132   packet_mirror_network:
133     type: OS::Neutron::Net
134     properties:
135       #get attribute from a nested resource
136       name: { get_attr: [server_pcm_001 , instance_name] }
137       #get attribute from a regular consolidation entity resource
138       tenant_id: { get_attr: [server_compute, instance_name]}
139
140 outputs:
141     output_attr_nested_resource1:
142       value: {get_attr: [server_pcm_001 , server_pcm_id] }
143     output_attr_nested_resource2:
144       value: {get_attr: [server_pcm_002 , server_pcm_id] }
145     output_attr_nested_resource_same_type:
146       value: {get_attr: [server_pcm_001 , server_pcm_id] }
147     output_attr_nested_resource_different_type:
148       value: {get_attr: [server_oam_001 , server_oam_id] }
149     output_attr_non_nested_compute:
150       value: {get_attr: [server_compute , instance_name] }
151     output_attr_non_consolidation_entity:
152       value: {get_attr: [packet_mirror_network , status] }