From 4c60d450d013acb744d43c2e81f5f043cb4463ab Mon Sep 17 00:00:00 2001 From: Arne Hingst Date: Thu, 5 Sep 2013 01:03:46 +0200 Subject: [PATCH] Change fetch for management ip address to a more global approach --- tools/xen/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xen/functions b/tools/xen/functions index a5c4b70bc3..44d092f434 100644 --- a/tools/xen/functions +++ b/tools/xen/functions @@ -202,7 +202,7 @@ function xenapi_ip_on() { local bridge_or_net_name bridge_or_net_name=$1 - ifconfig $(bridge_for "$bridge_or_net_name") | grep "inet addr" | cut -d ":" -f2 | sed "s/ .*//" + ifconfig $(bridge_for "$bridge_or_net_name") | grep "inet " | cut -d ":" -f2 | sed "s/ .*//" } function xenapi_is_listening_on() {