[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 / nestedNodesGetAttrIn / 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       #get attribute from a nested resource
84       user_data_format: { get_attr: [server_pcm_001 , oam_net_gw] }
85       #get attribute from a regular consolidation entity resource
86       metadata: { get_attr: [compute_port_0, device_id]}
87
88   server_pcm_001:
89     type: nested-pcm_v0.1.yaml
90     properties:
91       pcm_server_name: { get_param: [pcm_server_names, 0] }
92       pcm_image_name: { get_param: pcm_image_name }
93       pcm_flavor_name: { get_param: pcm_flavor_name }
94       availabilityzone_name: { get_param: availabilityzone_name }
95       security_group_name: { get_param: security_group_name }
96       pcm_vol: { get_param: [pcm_volumes, 0] }
97       cps_net_name: { get_param: cps_net_name }
98       cps_net_ip: { get_param: [cps_net_ips, 0] }
99       cps_net_mask: { get_param: cps_net_mask }
100       oam_net_name: { get_param: oam_net_name }
101       oam_net_ip: { get_param: [oam_net_ips, 0] }
102       oam_net_mask: { get_param: oam_net_mask }
103       oam_net_gw: { get_param: oam_net_gw }
104       #get attribute from another nested resource of same type
105       user_data_format: { get_attr: [server_pcm_002 , oam_net_gw] }
106       #get attribute from another nested resource of different type
107       key_name: { get_attr: [server_oam_001 , accessIPv4] }
108       #get attribute from a regular consolidation entity resource
109       metadata: { get_attr: [compute_port_0, device_id]}
110
111   server_pcm_002:
112     type: nested-pcm_v0.1.yaml
113     properties:
114       pcm_server_name: { get_param: [pcm_server_names, 0] }
115       pcm_image_name: { get_param: pcm_image_name }
116       pcm_flavor_name: { get_param: pcm_flavor_name }
117
118   server_oam_001:
119     type: nested-oam_v0.1.yaml
120     properties:
121       oam_server_name: { get_param: [oam_server_names, 0] }
122       oam_image_name: { get_param: oam_image_name }
123       oam_flavor_name: { get_param: oam_flavor_name }
124       availabilityzone_name: { get_param: availabilityzone_name }
125       security_group_name: { get_param: security_group_name }
126       pcm_vol: { get_param: [pcm_volumes, 0] }
127       cps_net_name: { get_param: cps_net_name }
128       cps_net_ip: { get_param: [cps_net_ips, 0] }
129       cps_net_mask: { get_param: cps_net_mask }
130       oam_net_name: { get_param: oam_net_name }
131       oam_net_ip: { get_param: [oam_net_ips, 0] }
132       oam_net_mask: { get_param: oam_net_mask }
133       oam_net_gw: { get_param: oam_net_gw }
134
135   compute_port_0:
136     type: OS::Neutron::Port
137     properties:
138       network: { get_param: net_name }
139
140   packet_mirror_network:
141     type: OS::Neutron::Net
142     properties:
143       #get attribute from a nested resource
144       name: { get_attr: [server_pcm_001 , instance_name] }
145       #get attribute from a regular consolidation entity resource
146       tenant_id: { get_attr: [server_compute, instance_name]}