Use new instance store to resolve network uuid to bridge name

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
This commit is contained in:
Tom Wilkie committed 2007-04-25 15:42:34 +01:00
1 parent 876a24c0c8
commit 2ecc034a6a
1 file changed
+2 -2
+2 -2
View File
@@ -22,6 +22,7 @@ import types
from xen.xend import sxp
from xen.xend import uuid
from xen.xend import XendAPIStore
from xen.xend.XendError import VmError
from xen.xend.XendDevices import XendDevices
from xen.xend.PrettyPrint import prettyprintstring
@@ -1050,8 +1051,7 @@ class XendConfig(dict):
if cfg_xenapi.get('name'):
dev_info['name'] = cfg_xenapi.get('name')
if cfg_xenapi.get('network'):
from xen.xend.XendNode import XendAPIInstanceStore
network = XendAPIInstanceStore.get(
network = XendAPIStore.get(
cfg_xenapi.get('network'), 'network')
dev_info['bridge'] = network.get_name_label()
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.