mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
add disk options choices
This commit is contained in:
parent
2b96089542
commit
30ed71e8ae
1 changed files with 25 additions and 0 deletions
|
@ -494,6 +494,31 @@ class wvmConnect(object):
|
||||||
'unsafe': 'Unsafe', # since libvirt 0.9.7
|
'unsafe': 'Unsafe', # since libvirt 0.9.7
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def get_io_modes(self):
|
||||||
|
"""Get io threads available modes"""
|
||||||
|
return {
|
||||||
|
'default': 'Default',
|
||||||
|
'native': 'Native',
|
||||||
|
'threads': 'Threads',
|
||||||
|
}
|
||||||
|
|
||||||
|
def get_discard_modes(self):
|
||||||
|
"""Get discard available modes"""
|
||||||
|
return {
|
||||||
|
'default': 'Default',
|
||||||
|
'ignore': 'Ignore',
|
||||||
|
'unmap': 'Unmap',
|
||||||
|
}
|
||||||
|
|
||||||
|
def get_detect_zeroes_modes(self):
|
||||||
|
"""Get detect zeroes available modes"""
|
||||||
|
return {
|
||||||
|
'default': 'Default',
|
||||||
|
'on': 'On',
|
||||||
|
'off': 'Off',
|
||||||
|
'unmap': 'Unmap',
|
||||||
|
}
|
||||||
|
|
||||||
def get_hypervisors_domain_types(self):
|
def get_hypervisors_domain_types(self):
|
||||||
"""Return hypervisor type"""
|
"""Return hypervisor type"""
|
||||||
def hypervisors(ctx):
|
def hypervisors(ctx):
|
||||||
|
|
Loading…
Reference in a new issue