anchor.diff:  wget --quiet http://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
   
   # Add it to glance so that we can use it in Openstack
  -glance add name='cirros image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.2-x86_64-disk.img
  +glance add name='cirros_image' is_public=true container_format=bare disk_format=qcow2 < cirros-0.3.2-x86_64-disk.img
   
   # Caputre the Image ID so taht we can call the right UUID for this image
  -IMAGE_ID=`glance index | grep 'cirros image' | head -1 |  awk -F' ' '{print $1}'`
  +IMAGE_ID=`glance index | grep 'cirros_image' | head -1 |  awk -F' ' '{print $1}'`
   
   login_user='cirros'
   <% else -%>
  
positive.code: fi
  
  #add the public key to nova.
  nova --no-cache keypair-add --pub_key /tmp/id_rsa.pub key_cirros
  
  
  instance_name='<%= @image_type %>_test_vm'
  
negative.code: <% if @neutron -%>
  
  neutron net-create public --router:external=True
  neutron subnet-create --name public --allocation-pool start=172.16.2.128,end=172.16.2.150 public 172.16.2.0/24
  
  neutron net-create net1
  neutron subnet-create --name net1 net1 10.0.0.0/24
  
  neutron_net=`neutron net-list | grep net1 | awk -F' ' '{print $2}'`
  neutron_public_net=`neutron net-list | grep public | awk -F' ' '{print $2}'`
  