[XEND] Re-add vtpm device support in XendConfig

This patch re-adds a recently removed vTPM device handling code.
I am also removing that one code part in the test script that does not
work.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
Alastair Tse committed 2006-12-01 17:37:42 +00:00
1 parent c88422678e
commit 0f07569d15
2 files changed
+11 -3

No files matched your search

-2
View File
@@ -446,8 +446,6 @@ def xapi_vtpm_create(*args):
print "Has driver type '%s'" % driver
vtpm_rec = execute(server.VTPM.get_record, session, vtpm_uuid)
print "Has vtpm record '%s'" % vtpm_rec
vm = execute(server.VTPM.get_VM, session, vtpm_uuid)
print "Has VM '%s'" % vm
#
+11 -1
View File
@@ -945,7 +945,17 @@ class XendConfig(dict):
self['devices'][dev_uuid] = (dev_type, dev_info)
self['vbd_refs'].append(dev_uuid)
return dev_uuid
elif dev_type in ('vtpm'):
if cfg_xenapi.get('type'):
dev_info['type'] = cfg_xenapi.get('type')
dev_uuid = cfg_xenapi.get('uuid', uuid.createString())
dev_info['uuid'] = dev_uuid
self['devices'][dev_uuid] = (dev_type, dev_info)
self['vtpm_refs'].append(dev_uuid)
return dev_uuid
return ''
def device_update(self, dev_uuid, cfg_sxp):
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.