1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Add changing option of network model. Show model on instance network list

This commit is contained in:
catborise 2020-01-10 17:55:42 +03:00
parent 8b9fe4e887
commit c62e6ba3bc
4 changed files with 50 additions and 16 deletions

View file

@ -639,6 +639,10 @@ class wvmConnect(object):
return [v.text for v in ctx.xpath("/domainCapabilities/devices/hostdev/enum[@name='subsysType']/value")]
return util.get_xml_path(self.get_dom_cap_xml(arch, machine), func=get_hostdev_list)
def get_network_models(self):
"""Get available image filename extensions"""
return ['default', 'e1000', 'virtio']
def get_image_formats(self):
"""Get available image formats"""
return ['raw', 'qcow', 'qcow2']