upd
This commit is contained in:
9
node_agent/volume/storage_pool.py
Normal file
9
node_agent/volume/storage_pool.py
Normal file
@ -0,0 +1,9 @@
|
||||
import libvirt
|
||||
|
||||
|
||||
class StoragePool:
|
||||
def __init__(self, pool: libvirt.virStoragePool):
|
||||
self.pool = pool
|
||||
|
||||
def create_volume(self):
|
||||
pass
|
23
node_agent/volume/volume.py
Normal file
23
node_agent/volume/volume.py
Normal file
@ -0,0 +1,23 @@
|
||||
import libvirt
|
||||
|
||||
|
||||
class VolumeInfo:
|
||||
"""
|
||||
Volume info schema
|
||||
{'type': 'local', 'system': True, 'size': 102400, 'mode': 'rw'}
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
class Volume:
|
||||
def __init__(self, pool: libvirt.virStorageVol):
|
||||
self.pool = pool
|
||||
|
||||
def lookup_by_path(self):
|
||||
pass
|
||||
|
||||
def generate_xml(self):
|
||||
pass
|
||||
|
||||
def create(self):
|
||||
pass
|
Reference in New Issue
Block a user