From f31bb140ea968d388b0861d487ba5c6606159187 Mon Sep 17 00:00:00 2001 From: Dan Radez Date: Thu, 17 Nov 2016 11:16:04 -0500 Subject: Skip ip resolution during arp lookups Change-Id: I58dcdb3f0b42be8354e7298923ba94d8052d3ee5 Signed-off-by: Dan Radez (cherry picked from commit 0b0da01224217eb2ff3c72374211eea07e93b8d5) --- lib/utility-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utility-functions.sh') diff --git a/lib/utility-functions.sh b/lib/utility-functions.sh index bc9a9592..9124df50 100644 --- a/lib/utility-functions.sh +++ b/lib/utility-functions.sh @@ -24,7 +24,7 @@ function undercloud_connect { ##outputs the Undercloud's IP address ##params: none function get_undercloud_ip { - echo $(arp -a | grep $(virsh domiflist undercloud | grep default |\ + echo $(arp -an | grep $(virsh domiflist undercloud | grep default |\ awk '{print $5}') | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+") } -- cgit 1.2.3-korg