2 ## Copyright (c) 2010-2017 Intel Corporation
4 ## Licensed under the Apache License, Version 2.0 (the "License");
5 ## you may not use this file except in compliance with the License.
6 ## You may obtain a copy of the License at
8 ## http://www.apache.org/licenses/LICENSE-2.0
10 ## Unless required by applicable law or agreed to in writing, software
11 ## distributed under the License is distributed on an "AS IS" BASIS,
12 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ## See the License for the specific language governing permissions and
14 ## limitations under the License.
17 heat_template_version: 2016-04-08
18 description: RAPID stack (Rapid Automated Performance Indication for Dataplane)
22 label: Image name or ID
23 description: Image to be used for compute instance
28 description: Type of instance (flavor) to be used
33 description: Name of key-pair to be used for compute instance
37 label: Private network name or ID
38 description: Network to attach instance to.
39 default: dataplane-network
42 label: Private network name or ID
43 description: Network to attach instance to.
44 default: admin_internal_net
47 label: Floating network name or ID
48 description: Public Network to attach instance to.
49 default: admin_floating_net
52 description: The Availability Zone to launch the instance.
54 vm1_availability_zone:
56 description: The Availability Zone to launch the instance.
60 description: The sriov port to be used by VM1
64 description: The sriov port to be used by VM2
68 description: The sriov port to be used by VM3
73 type: OS::Neutron::Port
75 network: {get_param: internal_network}
79 type: OS::Neutron::FloatingIP
81 floating_network: {get_param: floating_network}
82 port_id: {get_resource: vm1_admin_port}
84 type: OS::Nova::Server
86 availability_zone: { get_param: vm1_availability_zone }
88 get_file: prox_user_data.sh
89 key_name: { get_param: key }
90 image: { get_param: image }
91 flavor: { get_param: flavor }
93 - port: {get_resource: vm1_admin_port}
94 - port: {get_param: vm1_sriov_port}
96 type: OS::Neutron::Port
98 network: {get_param: internal_network}
102 type: OS::Neutron::FloatingIP
104 floating_network: {get_param: floating_network}
105 port_id: {get_resource: vm2_admin_port}
107 type: OS::Nova::Server
109 availability_zone: { get_param: availability_zone }
111 get_file: prox_user_data.sh
112 key_name: { get_param: key }
113 image: { get_param: image }
114 flavor: { get_param: flavor }
116 - port: {get_resource: vm2_admin_port}
117 - port: {get_param: vm2_sriov_port}
119 type: OS::Neutron::Port
121 network: {get_param: internal_network}
125 type: OS::Neutron::FloatingIP
127 floating_network: {get_param: floating_network}
128 port_id: {get_resource: vm3_admin_port}
130 type: OS::Nova::Server
132 availability_zone: { get_param: availability_zone }
134 get_file: prox_user_data.sh
135 key_name: { get_param: key }
136 image: { get_param: image }
137 flavor: { get_param: flavor }
139 - port: {get_resource: vm3_admin_port}
140 - port: {get_param: vm3_sriov_port}
144 description: Number of VMs created by this stack
147 description: IP address of VM1 admin port
148 value: { get_attr: [vm1_admin_port, fixed_ips, 0, ip_address] }
150 description: Floating IP address of VM1 in public network
151 value: { get_attr: [ vm1_floating_ip, floating_ip_address ] }
153 description: IP address of VM1 dataplane port
154 value: { get_attr: [vm1, networks,{get_param: dataplane_network},0] }
156 description: The MAC address of VM1 dataplane port
157 value: { get_attr: [vm1, addresses, {get_param: dataplane_network}] }
159 description: IP address of VM2 admin port
160 value: { get_attr: [vm2_admin_port, fixed_ips, 0, ip_address] }
162 description: Floating IP address of VM2 in public network
163 value: { get_attr: [ vm2_floating_ip, floating_ip_address ] }
165 description: IP address of VM2 dataplane port
166 value: { get_attr: [vm2, networks,{get_param: dataplane_network},0] }
168 description: The MAC address of VM2 dataplane port
169 value: { get_attr: [vm2, addresses, {get_param: dataplane_network}]}
171 description: IP address of VM3 admin port
172 value: { get_attr: [vm3_admin_port, fixed_ips, 0, ip_address] }
174 description: Floating IP address of VM3 in public network
175 value: { get_attr: [ vm3_floating_ip, floating_ip_address ] }
177 description: IP address of VM3 dataplane port
178 value: { get_attr: [vm3, networks,{get_param: dataplane_network},0] }
180 description: The MAC address of VM3 dataplane port
181 value: { get_attr: [vm3, addresses, {get_param: dataplane_network}]}