diff --git a/deevirt_schema/libvirt/dom/config.py b/deevirt_schema/libvirt/dom/config.py index 1c72010..eaa5637 100644 --- a/deevirt_schema/libvirt/dom/config.py +++ b/deevirt_schema/libvirt/dom/config.py @@ -630,6 +630,9 @@ class Devices(BaseXmlModel, search_mode='ordered'): tpm:Optional[TPM] = element(default=None) class Dom(BaseXmlModel, tag='domain', search_mode='ordered'): + class typeEnum(str, Enum): + kvm = "kvm" + class on_poweroffEnum(str, Enum): destroy = "destroy" restart = "restart" @@ -650,6 +653,8 @@ class Dom(BaseXmlModel, tag='domain', search_mode='ordered'): pause = "pause" ignore = "ignore" + type:typeEnum = attr(default=typeEnum.kvm) + # General metadata uuid:Optional[UUID4] = element(default=None) genid:Optional[UUID4] = element(default=None) diff --git a/setup.py b/setup.py index c38b81d..a23243e 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import find_packages, setup setup( name='deevirt_schema', - version='0.1.14', + version='0.1.15', description='Deevirt Schema', url='https://git.celeonet.fr/Deevirt/deevirt_schema.git', author='Celeonet',