[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH OSSTEST 06/12] Manipulate $ho IP assignment for nest L2 situation



 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.