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

[Xen-changelog] Fix problem with netdevs not coming back on reboot.



ChangeSet 1.1327.2.6, 2005/04/22 17:34:06+01:00, mjw@xxxxxxxxxxxxxxxxxxx

        Fix problem with netdevs not coming back on reboot.
        Signed-off-by: Mike Wray <mike.wray@xxxxxx>



 blkif.py |    3 ++-
 netif.py |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)


diff -Nru a/tools/python/xen/xend/server/blkif.py 
b/tools/python/xen/xend/server/blkif.py
--- a/tools/python/xen/xend/server/blkif.py     2005-05-13 16:04:03 -04:00
+++ b/tools/python/xen/xend/server/blkif.py     2005-05-13 16:04:03 -04:00
@@ -103,10 +103,11 @@
         self.destroyed = False
         self.connected = False
         self.evtchn = None
-        self.status = BLKIF_INTERFACE_STATUS_DISCONNECTED
+        self.status = None
 
     def init(self, recreate=False, reboot=False):
         self.destroyed = False
+        self.status = BLKIF_INTERFACE_STATUS_DISCONNECTED
         self.frontendDomain = self.controller.getDomain()
         self.frontendChannel = self.controller.getChannel()
         cf = channel.channelFactory()
diff -Nru a/tools/python/xen/xend/server/netif.py 
b/tools/python/xen/xend/server/netif.py
--- a/tools/python/xen/xend/server/netif.py     2005-05-13 16:04:03 -04:00
+++ b/tools/python/xen/xend/server/netif.py     2005-05-13 16:04:03 -04:00
@@ -23,7 +23,7 @@
         Dev.__init__(self, controller, id, config, recreate=recreate)
         self.vif = int(self.id)
         self.evtchn = None
-        self.status = NETIF_INTERFACE_STATUS_DISCONNECTED
+        self.status = None
         self.frontendDomain = self.getDomain()
         self.frontendChannel = None
         self.backendDomain = None
@@ -40,6 +40,7 @@
 
     def init(self, recreate=False, reboot=False):
         self.destroyed = False
+        self.status = NETIF_INTERFACE_STATUS_DISCONNECTED
         self.frontendDomain = self.getDomain()
         self.frontendChannel = self.getChannel()
         cf = channel.channelFactory()

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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