aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts/lib.sh
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-10-04 20:27:47 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-04 20:27:47 +0000
commit61b418dd534fe09e2550248d6d909a2399a18d27 (patch)
tree4e7a6517b57cdaa29bbf5877360e5d1f0e1ff87d /mcp/scripts/lib.sh
parenta05f8d2682f2449d7d10e52038c56a0af6357def (diff)
parent8ec927497b7ee0fd3b7346e957878173b080ef6a (diff)
Merge "Identify jump host bridges based on IDF / PDF nets"
Diffstat (limited to 'mcp/scripts/lib.sh')
-rw-r--r--mcp/scripts/lib.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index dc4d9dc2f..fcc5d76ac 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -103,13 +103,7 @@ create_vms() {
vnode_networks[2]="${vnode_networks[0]}"
fi
for net in "${vnode_networks[@]:1}"; do
- net_type="bridge"
- # in case of custom network, host should already have the bridge in place
- if [ -f "net_${net}.xml" ] && \
- [ ! -d "/sys/class/net/${net}/bridge" ]; then
- net_type="network"
- fi
- net_args="${net_args} --network ${net_type}=${net},model=virtio"
+ net_args="${net_args} --network bridge=${net},model=virtio"
done
# shellcheck disable=SC2086