diff options
author | 2018-02-05 03:59:44 +0000 | |
---|---|---|
committer | 2018-02-05 03:59:44 +0000 | |
commit | d5747030d62979b1178e6372907d7431012b7fd1 (patch) | |
tree | 965f3a9c94748c1f4895dd9617072c93c14cab37 /deploy/host_virtual.sh | |
parent | ce0a73e89120efea3832b65b936dcc27f5840c74 (diff) | |
parent | 3907d59a072d158de67e3cc94bc6ea0ed747d390 (diff) |
Merge "Compass4nfv virtual deploy support direct connection"
Diffstat (limited to 'deploy/host_virtual.sh')
-rwxr-xr-x | deploy/host_virtual.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deploy/host_virtual.sh b/deploy/host_virtual.sh index 03a1230f..d955b747 100755 --- a/deploy/host_virtual.sh +++ b/deploy/host_virtual.sh @@ -52,6 +52,11 @@ function launch_host_vms() { vm_template_file="$vm_template_dir/host.xml" vm_template_arch="$vm_template_dir/host-$COMPASS_ARCH.xml" [ -f $vm_template_arch ] && vm_template_file=$vm_template_arch + if [[ "$NAT_EXTERNAL" == "false" ]]; then + NET_IAAS="external" + else + NET_IAAS="external_nat" + fi log_info "bringing up pxe boot vms" i=0 @@ -67,7 +72,7 @@ function launch_host_vms() { -e "s#REPLACE_IMAGE#$vm_dir/disk.img#g" \ -e "s/REPLACE_BOOT_MAC/${mac_array[i]}/g" \ -e "s/REPLACE_NET_INSTALL/install/g" \ - -e "s/REPLACE_NET_IAAS/external_nat/g" \ + -e "s/REPLACE_NET_IAAS/$NET_IAAS/g" \ "$vm_template_file" \ > $vm_dir/libvirt.xml |