From: Ian Jackson Subject: [OSSTEST PATCH 19/22] Osstest/Testsupport.pm: use get_target_property() for some host setup Date: Tue, 10 Nov 2015 19:53:31 +0000 Message-ID: <1447185214-6551-20-git-send-email-ian.jackson@eu.citrix.com> References: <1447185214-6551-1-git-send-email-ian.jackson@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZwEzF-0001iT-9l for xen-devel@lists.xenproject.org; Tue, 10 Nov 2015 19:53:49 +0000 In-Reply-To: <1447185214-6551-1-git-send-email-ian.jackson@eu.citrix.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.xenproject.org Cc: Robert Ho , Ian Campbell List-Id: xen-devel@lists.xenproject.org From: Robert Ho For nested cases, nested host can inherit its host's property for dhcp watch setup and ether_prefix property setup. Signed-off-by: Robert Ho Tested-by: Robert Ho --- v15: New patch --- Osstest/TestSupport.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Osstest/TestSupport.pm b/Osstest/TestSupport.pm index cb496d2..32f2956 100644 --- a/Osstest/TestSupport.pm +++ b/Osstest/TestSupport.pm @@ -735,7 +735,7 @@ sub lv_dev_mapper ($$) { sub dhcp_watch_setup ($$) { my ($ho,$gho) = @_; - my $meth = get_host_property($ho,'dhcp-watch-method',undef); + my $meth = get_target_property($ho,'dhcp-watch-method',undef); $gho->{DhcpWatch} = get_host_method_object($ho, 'DhcpWatch', $meth); } @@ -1583,7 +1583,7 @@ sub target_choose_vg ($$) { sub ether_prefix($) { my ($ho) = @_; - my $prefix = get_host_property($ho, 'gen-ether-prefix-base'); + my $prefix = get_target_property($ho, 'gen-ether-prefix-base'); $prefix =~ m/^(\w+:\w+):(\w+):(\w+)$/ or die "$prefix ?"; my $lhs = $1; my $pv = (hex($2)<<8) | (hex($3)); -- 1.7.10.4