[PATCH 1/3] Put network.rng contents inside <grammer> for uniformity with other RNGs

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

 



All the other RNG files in libvirt are enclosed within <grammer>. This
commit makes the syntactical changes necessary to make network.rng fit
that pattern. (This is the first step in adding some data type
definitions to network.rng for more exact validation of IP and MAC
addresses).

Formatting changes (indentation) will be done in a subsequent commit,
so that actual changes to the code won't be obscured by whitespace.
---
 docs/schemas/network.rng |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/docs/schemas/network.rng b/docs/schemas/network.rng
index 33994bc..d898b77 100644
--- a/docs/schemas/network.rng
+++ b/docs/schemas/network.rng
@@ -1,6 +1,13 @@
 <!-- A Relax NG schema for the libvirt network XML format -->
-<element name="network" xmlns="http://relaxng.org/ns/structure/1.0";
+<grammar xmlns="http://relaxng.org/ns/structure/1.0";
          datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes";>
+  <start>
+    <ref name="network"/>
+  </start>
+
+<define name="network">
+
+<element name="network">
   <interleave>
 
   <!-- The name of the network, used to refer to it through the API
@@ -119,3 +126,5 @@
   </optional>
   </interleave>
 </element>
+</define>
+</grammar>
-- 
1.7.2.3

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