Merge branch 'hotfix/virbr0-broken'
diff --git a/cloudlab-setup.yml b/cloudlab-setup.yml
index 65d5283..da9d9a6 100644
--- a/cloudlab-setup.yml
+++ b/cloudlab-setup.yml
@@ -73,7 +73,7 @@
handlers:
- name: recreate default net
- shell: virsh net-destroy default; virsh net-create /etc/libvirt/qemu/networks/default.xml
+ script: scripts/recreate-virbr0.sh
# Play: create VMs to host OpenStack services
- hosts: head
diff --git a/scripts/recreate-virbr0.sh b/scripts/recreate-virbr0.sh
new file mode 100644
index 0000000..d38a6d5
--- /dev/null
+++ b/scripts/recreate-virbr0.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+FILE=/etc/libvirt/qemu/networks/default.xml
+
+cp $FILE $FILE.tmp
+virsh net-destroy default
+virsh net-undefine default
+
+cp $FILE.tmp $FILE
+virsh net-create $FILE