summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2018-02-08 03:24:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-08 03:24:33 +0000
commit467fd46ba8e91795e7471f12edb44d68693e57ab (patch)
tree48265e5274a1d00a719f5bb3d720400ff436d825 /jjb
parentb3fc3bdf9d627f25e8665d92492d2b2de08e672f (diff)
parentbc3dddb5f54633fc94b79a88c895a118fe24e2ba (diff)
Merge "Get Daisy IP correctly"
Diffstat (limited to 'jjb')
-rwxr-xr-xjjb/functest/functest-env-presetup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/functest/functest-env-presetup.sh b/jjb/functest/functest-env-presetup.sh
index cd15d7194..b7d33e760 100755
--- a/jjb/functest/functest-env-presetup.sh
+++ b/jjb/functest/functest-env-presetup.sh
@@ -38,7 +38,7 @@ elif [[ ${INSTALLER_TYPE} == 'daisy' ]]; then
installer_mac=$(sudo virsh domiflist daisy | grep vnet | \
grep -Eo "[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+:[0-9a-f]+")
- export INSTALLER_IP=$(/usr/sbin/arp -e -i $bridge_name | grep ${installer_mac} | awk {'print $1'})
+ export INSTALLER_IP=$(/usr/sbin/arp -e -i $bridge_name | grep ${installer_mac} | head -n 1 | awk {'print $1'})
echo "Installer ip is ${INSTALLER_IP}"
else