ia64/xen-unstable

changeset 13183:4fbefd9cb85e

Added get_record method.

By Alastair Tse <atse@xensource.com>.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Mon Dec 25 14:59:11 2006 +0000 (2006-12-25)
parents 362233086f66
children 765ada5f74cc
files tools/python/xen/xend/XendVDI.py
line diff
     1.1 --- a/tools/python/xen/xend/XendVDI.py	Mon Dec 25 14:47:36 2006 +0000
     1.2 +++ b/tools/python/xen/xend/XendVDI.py	Mon Dec 25 14:59:11 2006 +0000
     1.3 @@ -141,6 +141,21 @@ class XendVDI(AutoSaveObject):
     1.4  
     1.5          return True
     1.6  
     1.7 +    def get_record(self):
     1.8 +        return {'uuid': self.uuid,
     1.9 +                'name_label': self.name_label,
    1.10 +                'name_description': self.name_description,
    1.11 +                'virtual_size': self.virtual_size,
    1.12 +                'physical_utilisation': self.physical_utilisation,
    1.13 +                'sector_size': self.sector_size,
    1.14 +                'parent': None,
    1.15 +                'children': [],
    1.16 +                'sharable': False,
    1.17 +                'readonly': False,
    1.18 +                'SR': self.sr.get_uuid(),
    1.19 +                'VBDs': []}
    1.20 +                
    1.21 +
    1.22  class XendQCOWVDI(XendVDI):
    1.23  
    1.24      def __init__(self, uuid, sr_uuid, qcow_path, cfg_path, vsize, psize):