mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.1159.231.8 (41f92d4dBn-4k24hnQtAJIjhmWfRjQ)
Merge changes from 2.0-testing. Signed-off-by: c@pin.lu
This commit is contained in:
commit
2ef6d5718f
14 files changed
+117
-107
No files matched your search
@@ -457,9 +457,9 @@ class XendDomainInfo:
|
||||
|
||||
self.init_domain()
|
||||
self.configure_console()
|
||||
self.configure_backends()
|
||||
self.construct_image()
|
||||
self.configure_restart()
|
||||
self.configure_backends()
|
||||
deferred = self.configure()
|
||||
def cberr(err):
|
||||
self.destroy()
|
||||
|
||||
@@ -140,7 +140,8 @@ class NetDev(controller.SplitDev):
|
||||
self.ipaddr = self._get_config_ipaddr(config) or []
|
||||
|
||||
try:
|
||||
self.backendDomain = int(sxp.child_value(config, 'backend', '0'))
|
||||
xd = get_component('xen.xend.XendDomain')
|
||||
self.backendDomain = int(xd.domain_lookup(sxp.child_value(config, 'backend', '0')).id)
|
||||
except:
|
||||
raise XendError('invalid backend domain')
|
||||
|
||||
@@ -161,7 +162,8 @@ class NetDev(controller.SplitDev):
|
||||
bridge = sxp.child_value(config, 'bridge')
|
||||
script = sxp.child_value(config, 'script')
|
||||
ipaddr = self._get_config_ipaddr(config)
|
||||
backendDomain = sxp.child_value(config, 'backend', '0')
|
||||
xd = get_component('xen.xend.XendDomain')
|
||||
backendDomain = str(xd.domain_lookup(sxp.child_value(config, 'backend', '0')).id)
|
||||
if (mac is not None) and (mac != self.mac):
|
||||
raise XendError("cannot change mac")
|
||||
if (backendDomain is not None) and (backendDomain != str(self.backendDomain)):
|
||||
|
||||