Browse code

destroying the network isn't enough to delete the leases

Jesse Andrews authored on 2011/11/07 03:33:33
Showing 1 changed files
... ...
@@ -104,6 +104,8 @@ EOF
104 104
 
105 105
 if [[ "$GUEST_RECREATE_NET" == "yes" ]]; then
106 106
     virsh net-destroy devstack-$GUEST_NETWORK || true
107
+    # destroying the network isn't enough to delete the leases
108
+    rm -f /var/lib/libvirt/dnsmasq/devstack-$GUEST_NETWORK.leases
107 109
     virsh net-create $vm_dir/net.xml
108 110
 fi
109 111