1 heat_template_version: 2013-05-23
4 Template for SDNVPN testcase 8
5 Test floating IP and router assoc coexistence
10 description: flavor for the servers to be created
12 - custom_constraint: nova.flavor
15 description: image for the servers to be created
17 - custom_constraint: glance.image
20 description: availability zone 1
24 description: the external network
27 description: network 1
30 description: subnet 1 name
33 description: subnet 1 cidr
36 description: router 1 cidr
39 description: network 2
42 description: subnet 2 name
45 description: subnet 1 cidr
49 description: security group name
52 description: security group slogan
56 description: instance name
59 description: instance name
63 description: ping count for user data script
68 type: OS::Neutron::Router
70 name: { get_param: router_1_name }
71 external_gateway_info:
72 network: { get_param: external_nw }
75 type: OS::Neutron::Net
77 name: { get_param: net_1_name }
79 type: OS::Neutron::Subnet
81 name: { get_param: subnet_1_name }
82 network: { get_resource: net_1 }
83 cidr: { get_param: subnet_1_cidr }
85 type: OS::Neutron::RouterInterface
87 router_id: { get_resource: router_1 }
88 subnet_id: { get_resource: subnet_1 }
91 type: OS::Neutron::Net
93 name: { get_param: net_2_name }
95 type: OS::Neutron::Subnet
97 name: { get_param: subnet_2_name }
98 network: { get_resource: net_2 }
99 cidr: { get_param: subnet_2_cidr }
102 type: OS::Neutron::SecurityGroup
104 name: { get_param: secgroup_name }
105 description: { get_param: secgroup_descr }
108 remote_ip_prefix: 0.0.0.0/0
112 remote_ip_prefix: 0.0.0.0/0
115 type: OS::Nova::Server
118 name: { get_param: instance_1_name }
119 image: { get_param: image_n }
120 flavor: { get_param: flavor }
121 availability_zone: { get_param: av_zone_1 }
123 - { get_resource: sec_group }
125 - subnet: { get_resource: subnet_1 }
127 user_data_format: RAW
136 ping -c $COUNT $ip 2>&1 >/dev/null
138 if [ \"Z$RES\" = \"Z0\" ] ; then
140 else echo ping $ip KO
146 $IP_VM2: { get_attr: [vm2, addresses, { get_resource: net_1}, 0, addr] }
147 $COUNT: { get_param: ping_count }
149 type: OS::Nova::Server
151 name: { get_param: instance_2_name }
152 image: { get_param: image_n }
153 flavor: { get_param: flavor }
154 availability_zone: { get_param: av_zone_1 }
156 - { get_resource: sec_group }
158 - subnet: { get_resource: subnet_2 }
163 description: the id of network 1
164 value: { get_attr: [router_1, show, id] }
166 description: the id of network 2
167 value: { get_attr: [net_2, show, id] }
169 description: the deployed vm resource
170 value: { get_attr: [vm1, show, name] }
172 description: the deployed vm resource
173 value: { get_attr: [vm2, show, name] }