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>
This commit is contained in:
mjw@wray-m-3.hpl.hp.com committed 2005-04-22 16:34:06 +00:00
1 parent 790a97e56c
commit eae3cc0a1f
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -103,10 +103,11 @@ class BlkifBackend:
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()
+2 -1
View File
@@ -23,7 +23,7 @@ class NetDev(Dev):
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 @@ class NetDev(Dev):
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()
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.