diff options
author | Narinder Gupta <narinder.gupta@canonical.com> | 2018-03-31 03:41:18 -0500 |
---|---|---|
committer | Narinder Gupta <narinder.gupta@canonical.com> | 2018-03-31 03:42:12 -0500 |
commit | a9e23db8ba3033392ccd8cfb8ac50b6b9921ec48 (patch) | |
tree | 2cd387480aa07a46a22d4a553a445c597f96280a | |
parent | cc9e54029b92c7e3155b2b302ea0fbd22c58d3a8 (diff) |
modfiied to use admin as default for VM.
Change-Id: I22aef2a36ae7ba08681c1c202d20726d1a605ad1
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
-rwxr-xr-x | ci/03-maasdeploy.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh index ab144a5f..869d97e4 100755 --- a/ci/03-maasdeploy.sh +++ b/ci/03-maasdeploy.sh @@ -212,9 +212,10 @@ sudo virsh pool-autostart default || true # As we use kvm so setup network on admin network ADMIN_BR=`cat labconfig.json | jq '.opnfv.spaces[] | select(.type=="admin")'.bridge | cut -d \" -f 2 ` sed -i "s@brAdm@$ADMIN_BR@" net.xml -sudo virsh net-destroy default -sudo virsh net-define net.xml -sudo virsh net-start default +sudo virsh net-destroy default || true +sudo virsh net-undefine default || true +sudo virsh net-define net.xml || true +sudo virsh net-start default || true # # Cleanup, juju init and config backup |