destroying the network isn't enough to delete the leases
This commit is contained in:
parent
02cc96ca32
commit
dca89009f5
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,8 @@ EOF
|
||||||
|
|
||||||
if [[ "$GUEST_RECREATE_NET" == "yes" ]]; then
|
if [[ "$GUEST_RECREATE_NET" == "yes" ]]; then
|
||||||
virsh net-destroy devstack-$GUEST_NETWORK || true
|
virsh net-destroy devstack-$GUEST_NETWORK || true
|
||||||
|
# destroying the network isn't enough to delete the leases
|
||||||
|
rm -f /var/lib/libvirt/dnsmasq/devstack-$GUEST_NETWORK.leases
|
||||||
virsh net-create $vm_dir/net.xml
|
virsh net-create $vm_dir/net.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue