Add XenPool.config()

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-04-15 19:57:23 +02:00
parent 971c4ae91d
commit a37fc2464a

View File

@ -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):