summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorMichael Chapman <woppin@gmail.com>2016-02-04 13:46:44 +1100
committerMichael Chapman <woppin@gmail.com>2016-02-04 13:46:44 +1100
commita0146be0bbe7941a2767667135f5ca8718cbd7b0 (patch)
treeb4606f75ed37b285bf335d1751b26bfda9af1ce6 /ci
parent1f5d6b79ba6c0160a970dc91e29d898c32387fc9 (diff)
Change net-create to define
This will persist networks across reboots instead of creating a transient network. Change-Id: I98b8e0c577c145197dd7195274b27ded2cc96297
Diffstat (limited to 'ci')
-rwxr-xr-xci/deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/deploy.sh b/ci/deploy.sh
index 3143aae9..bcd28f87 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -403,7 +403,7 @@ function configure_deps {
for network in ${OPNFV_NETWORK_TYPES}; do
ovs-vsctl list-br | grep ${NET_MAP[$network]} > /dev/null || ovs-vsctl add-br ${NET_MAP[$network]}
- virsh net-list --all | grep ${NET_MAP[$network]} > /dev/null || virsh net-create $CONFIG/${NET_MAP[$network]}-net.xml
+ virsh net-list --all | grep ${NET_MAP[$network]} > /dev/null || virsh net-define $CONFIG/${NET_MAP[$network]}-net.xml
virsh net-list | grep -E "${NET_MAP[$network]}\s+active" > /dev/null || virsh net-start ${NET_MAP[$network]}
done