[PATCH] rng: validating tap and vhost attributes separately

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

 



     When using virt-xml-validate to check tap and vhost attributes
     in <interface> of domain xml, should validate them separately,
     don't combine to check them, we can ignore/specify any of them.
---
 docs/schemas/domaincommon.rng | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 36bc184..b6b309d 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -2313,12 +2313,16 @@
       </optional>
       <optional>
         <element name="backend">
+          <optional>
            <attribute name='tap'>
              <ref name='absFilePath'/>
            </attribute>
+          </optional>
+          <optional>
            <attribute name='vhost'>
              <ref name='absFilePath'/>
            </attribute>
+          </optional>
         </element>
       </optional>
       <optional>
-- 
1.8.3.1

--
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]