diff --git a/deevirt_schema/libvirt/dom/config.py b/deevirt_schema/libvirt/dom/config.py index 92ff556..4017ee9 100644 --- a/deevirt_schema/libvirt/dom/config.py +++ b/deevirt_schema/libvirt/dom/config.py @@ -20,9 +20,12 @@ class UnitEnum(str, Enum): GiB = "GiB" TiB = "TiB" -class Metadata(BaseXmlModel, search_mode='ordered'): - # wrapped("metadata", element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.com/'})) - pass +class MetadataDeevirt(BaseXmlModel): + company_id:UUID4 = element() + datacenter_id:UUID4 = element() + +class Metadata(BaseXmlModel): + instance:Optional[MetadataDeevirt] = element(default=None, ns="deevirt", nsmap={'deevirt': 'https://deevirt.fr/schema/1.0'}) class OSType(BaseXmlModel, search_mode='ordered'): class archEnum(str, Enum):