[PATCH 09/11] conf: schemas: Split out definition for 'ftp' protocol

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

 



Separate it so that further addition can target 'ftp' only.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/conf/schemas/domaincommon.rng | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng
index bf4d6e4b6f..c68acaa222 100644
--- a/src/conf/schemas/domaincommon.rng
+++ b/src/conf/schemas/domaincommon.rng
@@ -2046,13 +2046,31 @@
     </element>
   </define>

+  <define name="diskSourceNetworkProtocolFTP">
+    <element name="source">
+      <interleave>
+        <attribute name="protocol">
+          <choice>
+            <value>ftp</value>
+          </choice>
+        </attribute>
+        <attribute name="name"/>
+        <ref name="diskSourceCommon"/>
+        <ref name="diskSourceNetworkHost"/>
+        <optional>
+          <ref name="encryption"/>
+        </optional>
+        <ref name="diskSourceNetworkProtocolPropsCommon"/>
+      </interleave>
+    </element>
+  </define>
+
   <define name="diskSourceNetworkProtocolSimple">
     <element name="source">
       <interleave>
         <attribute name="protocol">
           <choice>
             <value>sheepdog</value>
-            <value>ftp</value>
             <value>tftp</value>
           </choice>
         </attribute>
@@ -2159,6 +2177,7 @@
       <ref name="diskSourceNetworkProtocolHTTP"/>
       <ref name="diskSourceNetworkProtocolHTTPS"/>
       <ref name="diskSourceNetworkProtocolFTPS"/>
+      <ref name="diskSourceNetworkProtocolFTP"/>
       <ref name="diskSourceNetworkProtocolSimple"/>
       <ref name="diskSourceNetworkProtocolVxHS"/>
       <ref name="diskSourceNetworkProtocolNFS"/>
-- 
2.35.1




[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