From bc3dddb5f54633fc94b79a88c895a118fe24e2ba Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Tue, 6 Feb 2018 11:20:50 +0800 Subject: Get Daisy IP correctly In [1], there are two IP addresses of daisy VM in the arp table. Select the first one. [1]: https://build.opnfv.org/ci/job/functest-daisy-zte-pod9-daily-master/2/ Change-Id: Ic071d718004bf9ed215b7e53c56568f7f018051a Signed-off-by: Alex Yang --- jjb/functest/functest-env-presetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jjb/functest') 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 -- cgit 1.2.3-korg