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

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



     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


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