diff --git a/deevirt_schema/libvirt/dom/config.py b/deevirt_schema/libvirt/dom/config.py index d7c594e..54db4ae 100644 --- a/deevirt_schema/libvirt/dom/config.py +++ b/deevirt_schema/libvirt/dom/config.py @@ -20,12 +20,15 @@ class UnitEnum(str, Enum): GiB = "GiB" TiB = "TiB" -class MetadataDeevirt(BaseXmlModel, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}): +class MetadataDeevirt(BaseXmlModel, tag="instance"): company_id:UUID4 = element() datacenter_id:UUID4 = element() +class MetadataDeevirtNS(MetadataDeevirt, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}): + pass + class Metadata(BaseXmlModel): - instance:Optional[MetadataDeevirt] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}) + instance:Optional[MetadataDeevirtNS] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}) class OSType(BaseXmlModel, search_mode='ordered'): class archEnum(str, Enum):