[PATCH 06/14] docs: schemas: Split out simple network protocols

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ftp/tftp/sheepdog have a mandatory filename and support only one host.
There are no additional options for them.
---
 docs/schemas/domaincommon.rng | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index e3dc34e08..d5e6bdb6b 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1569,18 +1569,29 @@
     </element>
   </define>

+  <define name="diskSourceNetworkProtocolSimple">
+    <element name="source">
+      <attribute name="protocol">
+        <choice>
+          <value>sheepdog</value>
+          <value>iscsi</value>
+          <value>ftp</value>
+          <value>ftps</value>
+          <value>tftp</value>
+        </choice>
+      </attribute>
+      <attribute name="name"/>
+      <ref name="diskSourceNetworkHost"/>
+    </element>
+  </define>
+
   <define name="diskSourceNetworkProtocolGeneric">
     <element name="source">
       <interleave>
         <attribute name="protocol">
           <choice>
             <value>nbd</value>
-            <value>sheepdog</value>
             <value>gluster</value>
-            <value>iscsi</value>
-            <value>ftp</value>
-            <value>ftps</value>
-            <value>tftp</value>
           </choice>
         </attribute>
         <optional>
@@ -1601,6 +1612,7 @@
       <ref name="diskSourceNetworkProtocolGeneric"/>
       <ref name="diskSourceNetworkProtocolRBD"/>
       <ref name="diskSourceNetworkProtocolHTTP"/>
+      <ref name="diskSourceNetworkProtocolSimple"/>
     </choice>
   </define>

-- 
2.12.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux