From 00235f0084a07e51cfca60347adeac1714a8b259 Mon Sep 17 00:00:00 2001 From: Mickael B Date: Thu, 7 Nov 2024 14:54:15 +0100 Subject: [PATCH] update --- deevirt_schema/libvirt/dom/config.py | 5 +++++ setup.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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',