[PATCH] schema: tighten <serial><protocol type=...> relaxNG

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

 



virDomainChrTcpProtocol only accepts particular <protocol type=...>
values, but we weren't enforcing that in the RelaxNG.  The valid
types are also already documented in docs/formatdomain.html.in.

* docs/schemas/domain.rng (qemucdevSrcDef): Restrict list of
supported <protocol type=> values.
---

Noticed this while working on <smartcard>, but it is an independent
issue worth fixing whenever it gets an ack.

 docs/schemas/domain.rng |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng
index eee9864..a524e4b 100644
--- a/docs/schemas/domain.rng
+++ b/docs/schemas/domain.rng
@@ -1448,7 +1448,14 @@
     <optional>
       <element name="protocol">
         <optional>
-          <attribute name="type"/>
+          <attribute name="type">
+            <choice>
+              <value>raw</value>
+              <value>telnet</value>
+              <value>telnets</value>
+              <value>tls</value>
+            </choice>
+          </attribute>
         </optional>
       </element>
     </optional>
-- 
1.7.3.4

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