diff options
author | 2018-02-06 11:20:50 +0800 | |
---|---|---|
committer | 2018-02-06 11:20:50 +0800 | |
commit | bc3dddb5f54633fc94b79a88c895a118fe24e2ba (patch) | |
tree | 8f0caf6417c67741d98c01ec8646b98a57a6b76b /jjb/functest | |
parent | 96ac89af9b65921a6914022de29efa0e4d6d79d8 (diff) |
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 <yangyang1@zte.com.cn>
Diffstat (limited to 'jjb/functest')
-rwxr-xr-x | jjb/functest/functest-env-presetup.sh | 2 |
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 |