[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 19/22] Osstest/Testsupport.pm: use get_target_property() for some host setup
From: Robert Ho <robert.hu@xxxxxxxxx> 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 <robert.hu@xxxxxxxxx> Tested-by: Robert Ho <robert.hu@xxxxxxxxx> --- 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 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |