]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: schemas: Extract HTTP disk source specification
authorPeter Krempa <pkrempa@redhat.com>
Thu, 20 Apr 2017 14:41:17 +0000 (16:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 28 Apr 2017 07:48:26 +0000 (09:48 +0200)
Make the schema more strict for HTTP disks requiring a name and
mandating exactly one source host.

ftp/tftp entries were not moved here, since http transport also will
support cookies and other options, which will be added later.

docs/schemas/domaincommon.rng

index add2910652e0f98d965ec5d7ccd31ade59fa829c..c6b6219cb4e0a0514d51a9eb89ec1ecc7cd1fba7 100644 (file)
     </element>
   </define>
 
+  <define name="diskSourceNetworkProtocolHTTP">
+    <element name="source">
+      <attribute name="protocol">
+        <choice>
+          <value>http</value>
+          <value>https</value>
+        </choice>
+      </attribute>
+      <attribute name="name"/>
+      <ref name="diskSourceNetworkHost"/>
+    </element>
+  </define>
+
   <define name="diskSourceNetworkProtocolGeneric">
     <element name="source">
       <interleave>
             <value>sheepdog</value>
             <value>gluster</value>
             <value>iscsi</value>
-            <value>http</value>
-            <value>https</value>
             <value>ftp</value>
             <value>ftps</value>
             <value>tftp</value>
     <choice>
       <ref name="diskSourceNetworkProtocolGeneric"/>
       <ref name="diskSourceNetworkProtocolRBD"/>
+      <ref name="diskSourceNetworkProtocolHTTP"/>
     </choice>
   </define>