schema: domain: Accept VMware disk sources for the disk

Accept the 'datastore' variant of disk source specification used by our
VMware driver.

https://libvirt.org/drvesx.html#datastore

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Peter Krempa
2020-10-19 12:03:06 +02:00
parent 77064438d4
commit 8142950a7f
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -303,6 +303,12 @@
</data>
</define>
<define name="vmwarePath">
<data type="string">
<param name="pattern">\[[^\]]+\] .+</param>
</data>
</define>
<define name="absDirPath">
<data type="string">
<param name="pattern">/.*</param>
+4 -1
View File
@@ -1652,7 +1652,10 @@
<interleave>
<optional>
<attribute name="file">
<ref name="absFilePath"/>
<choice>
<ref name="absFilePath"/>
<ref name="vmwarePath"/>
</choice>
</attribute>
</optional>
<ref name="diskSourceCommon"/>