mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Remove the VDI.parent and VDI.children fields -- this needs more thinking out,
and cannot be supported in this form. Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
22309ac566
commit
8ed82355a0
5 files changed
+3
-144
No files matched your search
@@ -1548,9 +1548,7 @@ class XendAPI(object):
|
||||
VDI_attr_ro = ['VBDs',
|
||||
'physical_utilisation',
|
||||
'sector_size',
|
||||
'type',
|
||||
'parent',
|
||||
'children']
|
||||
'type']
|
||||
VDI_attr_rw = ['name_label',
|
||||
'name_description',
|
||||
'SR',
|
||||
@@ -1579,12 +1577,6 @@ class XendAPI(object):
|
||||
def VDI_get_type(self, session, vdi_ref):
|
||||
return xen_api_success(self._get_VDI(vdi_ref).type)
|
||||
|
||||
def VDI_get_parent(self, session, vdi_ref):
|
||||
return xen_api_success(self._get_VDI(vdi_ref).parent)
|
||||
|
||||
def VDI_get_children(self, session, vdi_ref):
|
||||
return xen_api_success(self._get_VDI(vdi_ref).children)
|
||||
|
||||
def VDI_get_name_label(self, session, vdi_ref):
|
||||
return xen_api_success(self._get_VDI(vdi_ref).name_label)
|
||||
|
||||
@@ -1646,8 +1638,6 @@ class XendAPI(object):
|
||||
'physical_utilisation': image.physical_utilisation,
|
||||
'sector_size': image.sector_size,
|
||||
'type': image.type,
|
||||
'parent': image.parent,
|
||||
'children': image.children,
|
||||
'sharable': image.sharable,
|
||||
'read_only': image.read_only,
|
||||
})
|
||||
|
||||
@@ -57,8 +57,6 @@ class XendVDI(AutoSaveObject):
|
||||
'sector_size',
|
||||
'virtual_size',
|
||||
'physical_utilisation',
|
||||
'parent',
|
||||
'children',
|
||||
'sharable',
|
||||
'read_only']
|
||||
|
||||
@@ -72,8 +70,6 @@ class XendVDI(AutoSaveObject):
|
||||
self.sector_size = 1024
|
||||
self.virtual_size = 0
|
||||
self.physical_utilisation = 0
|
||||
self.parent = None
|
||||
self.children = []
|
||||
self.sharable = False
|
||||
self.read_only = False
|
||||
self.type = "system"
|
||||
@@ -148,8 +144,6 @@ class XendVDI(AutoSaveObject):
|
||||
'virtual_size': self.virtual_size,
|
||||
'physical_utilisation': self.physical_utilisation,
|
||||
'sector_size': self.sector_size,
|
||||
'parent': None,
|
||||
'children': [],
|
||||
'sharable': False,
|
||||
'readonly': False,
|
||||
'SR': self.sr_uuid,
|
||||
|
||||