Add XenPool.config()
This commit is contained in:
parent
971c4ae91d
commit
a37fc2464a
@ -248,6 +248,13 @@ class SizeMixIn(XenVolume):
|
||||
''' Returns the actualy used space '''
|
||||
return get_disk_usage(self.vid)
|
||||
|
||||
@property
|
||||
def config(self):
|
||||
''' return config data for serialization to qubes.xml '''
|
||||
return {'name': self.name,
|
||||
'pool': self.pool,
|
||||
'size': str(self.size),
|
||||
'volume_type': self.volume_type}
|
||||
|
||||
|
||||
class ReadWriteFile(SizeMixIn):
|
||||
|
Loading…
Reference in New Issue
Block a user