From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Ho Subject: [PATCH OSSTEST 06/12] Manipulate $ho IP assignment for nest L2 situation Date: Wed, 11 Feb 2015 17:52:15 +0800 Message-ID: <1423648341-203755-7-git-send-email-robert.hu@intel.com> References: <1423648341-203755-1-git-send-email-robert.hu@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1423648341-203755-1-git-send-email-robert.hu@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, ian.jackson@eu.citrix.com, jfehlig@suse.com, Robert Ho , longtaox.pang@intel.com List-Id: xen-devel@lists.xenproject.org In L2 installation context, its host (L1) IP address is not queried from DNS, but from previous step of L1 installation, in which, L1 IP is stored in run var. --- Osstest/TestSupport.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index 8975652..c23bbc7 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -835,8 +835,11 @@ sub selecthost ($) { dhcp_watch_setup($ho,$ho); power_cycle_host_setup($ho); serial_host_setup($ho); - - $ho->{IpStatic} = get_host_property($ho,'ip-addr'); + if ($name eq 'nested') { + $ho->{IpStatic} = $r{'L1_IP'}; + } else { + $ho->{IpStatic} = get_host_property($ho,'ip-addr'); + } if (!defined $ho->{IpStatic}) { my $ip_packed= gethostbyname($ho->{Fqdn}); die "$ho->{Fqdn} ?" unless $ip_packed; -- 1.8.3.1