[libvirt] [PATCH] rng: validating tap and vhost attributes separately

Jianwei Hu jiahu at redhat.com
Mon Sep 22 13:46:29 UTC 2014


     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




More information about the libvir-list mailing list