ia64/xen-unstable

changeset 4637:b720e2fb6b00

bitkeeper revision 1.1327.2.6 (4269277eFXyepEq1XdwqGS1lcCxhhg)

Fix problem with netdevs not coming back on reboot.
Signed-off-by: Mike Wray <mike.wray@hp.com>
author mjw@wray-m-3.hpl.hp.com
date Fri Apr 22 16:34:06 2005 +0000 (2005-04-22)
parents b6ad195cf599
children e81b04e1c86a
files tools/python/xen/xend/server/blkif.py tools/python/xen/xend/server/netif.py
line diff
     1.1 --- a/tools/python/xen/xend/server/blkif.py	Fri Apr 22 16:10:34 2005 +0000
     1.2 +++ b/tools/python/xen/xend/server/blkif.py	Fri Apr 22 16:34:06 2005 +0000
     1.3 @@ -103,10 +103,11 @@ class BlkifBackend:
     1.4          self.destroyed = False
     1.5          self.connected = False
     1.6          self.evtchn = None
     1.7 -        self.status = BLKIF_INTERFACE_STATUS_DISCONNECTED
     1.8 +        self.status = None
     1.9  
    1.10      def init(self, recreate=False, reboot=False):
    1.11          self.destroyed = False
    1.12 +        self.status = BLKIF_INTERFACE_STATUS_DISCONNECTED
    1.13          self.frontendDomain = self.controller.getDomain()
    1.14          self.frontendChannel = self.controller.getChannel()
    1.15          cf = channel.channelFactory()
     2.1 --- a/tools/python/xen/xend/server/netif.py	Fri Apr 22 16:10:34 2005 +0000
     2.2 +++ b/tools/python/xen/xend/server/netif.py	Fri Apr 22 16:34:06 2005 +0000
     2.3 @@ -23,7 +23,7 @@ class NetDev(Dev):
     2.4          Dev.__init__(self, controller, id, config, recreate=recreate)
     2.5          self.vif = int(self.id)
     2.6          self.evtchn = None
     2.7 -        self.status = NETIF_INTERFACE_STATUS_DISCONNECTED
     2.8 +        self.status = None
     2.9          self.frontendDomain = self.getDomain()
    2.10          self.frontendChannel = None
    2.11          self.backendDomain = None
    2.12 @@ -40,6 +40,7 @@ class NetDev(Dev):
    2.13  
    2.14      def init(self, recreate=False, reboot=False):
    2.15          self.destroyed = False
    2.16 +        self.status = NETIF_INTERFACE_STATUS_DISCONNECTED
    2.17          self.frontendDomain = self.getDomain()
    2.18          self.frontendChannel = self.getChannel()
    2.19          cf = channel.channelFactory()